All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.opsworks.outputs.ApplicationSslConfiguration Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.72.0
Show newest version
// *** 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 com.pulumi.exceptions.MissingRequiredPropertyException;
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'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's domain.key file.
     * 
     */
    private String privateKey;

    private ApplicationSslConfiguration() {}
    /**
     * @return The contents of the certificate'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 chain() {
        return Optional.ofNullable(this.chain);
    }
    /**
     * @return The private key; the contents of the certificate'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) {
            if (certificate == null) {
              throw new MissingRequiredPropertyException("ApplicationSslConfiguration", "certificate");
            }
            this.certificate = certificate;
            return this;
        }
        @CustomType.Setter
        public Builder chain(@Nullable String chain) {

            this.chain = chain;
            return this;
        }
        @CustomType.Setter
        public Builder privateKey(String privateKey) {
            if (privateKey == null) {
              throw new MissingRequiredPropertyException("ApplicationSslConfiguration", "privateKey");
            }
            this.privateKey = privateKey;
            return this;
        }
        public ApplicationSslConfiguration build() {
            final var _resultValue = new ApplicationSslConfiguration();
            _resultValue.certificate = certificate;
            _resultValue.chain = chain;
            _resultValue.privateKey = privateKey;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy