Class BackendTlsProperties

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

public final class BackendTlsProperties extends Object implements com.azure.json.JsonSerializable<BackendTlsProperties>
Properties controlling TLS Certificate Validation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of BackendTlsProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BackendTlsProperties from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the validateCertificateChain property: Flag indicating whether SSL certificate chain validation should be done when using self-signed certificates for this backend host.
    Get the validateCertificateName property: Flag indicating whether SSL certificate name validation should be done when using self-signed certificates for this backend host.
    withValidateCertificateChain(Boolean validateCertificateChain)
    Set the validateCertificateChain property: Flag indicating whether SSL certificate chain validation should be done when using self-signed certificates for this backend host.
    withValidateCertificateName(Boolean validateCertificateName)
    Set the validateCertificateName property: Flag indicating whether SSL certificate name validation should be done when using self-signed certificates for this backend host.

    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

    • BackendTlsProperties

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

    • validateCertificateChain

      public Boolean validateCertificateChain()
      Get the validateCertificateChain property: Flag indicating whether SSL certificate chain validation should be done when using self-signed certificates for this backend host.
      Returns:
      the validateCertificateChain value.
    • withValidateCertificateChain

      public BackendTlsProperties withValidateCertificateChain(Boolean validateCertificateChain)
      Set the validateCertificateChain property: Flag indicating whether SSL certificate chain validation should be done when using self-signed certificates for this backend host.
      Parameters:
      validateCertificateChain - the validateCertificateChain value to set.
      Returns:
      the BackendTlsProperties object itself.
    • validateCertificateName

      public Boolean validateCertificateName()
      Get the validateCertificateName property: Flag indicating whether SSL certificate name validation should be done when using self-signed certificates for this backend host.
      Returns:
      the validateCertificateName value.
    • withValidateCertificateName

      public BackendTlsProperties withValidateCertificateName(Boolean validateCertificateName)
      Set the validateCertificateName property: Flag indicating whether SSL certificate name validation should be done when using self-signed certificates for this backend host.
      Parameters:
      validateCertificateName - the validateCertificateName value to set.
      Returns:
      the BackendTlsProperties 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<BackendTlsProperties>
      Throws:
      IOException
    • fromJson

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