Class GatewayHostnameConfigurationContractInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.GatewayHostnameConfigurationContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class GatewayHostnameConfigurationContractInner
extends com.azure.core.management.ProxyResource
Gateway hostname configuration details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GatewayHostnameConfigurationContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the certificateId property: Identifier of Certificate entity that will be used for TLS connection establishment.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GatewayHostnameConfigurationContractInner from the JsonReader.hostname()Get the hostname property: Hostname value.Get the http2Enabled property: Specifies if HTTP/2.0 is supported.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.Get the negotiateClientCertificate property: Determines whether gateway requests client certificate.Get the tls10Enabled property: Specifies if TLS 1.0 is supported.Get the tls11Enabled property: Specifies if TLS 1.1 is supported.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withCertificateId(String certificateId) Set the certificateId property: Identifier of Certificate entity that will be used for TLS connection establishment.withHostname(String hostname) Set the hostname property: Hostname value.withHttp2Enabled(Boolean http2Enabled) Set the http2Enabled property: Specifies if HTTP/2.0 is supported.withNegotiateClientCertificate(Boolean negotiateClientCertificate) Set the negotiateClientCertificate property: Determines whether gateway requests client certificate.withTls10Enabled(Boolean tls10Enabled) Set the tls10Enabled property: Specifies if TLS 1.0 is supported.withTls11Enabled(Boolean tls11Enabled) Set the tls11Enabled property: Specifies if TLS 1.1 is supported.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GatewayHostnameConfigurationContractInner
public GatewayHostnameConfigurationContractInner()Creates an instance of GatewayHostnameConfigurationContractInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
hostname
Get the hostname property: Hostname value. Supports valid domain name, partial or full wildcard.- Returns:
- the hostname value.
-
withHostname
Set the hostname property: Hostname value. Supports valid domain name, partial or full wildcard.- Parameters:
hostname- the hostname value to set.- Returns:
- the GatewayHostnameConfigurationContractInner object itself.
-
certificateId
Get the certificateId property: Identifier of Certificate entity that will be used for TLS connection establishment.- Returns:
- the certificateId value.
-
withCertificateId
Set the certificateId property: Identifier of Certificate entity that will be used for TLS connection establishment.- Parameters:
certificateId- the certificateId value to set.- Returns:
- the GatewayHostnameConfigurationContractInner object itself.
-
negotiateClientCertificate
Get the negotiateClientCertificate property: Determines whether gateway requests client certificate.- Returns:
- the negotiateClientCertificate value.
-
withNegotiateClientCertificate
public GatewayHostnameConfigurationContractInner withNegotiateClientCertificate(Boolean negotiateClientCertificate) Set the negotiateClientCertificate property: Determines whether gateway requests client certificate.- Parameters:
negotiateClientCertificate- the negotiateClientCertificate value to set.- Returns:
- the GatewayHostnameConfigurationContractInner object itself.
-
tls10Enabled
Get the tls10Enabled property: Specifies if TLS 1.0 is supported.- Returns:
- the tls10Enabled value.
-
withTls10Enabled
Set the tls10Enabled property: Specifies if TLS 1.0 is supported.- Parameters:
tls10Enabled- the tls10Enabled value to set.- Returns:
- the GatewayHostnameConfigurationContractInner object itself.
-
tls11Enabled
Get the tls11Enabled property: Specifies if TLS 1.1 is supported.- Returns:
- the tls11Enabled value.
-
withTls11Enabled
Set the tls11Enabled property: Specifies if TLS 1.1 is supported.- Parameters:
tls11Enabled- the tls11Enabled value to set.- Returns:
- the GatewayHostnameConfigurationContractInner object itself.
-
http2Enabled
Get the http2Enabled property: Specifies if HTTP/2.0 is supported.- Returns:
- the http2Enabled value.
-
withHttp2Enabled
Set the http2Enabled property: Specifies if HTTP/2.0 is supported.- Parameters:
http2Enabled- the http2Enabled value to set.- Returns:
- the GatewayHostnameConfigurationContractInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static GatewayHostnameConfigurationContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GatewayHostnameConfigurationContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GatewayHostnameConfigurationContractInner 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 GatewayHostnameConfigurationContractInner.
-