Package google.registry.beam.spec11
Record Class DomainNameInfo
java.lang.Object
java.lang.Record
google.registry.beam.spec11.DomainNameInfo
- Record Components:
domainName
- The fully qualified domain name.domainRepoId
- The domain repo ID (the primary key of the domain table).registrarId
- The registrar ID of the associated registrar for this domain.registrarEmailAddress
- The email address of the registrar associated with this domain.
- All Implemented Interfaces:
Serializable
public record DomainNameInfo(String domainName, String domainRepoId, String registrarId, String registrarEmailAddress)
extends Record
implements Serializable
A record representing a domain name and associated info, parsed from a
SchemaAndRecord
.
This is a trivially serializable class that allows Beam to transform the results of a SQL query into a standard Java representation.
- See Also:
-
Constructor Summary
ConstructorDescriptionDomainNameInfo
(String domainName, String domainRepoId, String registrarId, String registrarEmailAddress) Creates an instance of aDomainNameInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedomainName
record component.Returns the value of thedomainRepoId
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.Returns the value of theregistrarEmailAddress
record component.Returns the value of theregistrarId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DomainNameInfo
public DomainNameInfo(String domainName, String domainRepoId, String registrarId, String registrarEmailAddress) Creates an instance of aDomainNameInfo
record class.- Parameters:
domainName
- the value for thedomainName
record componentdomainRepoId
- the value for thedomainRepoId
record componentregistrarId
- the value for theregistrarId
record componentregistrarEmailAddress
- the value for theregistrarEmailAddress
record 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)
. -
domainName
Returns the value of thedomainName
record component.- Returns:
- the value of the
domainName
record component
-
domainRepoId
Returns the value of thedomainRepoId
record component.- Returns:
- the value of the
domainRepoId
record component
-
registrarId
Returns the value of theregistrarId
record component.- Returns:
- the value of the
registrarId
record component
-
registrarEmailAddress
Returns the value of theregistrarEmailAddress
record component.- Returns:
- the value of the
registrarEmailAddress
record component
-