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 Details

    • GatewayHostnameConfigurationContractInner

      public GatewayHostnameConfigurationContractInner()
      Creates an instance of GatewayHostnameConfigurationContractInner class.
  • Method Details

    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • hostname

      public String hostname()
      Get the hostname property: Hostname value. Supports valid domain name, partial or full wildcard.
      Returns:
      the hostname value.
    • withHostname

      public GatewayHostnameConfigurationContractInner withHostname(String hostname)
      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

      public String certificateId()
      Get the certificateId property: Identifier of Certificate entity that will be used for TLS connection establishment.
      Returns:
      the certificateId value.
    • withCertificateId

      public GatewayHostnameConfigurationContractInner withCertificateId(String certificateId)
      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

      public Boolean 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

      public Boolean tls10Enabled()
      Get the tls10Enabled property: Specifies if TLS 1.0 is supported.
      Returns:
      the tls10Enabled value.
    • withTls10Enabled

      public GatewayHostnameConfigurationContractInner withTls10Enabled(Boolean tls10Enabled)
      Set the tls10Enabled property: Specifies if TLS 1.0 is supported.
      Parameters:
      tls10Enabled - the tls10Enabled value to set.
      Returns:
      the GatewayHostnameConfigurationContractInner object itself.
    • tls11Enabled

      public Boolean tls11Enabled()
      Get the tls11Enabled property: Specifies if TLS 1.1 is supported.
      Returns:
      the tls11Enabled value.
    • withTls11Enabled

      public GatewayHostnameConfigurationContractInner withTls11Enabled(Boolean tls11Enabled)
      Set the tls11Enabled property: Specifies if TLS 1.1 is supported.
      Parameters:
      tls11Enabled - the tls11Enabled value to set.
      Returns:
      the GatewayHostnameConfigurationContractInner object itself.
    • http2Enabled

      public Boolean http2Enabled()
      Get the http2Enabled property: Specifies if HTTP/2.0 is supported.
      Returns:
      the http2Enabled value.
    • withHttp2Enabled

      public GatewayHostnameConfigurationContractInner withHttp2Enabled(Boolean http2Enabled)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.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.