Class CustomDomainParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.CustomDomainParameters
The customDomain JSON object required for custom domain creation or update.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CustomDomainParameters class. -
Method Summary
Modifier and TypeMethodDescriptionhostname()Get the hostname property: The host name of the custom domain.voidvalidate()Validates the instance.withHostname(String hostname) Set the hostname property: The host name of the custom domain.
-
Constructor Details
-
CustomDomainParameters
public CustomDomainParameters()Creates an instance of CustomDomainParameters class.
-
-
Method Details
-
hostname
Get the hostname property: The host name of the custom domain. Must be a domain name.- Returns:
- the hostname value.
-
withHostname
Set the hostname property: The host name of the custom domain. Must be a domain name.- Parameters:
hostname- the hostname value to set.- Returns:
- the CustomDomainParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-