Record Class DnsPreparation

java.lang.Object
java.lang.Record
com.digicert.validation.methods.dns.prepare.DnsPreparation
Record Components:
domain - the domain to be validated
dnsType - the type of DNS record
challengeType - the type of challenge used for validation

public record DnsPreparation(String domain, DnsType dnsType, ChallengeType challengeType) extends Record
Represents the preparation details required for DNS validation. This class is a record that holds the domain, DNS type, and challenge type.
  • Field Details

    • domain

      private final String domain
      The field for the domain record component.
    • dnsType

      private final DnsType dnsType
      The field for the dnsType record component.
    • challengeType

      private final ChallengeType challengeType
      The field for the challengeType record component.
  • Constructor Details

    • DnsPreparation

      public DnsPreparation(String domain, DnsType dnsType, ChallengeType challengeType)
      Creates an instance of a DnsPreparation record class.
      Parameters:
      domain - the value for the domain record component
      dnsType - the value for the dnsType record component
      challengeType - the value for the challengeType 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.
    • domain

      public String domain()
      Returns the value of the domain record component.
      Returns:
      the value of the domain record component
    • dnsType

      public DnsType dnsType()
      Returns the value of the dnsType record component.
      Returns:
      the value of the dnsType record component
    • challengeType

      public ChallengeType challengeType()
      Returns the value of the challengeType record component.
      Returns:
      the value of the challengeType record component