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 Details

    • DomainNameInfo

      public DomainNameInfo(String domainName, String domainRepoId, String registrarId, String registrarEmailAddress)
      Creates an instance of a DomainNameInfo record class.
      Parameters:
      domainName - the value for the domainName record component
      domainRepoId - the value for the domainRepoId record component
      registrarId - the value for the registrarId record component
      registrarEmailAddress - the value for the registrarEmailAddress 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.
    • domainName

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

      public String domainRepoId()
      Returns the value of the domainRepoId record component.
      Returns:
      the value of the domainRepoId record component
    • registrarId

      public String registrarId()
      Returns the value of the registrarId record component.
      Returns:
      the value of the registrarId record component
    • registrarEmailAddress

      public String registrarEmailAddress()
      Returns the value of the registrarEmailAddress record component.
      Returns:
      the value of the registrarEmailAddress record component