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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.certificateauthority.outputs.CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsage;
import com.pulumi.gcp.certificateauthority.outputs.CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsage;
import com.pulumi.gcp.certificateauthority.outputs.CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsage;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class CertificateCertificateDescriptionX509DescriptionKeyUsage {
    /**
     * @return Describes high-level ways in which a key may be used.
     * Structure is documented below.
     * 
     */
    private @Nullable List<CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsage> baseKeyUsages;
    /**
     * @return Describes high-level ways in which a key may be used.
     * Structure is documented below.
     * 
     */
    private @Nullable List<CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsage> extendedKeyUsages;
    /**
     * @return An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     * 
     */
    private @Nullable List<CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsage> unknownExtendedKeyUsages;

    private CertificateCertificateDescriptionX509DescriptionKeyUsage() {}
    /**
     * @return Describes high-level ways in which a key may be used.
     * Structure is documented below.
     * 
     */
    public List<CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsage> baseKeyUsages() {
        return this.baseKeyUsages == null ? List.of() : this.baseKeyUsages;
    }
    /**
     * @return Describes high-level ways in which a key may be used.
     * Structure is documented below.
     * 
     */
    public List<CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsage> extendedKeyUsages() {
        return this.extendedKeyUsages == null ? List.of() : this.extendedKeyUsages;
    }
    /**
     * @return An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
     * Structure is documented below.
     * 
     */
    public List<CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsage> unknownExtendedKeyUsages() {
        return this.unknownExtendedKeyUsages == null ? List.of() : this.unknownExtendedKeyUsages;
    }

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

    public static Builder builder(CertificateCertificateDescriptionX509DescriptionKeyUsage defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsage> baseKeyUsages;
        private @Nullable List<CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsage> extendedKeyUsages;
        private @Nullable List<CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsage> unknownExtendedKeyUsages;
        public Builder() {}
        public Builder(CertificateCertificateDescriptionX509DescriptionKeyUsage defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.baseKeyUsages = defaults.baseKeyUsages;
    	      this.extendedKeyUsages = defaults.extendedKeyUsages;
    	      this.unknownExtendedKeyUsages = defaults.unknownExtendedKeyUsages;
        }

        @CustomType.Setter
        public Builder baseKeyUsages(@Nullable List<CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsage> baseKeyUsages) {
            this.baseKeyUsages = baseKeyUsages;
            return this;
        }
        public Builder baseKeyUsages(CertificateCertificateDescriptionX509DescriptionKeyUsageBaseKeyUsage... baseKeyUsages) {
            return baseKeyUsages(List.of(baseKeyUsages));
        }
        @CustomType.Setter
        public Builder extendedKeyUsages(@Nullable List<CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsage> extendedKeyUsages) {
            this.extendedKeyUsages = extendedKeyUsages;
            return this;
        }
        public Builder extendedKeyUsages(CertificateCertificateDescriptionX509DescriptionKeyUsageExtendedKeyUsage... extendedKeyUsages) {
            return extendedKeyUsages(List.of(extendedKeyUsages));
        }
        @CustomType.Setter
        public Builder unknownExtendedKeyUsages(@Nullable List<CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsage> unknownExtendedKeyUsages) {
            this.unknownExtendedKeyUsages = unknownExtendedKeyUsages;
            return this;
        }
        public Builder unknownExtendedKeyUsages(CertificateCertificateDescriptionX509DescriptionKeyUsageUnknownExtendedKeyUsage... unknownExtendedKeyUsages) {
            return unknownExtendedKeyUsages(List.of(unknownExtendedKeyUsages));
        }
        public CertificateCertificateDescriptionX509DescriptionKeyUsage build() {
            final var o = new CertificateCertificateDescriptionX509DescriptionKeyUsage();
            o.baseKeyUsages = baseKeyUsages;
            o.extendedKeyUsages = extendedKeyUsages;
            o.unknownExtendedKeyUsages = unknownExtendedKeyUsages;
            return o;
        }
    }
}
