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

com.pulumi.azurenative.iotoperationsmq.inputs.CertManagerCertOptionsArgs Maven / Gradle / Ivy

// *** 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.iotoperationsmq.inputs;

import com.pulumi.azurenative.iotoperationsmq.inputs.CertManagerPrivateKeyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * Cert Manager CA Cert properties
 * 
 */
public final class CertManagerCertOptionsArgs extends com.pulumi.resources.ResourceArgs {

    public static final CertManagerCertOptionsArgs Empty = new CertManagerCertOptionsArgs();

    /**
     * Duration of CA cert.
     * 
     */
    @Import(name="duration", required=true)
    private Output duration;

    /**
     * @return Duration of CA cert.
     * 
     */
    public Output duration() {
        return this.duration;
    }

    /**
     * Cert Manager private key.
     * 
     */
    @Import(name="privateKey", required=true)
    private Output privateKey;

    /**
     * @return Cert Manager private key.
     * 
     */
    public Output privateKey() {
        return this.privateKey;
    }

    /**
     * Renew before time of CA cert.
     * 
     */
    @Import(name="renewBefore", required=true)
    private Output renewBefore;

    /**
     * @return Renew before time of CA cert.
     * 
     */
    public Output renewBefore() {
        return this.renewBefore;
    }

    private CertManagerCertOptionsArgs() {}

    private CertManagerCertOptionsArgs(CertManagerCertOptionsArgs $) {
        this.duration = $.duration;
        this.privateKey = $.privateKey;
        this.renewBefore = $.renewBefore;
    }

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

    public static final class Builder {
        private CertManagerCertOptionsArgs $;

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

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

        /**
         * @param duration Duration of CA cert.
         * 
         * @return builder
         * 
         */
        public Builder duration(Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration Duration of CA cert.
         * 
         * @return builder
         * 
         */
        public Builder duration(String duration) {
            return duration(Output.of(duration));
        }

        /**
         * @param privateKey Cert Manager private key.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(Output privateKey) {
            $.privateKey = privateKey;
            return this;
        }

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

        /**
         * @param renewBefore Renew before time of CA cert.
         * 
         * @return builder
         * 
         */
        public Builder renewBefore(Output renewBefore) {
            $.renewBefore = renewBefore;
            return this;
        }

        /**
         * @param renewBefore Renew before time of CA cert.
         * 
         * @return builder
         * 
         */
        public Builder renewBefore(String renewBefore) {
            return renewBefore(Output.of(renewBefore));
        }

        public CertManagerCertOptionsArgs build() {
            $.duration = Codegen.stringProp("duration").output().arg($.duration).def("720h").require();
            if ($.privateKey == null) {
                throw new MissingRequiredPropertyException("CertManagerCertOptionsArgs", "privateKey");
            }
            $.renewBefore = Codegen.stringProp("renewBefore").output().arg($.renewBefore).def("240h").require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy