// *** 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.CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsageArgs;
import com.pulumi.gcp.certificateauthority.inputs.CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsageArgs;
import com.pulumi.gcp.certificateauthority.inputs.CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsageArgs;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CertificateCertificateDescriptionX509DescriptionKeyUsageArgs Empty = new CertificateCertificateDescriptionX509DescriptionKeyUsageArgs();

    /**
     * Describes high-level ways in which a key may be used.
     * Structure is documented below.
     * 
     */
    @Import(name="baseKeyUsages")
    private @Nullable Output<List<CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsageArgs>> baseKeyUsages;

    /**
     * @return Describes high-level ways in which a key may be used.
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsageArgs>>> baseKeyUsages() {
        return Optional.ofNullable(this.baseKeyUsages);
    }

    /**
     * Describes high-level ways in which a key may be used.
     * Structure is documented below.
     * 
     */
    @Import(name="extendedKeyUsages")
    private @Nullable Output<List<CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsageArgs>> extendedKeyUsages;

    /**
     * @return Describes high-level ways in which a key may be used.
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsageArgs>>> extendedKeyUsages() {
        return Optional.ofNullable(this.extendedKeyUsages);
    }

    /**
     * An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     * 
     */
    @Import(name="unknownExtendedKeyUsages")
    private @Nullable Output<List<CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsageArgs>> unknownExtendedKeyUsages;

    /**
     * @return An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsageArgs>>> unknownExtendedKeyUsages() {
        return Optional.ofNullable(this.unknownExtendedKeyUsages);
    }

    private CertificateCertificateDescriptionX509DescriptionKeyUsageArgs() {}

    private CertificateCertificateDescriptionX509DescriptionKeyUsageArgs(CertificateCertificateDescriptionX509DescriptionKeyUsageArgs $) {
        this.baseKeyUsages = $.baseKeyUsages;
        this.extendedKeyUsages = $.extendedKeyUsages;
        this.unknownExtendedKeyUsages = $.unknownExtendedKeyUsages;
    }

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

    public static final class Builder {
        private CertificateCertificateDescriptionX509DescriptionKeyUsageArgs $;

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

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

        /**
         * @param baseKeyUsages Describes high-level ways in which a key may be used.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder baseKeyUsages(@Nullable Output<List<CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsageArgs>> baseKeyUsages) {
            $.baseKeyUsages = baseKeyUsages;
            return this;
        }

        /**
         * @param baseKeyUsages Describes high-level ways in which a key may be used.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder baseKeyUsages(List<CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsageArgs> baseKeyUsages) {
            return baseKeyUsages(Output.of(baseKeyUsages));
        }

        /**
         * @param baseKeyUsages Describes high-level ways in which a key may be used.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder baseKeyUsages(CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsageArgs... baseKeyUsages) {
            return baseKeyUsages(List.of(baseKeyUsages));
        }

        /**
         * @param extendedKeyUsages Describes high-level ways in which a key may be used.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder extendedKeyUsages(@Nullable Output<List<CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsageArgs>> extendedKeyUsages) {
            $.extendedKeyUsages = extendedKeyUsages;
            return this;
        }

        /**
         * @param extendedKeyUsages Describes high-level ways in which a key may be used.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder extendedKeyUsages(List<CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsageArgs> extendedKeyUsages) {
            return extendedKeyUsages(Output.of(extendedKeyUsages));
        }

        /**
         * @param extendedKeyUsages Describes high-level ways in which a key may be used.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder extendedKeyUsages(CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsageArgs... extendedKeyUsages) {
            return extendedKeyUsages(List.of(extendedKeyUsages));
        }

        /**
         * @param unknownExtendedKeyUsages An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder unknownExtendedKeyUsages(@Nullable Output<List<CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsageArgs>> unknownExtendedKeyUsages) {
            $.unknownExtendedKeyUsages = unknownExtendedKeyUsages;
            return this;
        }

        /**
         * @param unknownExtendedKeyUsages An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder unknownExtendedKeyUsages(List<CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsageArgs> unknownExtendedKeyUsages) {
            return unknownExtendedKeyUsages(Output.of(unknownExtendedKeyUsages));
        }

        /**
         * @param unknownExtendedKeyUsages An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder unknownExtendedKeyUsages(CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsageArgs... unknownExtendedKeyUsages) {
            return unknownExtendedKeyUsages(List.of(unknownExtendedKeyUsages));
        }

        public CertificateCertificateDescriptionX509DescriptionKeyUsageArgs build() {
            return $;
        }
    }

}
