Class CnameRecord
java.lang.Object
com.azure.resourcemanager.dns.models.CnameRecord
A CNAME record.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CnameRecord
public CnameRecord()Creates an instance of CnameRecord class.
-
-
Method Details
-
cname
Get the cname property: The canonical name for this CNAME record.- Returns:
- the cname value.
-
withCname
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.
-