CustomDomain Class

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

Implements

public final class CustomDomain
implements JsonSerializable<CustomDomain>

Custom Domain of a Container App.

Constructor Summary

Constructor Description
CustomDomain()

Creates an instance of CustomDomain class.

Method Summary

Modifier and Type Method and Description
BindingType bindingType()

Get the bindingType property: Custom Domain binding type.

String certificateId()

Get the certificateId property: Resource Id of the Certificate to be bound to this hostname.

static CustomDomain fromJson(JsonReader jsonReader)

Reads an instance of CustomDomain from the JsonReader.

String name()

Get the name property: Hostname.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CustomDomain withBindingType(BindingType bindingType)

Set the bindingType property: Custom Domain binding type.

CustomDomain withCertificateId(String certificateId)

Set the certificateId property: Resource Id of the Certificate to be bound to this hostname.

CustomDomain withName(String name)

Set the name property: Hostname.

Methods inherited from java.lang.Object

Constructor Details

CustomDomain

public CustomDomain()

Creates an instance of CustomDomain class.

Method Details

bindingType

public BindingType bindingType()

Get the bindingType property: Custom Domain binding type.

Returns:

the bindingType value.

certificateId

public String certificateId()

Get the certificateId property: Resource Id of the Certificate to be bound to this hostname. Must exist in the Managed Environment.

Returns:

the certificateId value.

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: Hostname.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBindingType

public CustomDomain withBindingType(BindingType bindingType)

Set the bindingType property: Custom Domain binding type.

Parameters:

bindingType - the bindingType value to set.

Returns:

the CustomDomain object itself.

withCertificateId

public CustomDomain withCertificateId(String certificateId)

Set the certificateId property: Resource Id of the Certificate to be bound to this hostname. Must exist in the Managed Environment.

Parameters:

certificateId - the certificateId value to set.

Returns:

the CustomDomain object itself.

withName

public CustomDomain withName(String name)

Set the name property: Hostname.

Parameters:

name - the name value to set.

Returns:

the CustomDomain object itself.

Applies to