Package com.mxraven.admin.model
Record Class SendingDomainPolicyGrantRequest
java.lang.Object
java.lang.Record
com.mxraven.admin.model.SendingDomainPolicyGrantRequest
- Record Components:
domainId- identifier of the granted domainsubdomainScope-exactorinclude_subdomains
public record SendingDomainPolicyGrantRequest(String domainId, SendingDomainSubdomainScope subdomainScope)
extends Record
One domain grant in a sending-domain policy replacement.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuildsSendingDomainPolicyGrantRequestinstances. -
Constructor Summary
ConstructorsConstructorDescriptionSendingDomainPolicyGrantRequest(String domainId, SendingDomainSubdomainScope subdomainScope) Validates and creates a sending-domain grant. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.domainId()Returns the value of thedomainIdrecord 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
-
SendingDomainPolicyGrantRequest
Validates and creates a sending-domain grant.- Parameters:
domainId- identifier of the granted domainsubdomainScope-exactorinclude_subdomains- Throws:
IllegalArgumentException- if the domain identifier is missing or not a UUID, or the subdomain scope is missing
-
-
Method Details
-
builder
Creates a new builder.- Returns:
- a new builder
-
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
-
subdomainScope
Returns the value of thesubdomainScoperecord component.- Returns:
- the value of the
subdomainScoperecord component
-