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 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 a RegistrationGrant record class.
      Parameters:
      id - the value for the id record component
      version - the value for the version record component
      type - the value for the type record component
      status - the value for the status record component
      displayName - the value for the displayName record component
      allowedEmail - the value for the allowedEmail record component
      allowedDomain - the value for the allowedDomain record component
      expiresAt - the value for the expiresAt record component
      maxUses - the value for the maxUses record component
      usedCount - the value for the usedCount record component
      sourceType - the value for the sourceType record component
      createdAt - the value for the createdAt record component
      updatedAt - the value for the updatedAt record component
      revokedAt - the value for the revokedAt record component
      revokeReason - the value for the revokeReason record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • version

      public long version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • type

      public RegistrationGrantType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • status

      public RegistrationGrantStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • allowedEmail

      public String allowedEmail()
      Returns the value of the allowedEmail record component.
      Returns:
      the value of the allowedEmail record component
    • allowedDomain

      public String allowedDomain()
      Returns the value of the allowedDomain record component.
      Returns:
      the value of the allowedDomain record component
    • expiresAt

      public String expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • maxUses

      public Integer maxUses()
      Returns the value of the maxUses record component.
      Returns:
      the value of the maxUses record component
    • usedCount

      public int usedCount()
      Returns the value of the usedCount record component.
      Returns:
      the value of the usedCount record component
    • sourceType

      public String sourceType()
      Returns the value of the sourceType record component.
      Returns:
      the value of the sourceType record component
    • createdAt

      public String createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • updatedAt

      public String updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component
    • revokedAt

      public String revokedAt()
      Returns the value of the revokedAt record component.
      Returns:
      the value of the revokedAt record component
    • revokeReason

      public String revokeReason()
      Returns the value of the revokeReason record component.
      Returns:
      the value of the revokeReason record component