Record Class Authorization
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.us.green.button.client.dtos.authorization.Authorization
public record Authorization(String uid, ZonedDateTime created, String customerEmail, @Nullable CustomerSignature customerSignature, @Nullable ZonedDateTime declined, boolean isDeclined, String expires, boolean isExpired, Exports exports, @Nullable List<Export> exportsList, @Nullable String formUid, @Nullable String templateUid, @Nullable List<String> referrals, boolean isArchived, boolean isTest, List<AuthorizationNotes> notes, @Nullable String nickname, @Nullable ZonedDateTime revoked, boolean isRevoked, Scope scope, String status, String statusMessage, ZonedDateTime statusTs, String userEmail, String userUid, String userStatus, String utility)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorization(String uid, ZonedDateTime created, String customerEmail, CustomerSignature customerSignature, ZonedDateTime declined, boolean isDeclined, String expires, boolean isExpired, Exports exports, List<Export> exportsList, String formUid, String templateUid, List<String> referrals, boolean isArchived, boolean isTest, List<AuthorizationNotes> notes, String nickname, ZonedDateTime revoked, boolean isRevoked, Scope scope, String status, String statusMessage, ZonedDateTime statusTs, String userEmail, String userUid, String userStatus, String utility) Creates an instance of aAuthorizationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord component.Returns the value of thecustomerEmailrecord component.Returns the value of thecustomerSignaturerecord component.declined()Returns the value of thedeclinedrecord component.final booleanIndicates whether some other object is "equal to" this one.expires()Returns the value of theexpiresrecord component.exports()Returns the value of theexportsrecord component.Returns the value of theexportsListrecord component.formUid()Returns the value of theformUidrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisArchivedrecord component.booleanReturns the value of theisDeclinedrecord component.booleanReturns the value of theisExpiredrecord component.booleanReturns the value of theisRevokedrecord component.booleanisTest()Returns the value of theisTestrecord component.nickname()Returns the value of thenicknamerecord component.notes()Returns the value of thenotesrecord component.Returns the value of thereferralsrecord component.revoked()Returns the value of therevokedrecord component.scope()Returns the value of thescoperecord component.status()Returns the value of thestatusrecord component.Returns the value of thestatusMessagerecord component.statusTs()Returns the value of thestatusTsrecord component.Returns the value of thetemplateUidrecord component.final StringtoString()Returns a string representation of this record class.uid()Returns the value of theuidrecord component.Returns the value of theuserEmailrecord component.Returns the value of theuserStatusrecord component.userUid()Returns the value of theuserUidrecord component.utility()Returns the value of theutilityrecord component.
-
Constructor Details
-
Authorization
public Authorization(String uid, ZonedDateTime created, String customerEmail, @Nullable CustomerSignature customerSignature, @Nullable ZonedDateTime declined, boolean isDeclined, String expires, boolean isExpired, Exports exports, @Nullable List<Export> exportsList, @Nullable String formUid, @Nullable String templateUid, @Nullable List<String> referrals, boolean isArchived, boolean isTest, List<AuthorizationNotes> notes, @Nullable String nickname, @Nullable ZonedDateTime revoked, boolean isRevoked, Scope scope, String status, String statusMessage, ZonedDateTime statusTs, String userEmail, String userUid, String userStatus, String utility) Creates an instance of aAuthorizationrecord class.- Parameters:
uid- the value for theuidrecord componentcreated- the value for thecreatedrecord componentcustomerEmail- the value for thecustomerEmailrecord componentcustomerSignature- the value for thecustomerSignaturerecord componentdeclined- the value for thedeclinedrecord componentisDeclined- the value for theisDeclinedrecord componentexpires- the value for theexpiresrecord componentisExpired- the value for theisExpiredrecord componentexports- the value for theexportsrecord componentexportsList- the value for theexportsListrecord componentformUid- the value for theformUidrecord componenttemplateUid- the value for thetemplateUidrecord componentreferrals- the value for thereferralsrecord componentisArchived- the value for theisArchivedrecord componentisTest- the value for theisTestrecord componentnotes- the value for thenotesrecord componentnickname- the value for thenicknamerecord componentrevoked- the value for therevokedrecord componentisRevoked- the value for theisRevokedrecord componentscope- the value for thescoperecord componentstatus- the value for thestatusrecord componentstatusMessage- the value for thestatusMessagerecord componentstatusTs- the value for thestatusTsrecord componentuserEmail- the value for theuserEmailrecord componentuserUid- the value for theuserUidrecord componentuserStatus- the value for theuserStatusrecord componentutility- the value for theutilityrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
uid
Returns the value of theuidrecord component.- Returns:
- the value of the
uidrecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
customerEmail
Returns the value of thecustomerEmailrecord component.- Returns:
- the value of the
customerEmailrecord component
-
customerSignature
Returns the value of thecustomerSignaturerecord component.- Returns:
- the value of the
customerSignaturerecord component
-
declined
Returns the value of thedeclinedrecord component.- Returns:
- the value of the
declinedrecord component
-
isDeclined
public boolean isDeclined()Returns the value of theisDeclinedrecord component.- Returns:
- the value of the
isDeclinedrecord component
-
expires
Returns the value of theexpiresrecord component.- Returns:
- the value of the
expiresrecord component
-
isExpired
public boolean isExpired()Returns the value of theisExpiredrecord component.- Returns:
- the value of the
isExpiredrecord component
-
exports
Returns the value of theexportsrecord component.- Returns:
- the value of the
exportsrecord component
-
exportsList
Returns the value of theexportsListrecord component.- Returns:
- the value of the
exportsListrecord component
-
formUid
Returns the value of theformUidrecord component.- Returns:
- the value of the
formUidrecord component
-
templateUid
Returns the value of thetemplateUidrecord component.- Returns:
- the value of the
templateUidrecord component
-
referrals
Returns the value of thereferralsrecord component.- Returns:
- the value of the
referralsrecord component
-
isArchived
public boolean isArchived()Returns the value of theisArchivedrecord component.- Returns:
- the value of the
isArchivedrecord component
-
isTest
public boolean isTest()Returns the value of theisTestrecord component.- Returns:
- the value of the
isTestrecord component
-
notes
Returns the value of thenotesrecord component.- Returns:
- the value of the
notesrecord component
-
nickname
Returns the value of thenicknamerecord component.- Returns:
- the value of the
nicknamerecord component
-
revoked
Returns the value of therevokedrecord component.- Returns:
- the value of the
revokedrecord component
-
isRevoked
public boolean isRevoked()Returns the value of theisRevokedrecord component.- Returns:
- the value of the
isRevokedrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
statusMessage
Returns the value of thestatusMessagerecord component.- Returns:
- the value of the
statusMessagerecord component
-
statusTs
Returns the value of thestatusTsrecord component.- Returns:
- the value of the
statusTsrecord component
-
userEmail
Returns the value of theuserEmailrecord component.- Returns:
- the value of the
userEmailrecord component
-
userUid
Returns the value of theuserUidrecord component.- Returns:
- the value of the
userUidrecord component
-
userStatus
Returns the value of theuserStatusrecord component.- Returns:
- the value of the
userStatusrecord component
-
utility
Returns the value of theutilityrecord component.- Returns:
- the value of the
utilityrecord component
-