Class CnameRecord
- java.lang.Object
-
- com.azure.resourcemanager.privatedns.models.CnameRecord
-
public final class CnameRecord extends Object
A CNAME record.
-
-
Constructor Summary
Constructors Constructor Description CnameRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcname()Get the cname property: The canonical name for this CNAME record.voidvalidate()Validates the instance.CnameRecordwithCname(String cname)Set the cname property: The canonical name for this CNAME record.
-
-
-
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.
-
-