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

com.pulumi.cloudngfwaws.CertificateArgs 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.cloudngfwaws;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CertificateArgs Empty = new CertificateArgs();

    /**
     * The audit comment.
     * 
     */
    @Import(name="auditComment")
    private @Nullable Output auditComment;

    /**
     * @return The audit comment.
     * 
     */
    public Optional> auditComment() {
        return Optional.ofNullable(this.auditComment);
    }

    /**
     * The description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The rulestack.
     * 
     */
    @Import(name="rulestack", required=true)
    private Output rulestack;

    /**
     * @return The rulestack.
     * 
     */
    public Output rulestack() {
        return this.rulestack;
    }

    /**
     * The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    /**
     * Set to true if certificate is self-signed.
     * 
     */
    @Import(name="selfSigned")
    private @Nullable Output selfSigned;

    /**
     * @return Set to true if certificate is self-signed.
     * 
     */
    public Optional> selfSigned() {
        return Optional.ofNullable(this.selfSigned);
    }

    /**
     * The certificate signer ARN.
     * 
     */
    @Import(name="signerArn")
    private @Nullable Output signerArn;

    /**
     * @return The certificate signer ARN.
     * 
     */
    public Optional> signerArn() {
        return Optional.ofNullable(this.signerArn);
    }

    private CertificateArgs() {}

    private CertificateArgs(CertificateArgs $) {
        this.auditComment = $.auditComment;
        this.description = $.description;
        this.name = $.name;
        this.rulestack = $.rulestack;
        this.scope = $.scope;
        this.selfSigned = $.selfSigned;
        this.signerArn = $.signerArn;
    }

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

    public static final class Builder {
        private CertificateArgs $;

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

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

        /**
         * @param auditComment The audit comment.
         * 
         * @return builder
         * 
         */
        public Builder auditComment(@Nullable Output auditComment) {
            $.auditComment = auditComment;
            return this;
        }

        /**
         * @param auditComment The audit comment.
         * 
         * @return builder
         * 
         */
        public Builder auditComment(String auditComment) {
            return auditComment(Output.of(auditComment));
        }

        /**
         * @param description The description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name The name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param rulestack The rulestack.
         * 
         * @return builder
         * 
         */
        public Builder rulestack(Output rulestack) {
            $.rulestack = rulestack;
            return this;
        }

        /**
         * @param rulestack The rulestack.
         * 
         * @return builder
         * 
         */
        public Builder rulestack(String rulestack) {
            return rulestack(Output.of(rulestack));
        }

        /**
         * @param scope The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param selfSigned Set to true if certificate is self-signed.
         * 
         * @return builder
         * 
         */
        public Builder selfSigned(@Nullable Output selfSigned) {
            $.selfSigned = selfSigned;
            return this;
        }

        /**
         * @param selfSigned Set to true if certificate is self-signed.
         * 
         * @return builder
         * 
         */
        public Builder selfSigned(Boolean selfSigned) {
            return selfSigned(Output.of(selfSigned));
        }

        /**
         * @param signerArn The certificate signer ARN.
         * 
         * @return builder
         * 
         */
        public Builder signerArn(@Nullable Output signerArn) {
            $.signerArn = signerArn;
            return this;
        }

        /**
         * @param signerArn The certificate signer ARN.
         * 
         * @return builder
         * 
         */
        public Builder signerArn(String signerArn) {
            return signerArn(Output.of(signerArn));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy