Class CustomDomainProperties
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.CustomDomainProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomDomainProperties>
public final class CustomDomainProperties
extends Object
implements com.azure.json.JsonSerializable<CustomDomainProperties>
The JSON object that contains the properties of the custom domain to create.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CustomDomainProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the customHttpsParameters property: Certificate parameters for securing custom HTTPS.Get the customHttpsProvisioningState property: Provisioning status of the custom domain.Get the customHttpsProvisioningSubstate property: Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.static CustomDomainPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomDomainProperties from the JsonReader.hostname()Get the hostname property: The host name of the custom domain.Get the provisioningState property: Provisioning status of Custom Https of the custom domain.Get the resourceState property: Resource status 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.withCustomHttpsParameters(CustomDomainHttpsParameters customHttpsParameters) Set the customHttpsParameters property: Certificate parameters for securing custom HTTPS.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
-
CustomDomainProperties
public CustomDomainProperties()Creates an instance of CustomDomainProperties 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 CustomDomainProperties object itself.
-
resourceState
Get the resourceState property: Resource status of the custom domain.- Returns:
- the resourceState value.
-
customHttpsProvisioningState
Get the customHttpsProvisioningState property: Provisioning status of the custom domain.- Returns:
- the customHttpsProvisioningState value.
-
customHttpsProvisioningSubstate
Get the customHttpsProvisioningSubstate property: Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.- Returns:
- the customHttpsProvisioningSubstate value.
-
customHttpsParameters
Get the customHttpsParameters property: Certificate parameters for securing custom HTTPS.- Returns:
- the customHttpsParameters value.
-
withCustomHttpsParameters
public CustomDomainProperties withCustomHttpsParameters(CustomDomainHttpsParameters customHttpsParameters) Set the customHttpsParameters property: Certificate parameters for securing custom HTTPS.- Parameters:
customHttpsParameters- the customHttpsParameters value to set.- Returns:
- the CustomDomainProperties 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 CustomDomainProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning status of Custom Https of the custom domain.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CustomDomainProperties>- Throws:
IOException
-
fromJson
public static CustomDomainProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CustomDomainProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CustomDomainProperties 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 CustomDomainProperties.
-