共用方式為


DeepCreatedCustomDomain Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.DeepCreatedCustomDomain

Implements

public final class DeepCreatedCustomDomain
implements JsonSerializable<DeepCreatedCustomDomain>

Custom domains created on the CDN endpoint.

Constructor Summary

Constructor Description
DeepCreatedCustomDomain()

Creates an instance of DeepCreatedCustomDomain class.

Method Summary

Modifier and Type Method and Description
static DeepCreatedCustomDomain fromJson(JsonReader jsonReader)

Reads an instance of DeepCreatedCustomDomain from the JsonReader.

String hostname()

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

String name()

Get the name property: Custom domain name.

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.

DeepCreatedCustomDomain withHostname(String hostname)

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

DeepCreatedCustomDomain withName(String name)

Set the name property: Custom domain name.

DeepCreatedCustomDomain 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

DeepCreatedCustomDomain

public DeepCreatedCustomDomain()

Creates an instance of DeepCreatedCustomDomain class.

Method Details

fromJson

public static DeepCreatedCustomDomain fromJson(JsonReader jsonReader)

Reads an instance of DeepCreatedCustomDomain from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeepCreatedCustomDomain 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.

name

public String name()

Get the name property: Custom domain name.

Returns:

the name 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.

withHostname

public DeepCreatedCustomDomain 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 DeepCreatedCustomDomain object itself.

withName

public DeepCreatedCustomDomain withName(String name)

Set the name property: Custom domain name.

Parameters:

name - the name value to set.

Returns:

the DeepCreatedCustomDomain object itself.

withValidationData

public DeepCreatedCustomDomain 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 DeepCreatedCustomDomain object itself.

Applies to