Class CnameRecord


  • public final class CnameRecord
    extends Object
    A CNAME record.
    • Constructor Detail

      • CnameRecord

        public CnameRecord()
    • Method Detail

      • cname

        public String cname()
        Get the cname property: The canonical name for this CNAME record.
        Returns:
        the cname value.
      • withCname

        public CnameRecord withCname​(String cname)
        Set the cname property: The canonical name for this CNAME record.
        Parameters:
        cname - the cname value to set.
        Returns:
        the CnameRecord object itself.
      • validate

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