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 -
Method Summary
Modifier and TypeMethodDescriptionstatic BackendTlsPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BackendTlsProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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, waitMethods 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
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
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
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
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
- Specified by:
toJsonin interfacecom.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.
-