// *** 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.opsworks.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ApplicationSslConfiguration {
    /**
     * @return The contents of the certificate&#39;s domain.crt file.
     * 
     */
    private String certificate;
    /**
     * @return Can be used to specify an intermediate certificate authority key or client authentication.
     * 
     */
    private @Nullable String chain;
    /**
     * @return The private key; the contents of the certificate&#39;s domain.key file.
     * 
     */
    private String privateKey;

    private ApplicationSslConfiguration() {}
    /**
     * @return The contents of the certificate&#39;s domain.crt file.
     * 
     */
    public String certificate() {
        return this.certificate;
    }
    /**
     * @return Can be used to specify an intermediate certificate authority key or client authentication.
     * 
     */
    public Optional<String> chain() {
        return Optional.ofNullable(this.chain);
    }
    /**
     * @return The private key; the contents of the certificate&#39;s domain.key file.
     * 
     */
    public String privateKey() {
        return this.privateKey;
    }

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

    public static Builder builder(ApplicationSslConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String certificate;
        private @Nullable String chain;
        private String privateKey;
        public Builder() {}
        public Builder(ApplicationSslConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.certificate = defaults.certificate;
    	      this.chain = defaults.chain;
    	      this.privateKey = defaults.privateKey;
        }

        @CustomType.Setter
        public Builder certificate(String certificate) {
            this.certificate = Objects.requireNonNull(certificate);
            return this;
        }
        @CustomType.Setter
        public Builder chain(@Nullable String chain) {
            this.chain = chain;
            return this;
        }
        @CustomType.Setter
        public Builder privateKey(String privateKey) {
            this.privateKey = Objects.requireNonNull(privateKey);
            return this;
        }
        public ApplicationSslConfiguration build() {
            final var o = new ApplicationSslConfiguration();
            o.certificate = certificate;
            o.chain = chain;
            o.privateKey = privateKey;
            return o;
        }
    }
}
