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 Summary
ConstructorsConstructorDescriptionPermissionRequestToImport(@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) Creates an instance of aPermissionRequestToImportrecord class.PermissionRequestToImport(String connectionId, String meteringPointId, String dataNeedId, String dsoId, String consentId, ZonedDateTime creationDateTime) -
Method Summary
Modifier and TypeMethodDescription@NotBlank StringReturns the value of theconnectionIdrecord component.@NotBlank StringReturns the value of theconsentIdrecord component.@NotNull @Past ZonedDateTimeReturns the value of thecreationDateTimerecord component.@NotBlank StringReturns the value of thedataNeedIdrecord component.@NotNull @Size(min=8,max=8,message="needs to be exactly 8 characters long") StringdsoId()Returns the value of thedsoIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull @Size(min=33,max=33,message="needs to be exactly 33 characters long") StringReturns the value of themeteringPointIdrecord component.@Nullable ZonedDateTimeReturns the value of themeterReadingEndrecord component.@Nullable ZonedDateTimeReturns the value of themeterReadingStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PermissionRequestToImport
-
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 aPermissionRequestToImportrecord class.- Parameters:
connectionId- the value for theconnectionIdrecord componentmeteringPointId- the value for themeteringPointIdrecord componentdataNeedId- the value for thedataNeedIdrecord componentdsoId- the value for thedsoIdrecord componentconsentId- the value for theconsentIdrecord componentcreationDateTime- the value for thecreationDateTimerecord componentmeterReadingStart- the value for themeterReadingStartrecord componentmeterReadingEnd- the value for themeterReadingEndrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
connectionId
Returns the value of theconnectionIdrecord component.- Returns:
- the value of the
connectionIdrecord 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 themeteringPointIdrecord component.- Returns:
- the value of the
meteringPointIdrecord component
-
dataNeedId
Returns the value of thedataNeedIdrecord component.- Returns:
- the value of the
dataNeedIdrecord 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 thedsoIdrecord component.- Returns:
- the value of the
dsoIdrecord component
-
consentId
Returns the value of theconsentIdrecord component.- Returns:
- the value of the
consentIdrecord component
-
creationDateTime
Returns the value of thecreationDateTimerecord component.- Returns:
- the value of the
creationDateTimerecord component
-
meterReadingStart
Returns the value of themeterReadingStartrecord component.- Returns:
- the value of the
meterReadingStartrecord component
-
meterReadingEnd
Returns the value of themeterReadingEndrecord component.- Returns:
- the value of the
meterReadingEndrecord component
-