Class HostnameSslState
java.lang.Object
com.azure.resourcemanager.appservice.models.HostnameSslState
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HostnameSslState>
public final class HostnameSslState
extends Object
implements com.azure.json.JsonSerializable<HostnameSslState>
SSL-enabled hostname.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HostnameSslState
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of HostnameSslState from the JsonReader.hostType()
Get the hostType property: Indicates whether the hostname is a standard or repository hostname.name()
Get the name property: Hostname.sslState()
Get the sslState property: SSL type.Get the thumbprint property: SSL certificate thumbprint.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) toUpdate()
Get the toUpdate property: Set to <code>true</code> to update existing hostname.void
validate()
Validates the instance.Get the virtualIp property: Virtual IP address assigned to the hostname if IP based SSL is enabled.withHostType
(HostType hostType) Set the hostType property: Indicates whether the hostname is a standard or repository hostname.Set the name property: Hostname.withSslState
(SslState sslState) Set the sslState property: SSL type.withThumbprint
(String thumbprint) Set the thumbprint property: SSL certificate thumbprint.withToUpdate
(Boolean toUpdate) Set the toUpdate property: Set to <code>true</code> to update existing hostname.withVirtualIp
(String virtualIp) Set the virtualIp property: Virtual IP address assigned to the hostname if IP based SSL is enabled.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
-
HostnameSslState
public HostnameSslState()Creates an instance of HostnameSslState 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 HostnameSslState object itself.
-
sslState
Get the sslState property: SSL type.- Returns:
- the sslState value.
-
withSslState
Set the sslState property: SSL type.- Parameters:
sslState
- the sslState value to set.- Returns:
- the HostnameSslState object itself.
-
virtualIp
Get the virtualIp property: Virtual IP address assigned to the hostname if IP based SSL is enabled.- Returns:
- the virtualIp value.
-
withVirtualIp
Set the virtualIp property: Virtual IP address assigned to the hostname if IP based SSL is enabled.- Parameters:
virtualIp
- the virtualIp value to set.- Returns:
- the HostnameSslState object itself.
-
thumbprint
Get the thumbprint property: SSL certificate thumbprint.- Returns:
- the thumbprint value.
-
withThumbprint
Set the thumbprint property: SSL certificate thumbprint.- Parameters:
thumbprint
- the thumbprint value to set.- Returns:
- the HostnameSslState object itself.
-
toUpdate
Get the toUpdate property: Set to <code>true</code> to update existing hostname.- Returns:
- the toUpdate value.
-
withToUpdate
Set the toUpdate property: Set to <code>true</code> to update existing hostname.- Parameters:
toUpdate
- the toUpdate value to set.- Returns:
- the HostnameSslState object itself.
-
hostType
Get the hostType property: Indicates whether the hostname is a standard or repository hostname.- Returns:
- the hostType value.
-
withHostType
Set the hostType property: Indicates whether the hostname is a standard or repository hostname.- Parameters:
hostType
- the hostType value to set.- Returns:
- the HostnameSslState 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<HostnameSslState>
- Throws:
IOException
-
fromJson
Reads an instance of HostnameSslState from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of HostnameSslState if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the HostnameSslState.
-