Package com.mxraven.admin.model
Record Class SendingDomainPolicyGrant
java.lang.Object
java.lang.Record
com.mxraven.admin.model.SendingDomainPolicyGrant
- Record Components:
domainId- identifier of the granted domaindomainName- human-readable domain namedomainStatus-pending,verified, orsuspendedsubdomainScope-exactorinclude_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 Summary
ConstructorsConstructorDescriptionSendingDomainPolicyGrant(String domainId, String domainName, DomainStatus domainStatus, SendingDomainSubdomainScope subdomainScope) Creates an instance of aSendingDomainPolicyGrantrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondomainId()Returns the value of thedomainIdrecord component.Returns the value of thedomainNamerecord component.Returns the value of thedomainStatusrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesubdomainScoperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SendingDomainPolicyGrant
public SendingDomainPolicyGrant(String domainId, String domainName, DomainStatus domainStatus, SendingDomainSubdomainScope subdomainScope) Creates an instance of aSendingDomainPolicyGrantrecord class.- Parameters:
domainId- the value for thedomainIdrecord componentdomainName- the value for thedomainNamerecord componentdomainStatus- the value for thedomainStatusrecord componentsubdomainScope- the value for thesubdomainScoperecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
domainId
Returns the value of thedomainIdrecord component.- Returns:
- the value of the
domainIdrecord component
-
domainName
Returns the value of thedomainNamerecord component.- Returns:
- the value of the
domainNamerecord component
-
domainStatus
Returns the value of thedomainStatusrecord component.- Returns:
- the value of the
domainStatusrecord component
-
subdomainScope
Returns the value of thesubdomainScoperecord component.- Returns:
- the value of the
subdomainScoperecord component
-