Record Class SendingDomainPolicyGrant

java.lang.Object
java.lang.Record
com.mxraven.admin.model.SendingDomainPolicyGrant
Record Components:
domainId - identifier of the granted domain
domainName - human-readable domain name
domainStatus - pending, verified, or suspended
subdomainScope - exact or include_subdomains

public record SendingDomainPolicyGrant(String domainId, String domainName, DomainStatus domainStatus, SendingDomainSubdomainScope subdomainScope) extends Record
A resolved domain grant on a listener's sending-domain policy.
  • Constructor Details

    • SendingDomainPolicyGrant

      public SendingDomainPolicyGrant(String domainId, String domainName, DomainStatus domainStatus, SendingDomainSubdomainScope subdomainScope)
      Creates an instance of a SendingDomainPolicyGrant record class.
      Parameters:
      domainId - the value for the domainId record component
      domainName - the value for the domainName record component
      domainStatus - the value for the domainStatus record component
      subdomainScope - the value for the subdomainScope 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • domainId

      public String domainId()
      Returns the value of the domainId record component.
      Returns:
      the value of the domainId record component
    • domainName

      public String domainName()
      Returns the value of the domainName record component.
      Returns:
      the value of the domainName record component
    • domainStatus

      public DomainStatus domainStatus()
      Returns the value of the domainStatus record component.
      Returns:
      the value of the domainStatus record component
    • subdomainScope

      public SendingDomainSubdomainScope subdomainScope()
      Returns the value of the subdomainScope record component.
      Returns:
      the value of the subdomainScope record component