Class CustomDomain
java.lang.Object
com.azure.resourcemanager.appcontainers.models.CustomDomain
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomDomain>
public final class CustomDomain
extends Object
implements com.azure.json.JsonSerializable<CustomDomain>
Custom Domain of a Container App.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the bindingType property: Custom Domain binding type.Get the certificateId property: Resource Id of the Certificate to be bound to this hostname.static CustomDomain
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CustomDomain from the JsonReader.name()
Get the name property: Hostname.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBindingType
(BindingType bindingType) Set the bindingType property: Custom Domain binding type.withCertificateId
(String certificateId) Set the certificateId property: Resource Id of the Certificate to be bound to this hostname.Set the name property: Hostname.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CustomDomain
public CustomDomain()Creates an instance of CustomDomain class.
-
-
Method Details
-
name
Get the name property: Hostname.- Returns:
- the name value.
-
withName
Set the name property: Hostname.- Parameters:
name
- the name value to set.- Returns:
- the CustomDomain object itself.
-
bindingType
Get the bindingType property: Custom Domain binding type.- Returns:
- the bindingType value.
-
withBindingType
Set the bindingType property: Custom Domain binding type.- Parameters:
bindingType
- the bindingType value to set.- Returns:
- the CustomDomain object itself.
-
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.
-
withCertificateId
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CustomDomain>
- Throws:
IOException
-
fromJson
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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the CustomDomain.
-