CustomDomainPropertiesParameters Class

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

Implements

public final class CustomDomainPropertiesParameters
implements JsonSerializable<CustomDomainPropertiesParameters>

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

Constructor Summary

Constructor Description
CustomDomainPropertiesParameters()

Creates an instance of CustomDomainPropertiesParameters class.

Method Summary

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

Reads an instance of CustomDomainPropertiesParameters from the JsonReader.

String hostname()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CustomDomainPropertiesParameters withHostname(String hostname)

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

Methods inherited from java.lang.Object

Constructor Details

CustomDomainPropertiesParameters

public CustomDomainPropertiesParameters()

Creates an instance of CustomDomainPropertiesParameters class.

Method Details

fromJson

public static CustomDomainPropertiesParameters fromJson(JsonReader jsonReader)

Reads an instance of CustomDomainPropertiesParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHostname

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

Applies to