Record Class RegistrationGrant
java.lang.Object
java.lang.Record
com.chaosguide.iam.vertex.portal.RegistrationGrant
public record RegistrationGrant(String id, long version, RegistrationGrantType type, RegistrationGrantStatus status, String displayName, String allowedEmail, String allowedDomain, String expiresAt, Integer maxUses, int usedCount, String sourceType, String createdAt, String updatedAt, String revokedAt, String revokeReason)
extends Record
Safe registration-grant representation. Raw create proofs are never part of this type.
-
Constructor Summary
ConstructorsConstructorDescriptionRegistrationGrant(String id, long version, RegistrationGrantType type, RegistrationGrantStatus status, String displayName, String allowedEmail, String allowedDomain, String expiresAt, Integer maxUses, int usedCount, String sourceType, String createdAt, String updatedAt, String revokedAt, String revokeReason) Creates an instance of aRegistrationGrantrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedDomainrecord component.Returns the value of theallowedEmailrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.maxUses()Returns the value of themaxUsesrecord component.Returns the value of therevokedAtrecord component.Returns the value of therevokeReasonrecord component.Returns the value of thesourceTyperecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of theupdatedAtrecord component.intReturns the value of theusedCountrecord component.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
RegistrationGrant
public RegistrationGrant(String id, long version, RegistrationGrantType type, RegistrationGrantStatus status, String displayName, String allowedEmail, String allowedDomain, String expiresAt, Integer maxUses, int usedCount, String sourceType, String createdAt, String updatedAt, String revokedAt, String revokeReason) Creates an instance of aRegistrationGrantrecord class.- Parameters:
id- the value for theidrecord componentversion- the value for theversionrecord componenttype- the value for thetyperecord componentstatus- the value for thestatusrecord componentdisplayName- the value for thedisplayNamerecord componentallowedEmail- the value for theallowedEmailrecord componentallowedDomain- the value for theallowedDomainrecord componentexpiresAt- the value for theexpiresAtrecord componentmaxUses- the value for themaxUsesrecord componentusedCount- the value for theusedCountrecord componentsourceType- the value for thesourceTyperecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord componentrevokedAt- the value for therevokedAtrecord componentrevokeReason- the value for therevokeReasonrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
allowedEmail
Returns the value of theallowedEmailrecord component.- Returns:
- the value of the
allowedEmailrecord component
-
allowedDomain
Returns the value of theallowedDomainrecord component.- Returns:
- the value of the
allowedDomainrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
maxUses
Returns the value of themaxUsesrecord component.- Returns:
- the value of the
maxUsesrecord component
-
usedCount
public int usedCount()Returns the value of theusedCountrecord component.- Returns:
- the value of the
usedCountrecord component
-
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-
revokedAt
Returns the value of therevokedAtrecord component.- Returns:
- the value of the
revokedAtrecord component
-
revokeReason
Returns the value of therevokeReasonrecord component.- Returns:
- the value of the
revokeReasonrecord component
-