CustomDomain Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.CustomDomain

Implements

public final class CustomDomain
implements JsonSerializable<CustomDomain>

The custom domain assigned to this storage account. This can be set via Update.

Constructor Summary

Constructor Description
CustomDomain()

Creates an instance of CustomDomain class.

Method Summary

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

Reads an instance of CustomDomain from the JsonReader.

String name()

Get the name property: Gets or sets the custom domain name assigned to the storage account.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean useSubDomainName()

Get the useSubDomainName property: Indicates whether indirect CName validation is enabled.

void validate()

Validates the instance.

CustomDomain withName(String name)

Set the name property: Gets or sets the custom domain name assigned to the storage account.

CustomDomain withUseSubDomainName(Boolean useSubDomainName)

Set the useSubDomainName property: Indicates whether indirect CName validation is enabled.

Methods inherited from java.lang.Object

Constructor Details

CustomDomain

public CustomDomain()

Creates an instance of CustomDomain class.

Method Details

fromJson

public static CustomDomain fromJson(JsonReader jsonReader)

Reads an instance of CustomDomain from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

useSubDomainName

public Boolean useSubDomainName()

Get the useSubDomainName property: Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.

Returns:

the useSubDomainName value.

validate

public void validate()

Validates the instance.

withName

public CustomDomain withName(String name)

Set the name property: Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.

Parameters:

name - the name value to set.

Returns:

the CustomDomain object itself.

withUseSubDomainName

public CustomDomain withUseSubDomainName(Boolean useSubDomainName)

Set the useSubDomainName property: Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.

Parameters:

useSubDomainName - the useSubDomainName value to set.

Returns:

the CustomDomain object itself.

Applies to