// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.media.videoanalyzer.edge.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Options for controlling the validation of TLS endpoints. */
@Fluent
public final class TlsValidationOptions {
    /*
     * When set to 'true' causes the certificate subject name validation to be
     * skipped. Default is 'false'.
     */
    @JsonProperty(value = "ignoreHostname")
    private String ignoreHostname;

    /*
     * When set to 'true' causes the certificate chain trust validation to be
     * skipped. Default is 'false'.
     */
    @JsonProperty(value = "ignoreSignature")
    private String ignoreSignature;

    /**
     * Get the ignoreHostname property: When set to 'true' causes the certificate subject name validation to be skipped.
     * Default is 'false'.
     *
     * @return the ignoreHostname value.
     */
    public String getIgnoreHostname() {
        return this.ignoreHostname;
    }

    /**
     * Set the ignoreHostname property: When set to 'true' causes the certificate subject name validation to be skipped.
     * Default is 'false'.
     *
     * @param ignoreHostname the ignoreHostname value to set.
     * @return the TlsValidationOptions object itself.
     */
    public TlsValidationOptions setIgnoreHostname(String ignoreHostname) {
        this.ignoreHostname = ignoreHostname;
        return this;
    }

    /**
     * Get the ignoreSignature property: When set to 'true' causes the certificate chain trust validation to be skipped.
     * Default is 'false'.
     *
     * @return the ignoreSignature value.
     */
    public String getIgnoreSignature() {
        return this.ignoreSignature;
    }

    /**
     * Set the ignoreSignature property: When set to 'true' causes the certificate chain trust validation to be skipped.
     * Default is 'false'.
     *
     * @param ignoreSignature the ignoreSignature value to set.
     * @return the TlsValidationOptions object itself.
     */
    public TlsValidationOptions setIgnoreSignature(String ignoreSignature) {
        this.ignoreSignature = ignoreSignature;
        return this;
    }
}
