Record Class PermissionRequestToImport

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.permission.request.dtos.PermissionRequestToImport

@MeterReadingPairConstraint @MeterReadingOrderConstraint @MeterReadingDataNeedConstraint public record PermissionRequestToImport(@NotBlank String connectionId, @NotNull @Size(min=33,max=33,message="needs to be exactly 33 characters long") String meteringPointId, @NotBlank String dataNeedId, @NotNull @Size(min=8,max=8,message="needs to be exactly 8 characters long") String dsoId, @NotBlank String consentId, @NotNull @Past ZonedDateTime creationDateTime, @Nullable ZonedDateTime meterReadingStart, @Nullable ZonedDateTime meterReadingEnd) extends Record
  • Constructor Details

    • PermissionRequestToImport

      public PermissionRequestToImport(String connectionId, String meteringPointId, String dataNeedId, String dsoId, String consentId, ZonedDateTime creationDateTime)
    • PermissionRequestToImport

      public PermissionRequestToImport(@NotBlank @NotBlank String connectionId, @NotNull @Size(min=33,max=33,message="needs to be exactly 33 characters long") @NotNull @Size(min=33,max=33,message="needs to be exactly 33 characters long") String meteringPointId, @NotBlank @NotBlank String dataNeedId, @NotNull @Size(min=8,max=8,message="needs to be exactly 8 characters long") @NotNull @Size(min=8,max=8,message="needs to be exactly 8 characters long") String dsoId, @NotBlank @NotBlank String consentId, @NotNull @Past @NotNull @Past ZonedDateTime creationDateTime, @Nullable ZonedDateTime meterReadingStart, @Nullable ZonedDateTime meterReadingEnd)
      Creates an instance of a PermissionRequestToImport record class.
      Parameters:
      connectionId - the value for the connectionId record component
      meteringPointId - the value for the meteringPointId record component
      dataNeedId - the value for the dataNeedId record component
      dsoId - the value for the dsoId record component
      consentId - the value for the consentId record component
      creationDateTime - the value for the creationDateTime record component
      meterReadingStart - the value for the meterReadingStart record component
      meterReadingEnd - the value for the meterReadingEnd record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • connectionId

      @NotBlank public @NotBlank String connectionId()
      Returns the value of the connectionId record component.
      Returns:
      the value of the connectionId record component
    • meteringPointId

      @NotNull @Size(min=33, max=33, message="needs to be exactly 33 characters long") public @NotNull @Size(min=33,max=33,message="needs to be exactly 33 characters long") String meteringPointId()
      Returns the value of the meteringPointId record component.
      Returns:
      the value of the meteringPointId record component
    • dataNeedId

      @NotBlank public @NotBlank String dataNeedId()
      Returns the value of the dataNeedId record component.
      Returns:
      the value of the dataNeedId record component
    • dsoId

      @NotNull @Size(min=8, max=8, message="needs to be exactly 8 characters long") public @NotNull @Size(min=8,max=8,message="needs to be exactly 8 characters long") String dsoId()
      Returns the value of the dsoId record component.
      Returns:
      the value of the dsoId record component
    • consentId

      @NotBlank public @NotBlank String consentId()
      Returns the value of the consentId record component.
      Returns:
      the value of the consentId record component
    • creationDateTime

      @NotNull @Past public @NotNull @Past ZonedDateTime creationDateTime()
      Returns the value of the creationDateTime record component.
      Returns:
      the value of the creationDateTime record component
    • meterReadingStart

      public @Nullable ZonedDateTime meterReadingStart()
      Returns the value of the meterReadingStart record component.
      Returns:
      the value of the meterReadingStart record component
    • meterReadingEnd

      public @Nullable ZonedDateTime meterReadingEnd()
      Returns the value of the meterReadingEnd record component.
      Returns:
      the value of the meterReadingEnd record component