Record Class AuthorizedCups
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.es.datadis.dtos.authorizations.AuthorizedCups
public record AuthorizedCups(Long id, String ownerDocument, String ownerName, String ownerDocumentTypeName, String requesterDocument, String requesterDocumentTypeName, String requesterName, Long requestId, String cups, AuthorizationStatus status, ZonedDateTime validityDateStart, ZonedDateTime validityDateEnd, @Nullable Object isDeleted, String distributorCodeFather)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorizedCups(Long id, String ownerDocument, String ownerName, String ownerDocumentTypeName, String requesterDocument, String requesterDocumentTypeName, String requesterName, Long requestId, String cups, AuthorizationStatus status, ZonedDateTime validityDateStart, ZonedDateTime validityDateEnd, @Nullable Object isDeleted, String distributorCodeFather) Creates an instance of aAuthorizedCupsrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcups()Returns the value of thecupsrecord component.Returns the value of thedistributorCodeFatherrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Stringfinal inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.boolean@Nullable ObjectReturns the value of theisDeletedrecord component.Returns the value of theownerDocumentrecord component.Returns the value of theownerDocumentTypeNamerecord component.Returns the value of theownerNamerecord component.Returns the value of therequesterDocumentrecord component.Returns the value of therequesterDocumentTypeNamerecord component.Returns the value of therequesterNamerecord component.Returns the value of therequestIdrecord component.status()Returns the value of thestatusrecord component.@Nullable Stringsurname()final StringtoString()Returns a string representation of this record class.Returns the value of thevalidityDateEndrecord component.Returns the value of thevalidityDateStartrecord component.
-
Constructor Details
-
AuthorizedCups
public AuthorizedCups(Long id, String ownerDocument, String ownerName, String ownerDocumentTypeName, String requesterDocument, String requesterDocumentTypeName, String requesterName, Long requestId, String cups, AuthorizationStatus status, ZonedDateTime validityDateStart, ZonedDateTime validityDateEnd, @Nullable Object isDeleted, String distributorCodeFather) Creates an instance of aAuthorizedCupsrecord class.- Parameters:
id- the value for theidrecord componentownerDocument- the value for theownerDocumentrecord componentownerName- the value for theownerNamerecord componentownerDocumentTypeName- the value for theownerDocumentTypeNamerecord componentrequesterDocument- the value for therequesterDocumentrecord componentrequesterDocumentTypeName- the value for therequesterDocumentTypeNamerecord componentrequesterName- the value for therequesterNamerecord componentrequestId- the value for therequestIdrecord componentcups- the value for thecupsrecord componentstatus- the value for thestatusrecord componentvalidityDateStart- the value for thevalidityDateStartrecord componentvalidityDateEnd- the value for thevalidityDateEndrecord componentisDeleted- the value for theisDeletedrecord componentdistributorCodeFather- the value for thedistributorCodeFatherrecord component
-
-
Method Details
-
isCompany
public boolean isCompany() -
companyName
-
firstname
-
surname
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
ownerDocument
Returns the value of theownerDocumentrecord component.- Returns:
- the value of the
ownerDocumentrecord component
-
ownerName
Returns the value of theownerNamerecord component.- Returns:
- the value of the
ownerNamerecord component
-
ownerDocumentTypeName
Returns the value of theownerDocumentTypeNamerecord component.- Returns:
- the value of the
ownerDocumentTypeNamerecord component
-
requesterDocument
Returns the value of therequesterDocumentrecord component.- Returns:
- the value of the
requesterDocumentrecord component
-
requesterDocumentTypeName
Returns the value of therequesterDocumentTypeNamerecord component.- Returns:
- the value of the
requesterDocumentTypeNamerecord component
-
requesterName
Returns the value of therequesterNamerecord component.- Returns:
- the value of the
requesterNamerecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
cups
Returns the value of thecupsrecord component.- Returns:
- the value of the
cupsrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
validityDateStart
Returns the value of thevalidityDateStartrecord component.- Returns:
- the value of the
validityDateStartrecord component
-
validityDateEnd
Returns the value of thevalidityDateEndrecord component.- Returns:
- the value of the
validityDateEndrecord component
-
isDeleted
Returns the value of theisDeletedrecord component.- Returns:
- the value of the
isDeletedrecord component
-
distributorCodeFather
Returns the value of thedistributorCodeFatherrecord component.- Returns:
- the value of the
distributorCodeFatherrecord component
-