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

package com.azure.analytics.synapse.artifacts.models;

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

/**
 * A WebLinkedService that uses client certificate based authentication to communicate with an HTTP endpoint. This
 * scheme follows mutual authentication; the server must also provide valid credentials to the client.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authenticationType")
@JsonTypeName("ClientCertificate")
@Fluent
public final class WebClientCertificateAuthentication extends WebLinkedServiceTypeProperties {
    /*
     * Base64-encoded contents of a PFX file.
     */
    @JsonProperty(value = "pfx", required = true)
    private SecretBase pfx;

    /*
     * Password for the PFX file.
     */
    @JsonProperty(value = "password", required = true)
    private SecretBase password;

    /** Creates an instance of WebClientCertificateAuthentication class. */
    public WebClientCertificateAuthentication() {}

    /**
     * Get the pfx property: Base64-encoded contents of a PFX file.
     *
     * @return the pfx value.
     */
    public SecretBase getPfx() {
        return this.pfx;
    }

    /**
     * Set the pfx property: Base64-encoded contents of a PFX file.
     *
     * @param pfx the pfx value to set.
     * @return the WebClientCertificateAuthentication object itself.
     */
    public WebClientCertificateAuthentication setPfx(SecretBase pfx) {
        this.pfx = pfx;
        return this;
    }

    /**
     * Get the password property: Password for the PFX file.
     *
     * @return the password value.
     */
    public SecretBase getPassword() {
        return this.password;
    }

    /**
     * Set the password property: Password for the PFX file.
     *
     * @param password the password value to set.
     * @return the WebClientCertificateAuthentication object itself.
     */
    public WebClientCertificateAuthentication setPassword(SecretBase password) {
        this.password = password;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public WebClientCertificateAuthentication setUrl(Object url) {
        super.setUrl(url);
        return this;
    }
}
