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

com.pulumi.azurenative.iotoperations.inputs.AutomaticCertMethodArgs Maven / Gradle / Ivy

The 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.azurenative.iotoperations.inputs;

import com.pulumi.azurenative.iotoperations.inputs.CertManagerIssuerRefArgs;
import com.pulumi.azurenative.iotoperations.inputs.CertManagerPrivateKeyArgs;
import com.pulumi.azurenative.iotoperations.inputs.SanForCertArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Automatic TLS server certificate management with cert-manager
 * 
 */
public final class AutomaticCertMethodArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutomaticCertMethodArgs Empty = new AutomaticCertMethodArgs();

    /**
     * Lifetime of certificate. Must be specified using a Go time.Duration format (h|m|s). E.g. 240h for 240 hours and 45m for 45 minutes.
     * 
     */
    @Import(name="duration")
    private @Nullable Output duration;

    /**
     * @return Lifetime of certificate. Must be specified using a Go time.Duration format (h|m|s). E.g. 240h for 240 hours and 45m for 45 minutes.
     * 
     */
    public Optional> duration() {
        return Optional.ofNullable(this.duration);
    }

    /**
     * cert-manager issuerRef.
     * 
     */
    @Import(name="issuerRef", required=true)
    private Output issuerRef;

    /**
     * @return cert-manager issuerRef.
     * 
     */
    public Output issuerRef() {
        return this.issuerRef;
    }

    /**
     * Type of certificate private key.
     * 
     */
    @Import(name="privateKey")
    private @Nullable Output privateKey;

    /**
     * @return Type of certificate private key.
     * 
     */
    public Optional> privateKey() {
        return Optional.ofNullable(this.privateKey);
    }

    /**
     * When to begin renewing certificate. Must be specified using a Go time.Duration format (h|m|s). E.g. 240h for 240 hours and 45m for 45 minutes.
     * 
     */
    @Import(name="renewBefore")
    private @Nullable Output renewBefore;

    /**
     * @return When to begin renewing certificate. Must be specified using a Go time.Duration format (h|m|s). E.g. 240h for 240 hours and 45m for 45 minutes.
     * 
     */
    public Optional> renewBefore() {
        return Optional.ofNullable(this.renewBefore);
    }

    /**
     * Additional Subject Alternative Names (SANs) to include in the certificate.
     * 
     */
    @Import(name="san")
    private @Nullable Output san;

    /**
     * @return Additional Subject Alternative Names (SANs) to include in the certificate.
     * 
     */
    public Optional> san() {
        return Optional.ofNullable(this.san);
    }

    /**
     * Secret for storing server certificate. Any existing data will be overwritten. This is a reference to the secret through an identifying name, not the secret itself.
     * 
     */
    @Import(name="secretRef")
    private @Nullable Output secretRef;

    /**
     * @return Secret for storing server certificate. Any existing data will be overwritten. This is a reference to the secret through an identifying name, not the secret itself.
     * 
     */
    public Optional> secretRef() {
        return Optional.ofNullable(this.secretRef);
    }

    private AutomaticCertMethodArgs() {}

    private AutomaticCertMethodArgs(AutomaticCertMethodArgs $) {
        this.duration = $.duration;
        this.issuerRef = $.issuerRef;
        this.privateKey = $.privateKey;
        this.renewBefore = $.renewBefore;
        this.san = $.san;
        this.secretRef = $.secretRef;
    }

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

    public static final class Builder {
        private AutomaticCertMethodArgs $;

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

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

        /**
         * @param duration Lifetime of certificate. Must be specified using a Go time.Duration format (h|m|s). E.g. 240h for 240 hours and 45m for 45 minutes.
         * 
         * @return builder
         * 
         */
        public Builder duration(@Nullable Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration Lifetime of certificate. Must be specified using a Go time.Duration format (h|m|s). E.g. 240h for 240 hours and 45m for 45 minutes.
         * 
         * @return builder
         * 
         */
        public Builder duration(String duration) {
            return duration(Output.of(duration));
        }

        /**
         * @param issuerRef cert-manager issuerRef.
         * 
         * @return builder
         * 
         */
        public Builder issuerRef(Output issuerRef) {
            $.issuerRef = issuerRef;
            return this;
        }

        /**
         * @param issuerRef cert-manager issuerRef.
         * 
         * @return builder
         * 
         */
        public Builder issuerRef(CertManagerIssuerRefArgs issuerRef) {
            return issuerRef(Output.of(issuerRef));
        }

        /**
         * @param privateKey Type of certificate private key.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(@Nullable Output privateKey) {
            $.privateKey = privateKey;
            return this;
        }

        /**
         * @param privateKey Type of certificate private key.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(CertManagerPrivateKeyArgs privateKey) {
            return privateKey(Output.of(privateKey));
        }

        /**
         * @param renewBefore When to begin renewing certificate. Must be specified using a Go time.Duration format (h|m|s). E.g. 240h for 240 hours and 45m for 45 minutes.
         * 
         * @return builder
         * 
         */
        public Builder renewBefore(@Nullable Output renewBefore) {
            $.renewBefore = renewBefore;
            return this;
        }

        /**
         * @param renewBefore When to begin renewing certificate. Must be specified using a Go time.Duration format (h|m|s). E.g. 240h for 240 hours and 45m for 45 minutes.
         * 
         * @return builder
         * 
         */
        public Builder renewBefore(String renewBefore) {
            return renewBefore(Output.of(renewBefore));
        }

        /**
         * @param san Additional Subject Alternative Names (SANs) to include in the certificate.
         * 
         * @return builder
         * 
         */
        public Builder san(@Nullable Output san) {
            $.san = san;
            return this;
        }

        /**
         * @param san Additional Subject Alternative Names (SANs) to include in the certificate.
         * 
         * @return builder
         * 
         */
        public Builder san(SanForCertArgs san) {
            return san(Output.of(san));
        }

        /**
         * @param secretRef Secret for storing server certificate. Any existing data will be overwritten. This is a reference to the secret through an identifying name, not the secret itself.
         * 
         * @return builder
         * 
         */
        public Builder secretRef(@Nullable Output secretRef) {
            $.secretRef = secretRef;
            return this;
        }

        /**
         * @param secretRef Secret for storing server certificate. Any existing data will be overwritten. This is a reference to the secret through an identifying name, not the secret itself.
         * 
         * @return builder
         * 
         */
        public Builder secretRef(String secretRef) {
            return secretRef(Output.of(secretRef));
        }

        public AutomaticCertMethodArgs build() {
            if ($.issuerRef == null) {
                throw new MissingRequiredPropertyException("AutomaticCertMethodArgs", "issuerRef");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy