Package google.registry.bsa.api
Record Class UnblockableDomain
java.lang.Object
java.lang.Record
google.registry.bsa.api.UnblockableDomain
A domain name whose second-level domain (SLD) matches a BSA label but is not blocked. It may be
already registered, or on the TLD's reserve list.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Reasons why a valid domain name cannot be blocked. -
Constructor Summary
ConstructorDescriptionUnblockableDomain
(String domainName, UnblockableDomain.Reason reason) Creates an instance of aUnblockableDomain
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic UnblockableDomain
deserialize
(String text) Returns the value of thedomainName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static UnblockableDomain
of
(String label, String tld, UnblockableDomain.Reason reason) reason()
Returns the value of thereason
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
UnblockableDomain
Creates an instance of aUnblockableDomain
record class.- Parameters:
domainName
- the value for thedomainName
record componentreason
- the value for thereason
record component
-
-
Method Details
-
serialize
-
deserialize
-
of
-
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)
. -
domainName
Returns the value of thedomainName
record component.- Returns:
- the value of the
domainName
record component
-
reason
Returns the value of thereason
record component.- Returns:
- the value of the
reason
record component
-