Class DeepCreatedCustomDomainProperties
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.DeepCreatedCustomDomainProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeepCreatedCustomDomainProperties>
public final class DeepCreatedCustomDomainProperties
extends Object
implements com.azure.json.JsonSerializable<DeepCreatedCustomDomainProperties>
Properties of the custom domain created on the CDN endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DeepCreatedCustomDomainProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeepCreatedCustomDomainProperties from the JsonReader.hostname()Get the hostname property: The host name of the custom domain.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the validationData property: Special validation or data may be required when delivering CDN to some regions due to local compliance reasons.withHostname(String hostname) Set the hostname property: The host name of the custom domain.withValidationData(String validationData) Set the validationData property: Special validation or data may be required when delivering CDN to some regions due to local compliance reasons.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DeepCreatedCustomDomainProperties
public DeepCreatedCustomDomainProperties()Creates an instance of DeepCreatedCustomDomainProperties 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 DeepCreatedCustomDomainProperties object itself.
-
validationData
Get the validationData property: Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.- Returns:
- the validationData value.
-
withValidationData
Set the validationData property: Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.- Parameters:
validationData- the validationData value to set.- Returns:
- the DeepCreatedCustomDomainProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeepCreatedCustomDomainProperties>- Throws:
IOException
-
fromJson
public static DeepCreatedCustomDomainProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeepCreatedCustomDomainProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeepCreatedCustomDomainProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DeepCreatedCustomDomainProperties.
-