Class GatewayHostnameConfigurationContractProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.GatewayHostnameConfigurationContractProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayHostnameConfigurationContractProperties>

public final class GatewayHostnameConfigurationContractProperties extends Object implements com.azure.json.JsonSerializable<GatewayHostnameConfigurationContractProperties>
Gateway hostname configuration details.
  • Constructor Details

    • GatewayHostnameConfigurationContractProperties

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

    • hostname

      public String 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 GatewayHostnameConfigurationContractProperties 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 GatewayHostnameConfigurationContractProperties 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 GatewayHostnameConfigurationContractProperties object itself.
    • negotiateClientCertificate

      public Boolean negotiateClientCertificate()
      Get the negotiateClientCertificate property: Determines whether gateway requests client certificate.
      Returns:
      the negotiateClientCertificate value.
    • withNegotiateClientCertificate

      public GatewayHostnameConfigurationContractProperties withNegotiateClientCertificate(Boolean negotiateClientCertificate)
      Set the negotiateClientCertificate property: Determines whether gateway requests client certificate.
      Parameters:
      negotiateClientCertificate - the negotiateClientCertificate value to set.
      Returns:
      the GatewayHostnameConfigurationContractProperties object itself.
    • tls10Enabled

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

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

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

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

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

      public GatewayHostnameConfigurationContractProperties withHttp2Enabled(Boolean http2Enabled)
      Set the http2Enabled property: Specifies if HTTP/2.0 is supported.
      Parameters:
      http2Enabled - the http2Enabled value to set.
      Returns:
      the GatewayHostnameConfigurationContractProperties 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<GatewayHostnameConfigurationContractProperties>
      Throws:
      IOException
    • fromJson

      public static GatewayHostnameConfigurationContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of GatewayHostnameConfigurationContractProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of GatewayHostnameConfigurationContractProperties 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 GatewayHostnameConfigurationContractProperties.