// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.appmesh.inputs;

import com.pulumi.aws.appmesh.inputs.VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFileArgs;
import com.pulumi.aws.appmesh.inputs.VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSdsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs extends com.pulumi.resources.ResourceArgs {

    public static final VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs Empty = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs();

    /**
     * Local file certificate.
     * 
     */
    @Import(name="file")
    private @Nullable Output<VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFileArgs> file;

    /**
     * @return Local file certificate.
     * 
     */
    public Optional<Output<VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFileArgs>> file() {
        return Optional.ofNullable(this.file);
    }

    /**
     * A [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate.
     * 
     */
    @Import(name="sds")
    private @Nullable Output<VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSdsArgs> sds;

    /**
     * @return A [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate.
     * 
     */
    public Optional<Output<VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSdsArgs>> sds() {
        return Optional.ofNullable(this.sds);
    }

    private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs() {}

    private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs $) {
        this.file = $.file;
        this.sds = $.sds;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs $;

        public Builder() {
            $ = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs();
        }

        public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs defaults) {
            $ = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param file Local file certificate.
         * 
         * @return builder
         * 
         */
        public Builder file(@Nullable Output<VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFileArgs> file) {
            $.file = file;
            return this;
        }

        /**
         * @param file Local file certificate.
         * 
         * @return builder
         * 
         */
        public Builder file(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFileArgs file) {
            return file(Output.of(file));
        }

        /**
         * @param sds A [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate.
         * 
         * @return builder
         * 
         */
        public Builder sds(@Nullable Output<VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSdsArgs> sds) {
            $.sds = sds;
            return this;
        }

        /**
         * @param sds A [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate.
         * 
         * @return builder
         * 
         */
        public Builder sds(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSdsArgs sds) {
            return sds(Output.of(sds));
        }

        public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs build() {
            return $;
        }
    }

}
