Record Class PermissionRequestForCreation
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.permission.request.dtos.PermissionRequestForCreation
public record PermissionRequestForCreation(@NotBlank String connectionId, @Size(min=33,max=33,message="needs to be exactly 33 characters long") String meteringPointId, @NotEmpty List<String> dataNeedIds, @Size(min=8,max=8,message="needs to be exactly 8 characters long") @NotBlank String dsoId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionRequestForCreation(@NotBlank String connectionId, @Size(min=33,max=33,message="needs to be exactly 33 characters long") String meteringPointId, @NotEmpty List<String> dataNeedIds, @Size(min=8,max=8,message="needs to be exactly 8 characters long") @NotBlank String dsoId) Creates an instance of aPermissionRequestForCreationrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank StringReturns the value of theconnectionIdrecord component.Returns the value of thedataNeedIdsrecord component.@Size(min=8,max=8,message="needs to be exactly 8 characters long") @NotBlank 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.@Size(min=33,max=33,message="needs to be exactly 33 characters long") StringReturns the value of themeteringPointIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PermissionRequestForCreation
public PermissionRequestForCreation(@NotBlank @NotBlank String connectionId, @Size(min=33,max=33,message="needs to be exactly 33 characters long") @Size(min=33,max=33,message="needs to be exactly 33 characters long") String meteringPointId, @NotEmpty @NotEmpty List<String> dataNeedIds, @Size(min=8,max=8,message="needs to be exactly 8 characters long") @NotBlank @Size(min=8,max=8,message="needs to be exactly 8 characters long") @NotBlank String dsoId) Creates an instance of aPermissionRequestForCreationrecord class.- Parameters:
connectionId- the value for theconnectionIdrecord componentmeteringPointId- the value for themeteringPointIdrecord componentdataNeedIds- the value for thedataNeedIdsrecord componentdsoId- the value for thedsoIdrecord 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
@Size(min=33, max=33, message="needs to be exactly 33 characters long") public @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
-
dataNeedIds
Returns the value of thedataNeedIdsrecord component.- Returns:
- the value of the
dataNeedIdsrecord component
-
dsoId
@Size(min=8, max=8, message="needs to be exactly 8 characters long") @NotBlank public @Size(min=8,max=8,message="needs to be exactly 8 characters long") @NotBlank String dsoId()Returns the value of thedsoIdrecord component.- Returns:
- the value of the
dsoIdrecord component
-