Class DnsRecord


  • public final class DnsRecord
    extends Object
    A class that represents a VerificationStatus record.
    • Constructor Detail

      • DnsRecord

        public DnsRecord()
    • Method Detail

      • type

        public String type()
        Get the type property: Type of the DNS record. Example: TXT.
        Returns:
        the type value.
      • name

        public String name()
        Get the name property: Name of the DNS record.
        Returns:
        the name value.
      • value

        public String value()
        Get the value property: Value of the DNS record.
        Returns:
        the value value.
      • ttl

        public Integer ttl()
        Get the ttl property: Represents an expiry time in seconds to represent how long this entry can be cached by the resolver, default = 3600sec.
        Returns:
        the ttl value.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.