CustomDomainProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.fluent.models.CustomDomainProperties

Implements

public final class CustomDomainProperties
implements JsonSerializable<CustomDomainProperties>

The JSON object that contains the properties of the custom domain to create.

Constructor Summary

Constructor Description
CustomDomainProperties()

Creates an instance of CustomDomainProperties class.

Method Summary

Modifier and Type Method and Description
CustomDomainHttpsParameters customHttpsParameters()

Get the customHttpsParameters property: Certificate parameters for securing custom HTTPS.

CustomHttpsProvisioningState customHttpsProvisioningState()

Get the customHttpsProvisioningState property: Provisioning status of the custom domain.

CustomHttpsProvisioningSubstate customHttpsProvisioningSubstate()

Get the customHttpsProvisioningSubstate property: Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.

static CustomDomainProperties fromJson(JsonReader jsonReader)

Reads an instance of CustomDomainProperties from the JsonReader.

String hostname()

Get the hostname property: The host name of the custom domain.

CustomHttpsProvisioningState provisioningState()

Get the provisioningState property: Provisioning status of Custom Https of the custom domain.

CustomDomainResourceState resourceState()

Get the resourceState property: Resource status of the custom domain.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String validationData()

Get the validationData property: Special validation or data may be required when delivering CDN to some regions due to local compliance reasons.

CustomDomainProperties withCustomHttpsParameters(CustomDomainHttpsParameters customHttpsParameters)

Set the customHttpsParameters property: Certificate parameters for securing custom HTTPS.

CustomDomainProperties withHostname(String hostname)

Set the hostname property: The host name of the custom domain.

CustomDomainProperties 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 java.lang.Object

Constructor Details

CustomDomainProperties

public CustomDomainProperties()

Creates an instance of CustomDomainProperties class.

Method Details

customHttpsParameters

public CustomDomainHttpsParameters customHttpsParameters()

Get the customHttpsParameters property: Certificate parameters for securing custom HTTPS.

Returns:

the customHttpsParameters value.

customHttpsProvisioningState

public CustomHttpsProvisioningState customHttpsProvisioningState()

Get the customHttpsProvisioningState property: Provisioning status of the custom domain.

Returns:

the customHttpsProvisioningState value.

customHttpsProvisioningSubstate

public CustomHttpsProvisioningSubstate customHttpsProvisioningSubstate()

Get the customHttpsProvisioningSubstate property: Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.

Returns:

the customHttpsProvisioningSubstate value.

fromJson

public static CustomDomainProperties fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

hostname

public String hostname()

Get the hostname property: The host name of the custom domain. Must be a domain name.

Returns:

the hostname value.

provisioningState

public CustomHttpsProvisioningState provisioningState()

Get the provisioningState property: Provisioning status of Custom Https of the custom domain.

Returns:

the provisioningState value.

resourceState

public CustomDomainResourceState resourceState()

Get the resourceState property: Resource status of the custom domain.

Returns:

the resourceState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

validationData

public String 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.

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.

withHostname

public CustomDomainProperties withHostname(String hostname)

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.

withValidationData

public CustomDomainProperties 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. 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.

Applies to