Class CnameRecord

java.lang.Object
com.azure.resourcemanager.dns.models.CnameRecord

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

    • CnameRecord

      public CnameRecord()
      Creates an instance of CnameRecord class.
  • Method Details

    • 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.