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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.certificateauthority.inputs.CertificateCertificateDescriptionX509DescriptionAdditionalExtensionObjectIdArgs;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CertificateCertificateDescriptionX509DescriptionAdditionalExtensionArgs Empty = new CertificateCertificateDescriptionX509DescriptionAdditionalExtensionArgs();

    /**
     * Indicates whether or not this extension is critical (i.e., if the client does not know how to
     * handle this extension, the client should consider this to be an error).
     * 
     */
    @Import(name="critical")
    private @Nullable Output<Boolean> critical;

    /**
     * @return Indicates whether or not this extension is critical (i.e., if the client does not know how to
     * handle this extension, the client should consider this to be an error).
     * 
     */
    public Optional<Output<Boolean>> critical() {
        return Optional.ofNullable(this.critical);
    }

    /**
     * Describes values that are relevant in a CA certificate.
     * Structure is documented below.
     * 
     */
    @Import(name="objectIds")
    private @Nullable Output<List<CertificateCertificateDescriptionX509DescriptionAdditionalExtensionObjectIdArgs>> objectIds;

    /**
     * @return Describes values that are relevant in a CA certificate.
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<CertificateCertificateDescriptionX509DescriptionAdditionalExtensionObjectIdArgs>>> objectIds() {
        return Optional.ofNullable(this.objectIds);
    }

    /**
     * The value of this X.509 extension. A base64-encoded string.
     * 
     */
    @Import(name="value")
    private @Nullable Output<String> value;

    /**
     * @return The value of this X.509 extension. A base64-encoded string.
     * 
     */
    public Optional<Output<String>> value() {
        return Optional.ofNullable(this.value);
    }

    private CertificateCertificateDescriptionX509DescriptionAdditionalExtensionArgs() {}

    private CertificateCertificateDescriptionX509DescriptionAdditionalExtensionArgs(CertificateCertificateDescriptionX509DescriptionAdditionalExtensionArgs $) {
        this.critical = $.critical;
        this.objectIds = $.objectIds;
        this.value = $.value;
    }

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

    public static final class Builder {
        private CertificateCertificateDescriptionX509DescriptionAdditionalExtensionArgs $;

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

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

        /**
         * @param critical Indicates whether or not this extension is critical (i.e., if the client does not know how to
         * handle this extension, the client should consider this to be an error).
         * 
         * @return builder
         * 
         */
        public Builder critical(@Nullable Output<Boolean> critical) {
            $.critical = critical;
            return this;
        }

        /**
         * @param critical Indicates whether or not this extension is critical (i.e., if the client does not know how to
         * handle this extension, the client should consider this to be an error).
         * 
         * @return builder
         * 
         */
        public Builder critical(Boolean critical) {
            return critical(Output.of(critical));
        }

        /**
         * @param objectIds Describes values that are relevant in a CA certificate.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder objectIds(@Nullable Output<List<CertificateCertificateDescriptionX509DescriptionAdditionalExtensionObjectIdArgs>> objectIds) {
            $.objectIds = objectIds;
            return this;
        }

        /**
         * @param objectIds Describes values that are relevant in a CA certificate.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder objectIds(List<CertificateCertificateDescriptionX509DescriptionAdditionalExtensionObjectIdArgs> objectIds) {
            return objectIds(Output.of(objectIds));
        }

        /**
         * @param objectIds Describes values that are relevant in a CA certificate.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder objectIds(CertificateCertificateDescriptionX509DescriptionAdditionalExtensionObjectIdArgs... objectIds) {
            return objectIds(List.of(objectIds));
        }

        /**
         * @param value The value of this X.509 extension. A base64-encoded string.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output<String> value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The value of this X.509 extension. A base64-encoded string.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public CertificateCertificateDescriptionX509DescriptionAdditionalExtensionArgs build() {
            return $;
        }
    }

}
