// *** 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.GetAuthorityConfigSubjectConfig;
import com.pulumi.gcp.certificateauthority.outputs.GetAuthorityConfigX509Config;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetAuthorityConfig {
    private List<GetAuthorityConfigSubjectConfig> subjectConfigs;
    private List<GetAuthorityConfigX509Config> x509Configs;

    private GetAuthorityConfig() {}
    public List<GetAuthorityConfigSubjectConfig> subjectConfigs() {
        return this.subjectConfigs;
    }
    public List<GetAuthorityConfigX509Config> x509Configs() {
        return this.x509Configs;
    }

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

    public static Builder builder(GetAuthorityConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<GetAuthorityConfigSubjectConfig> subjectConfigs;
        private List<GetAuthorityConfigX509Config> x509Configs;
        public Builder() {}
        public Builder(GetAuthorityConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.subjectConfigs = defaults.subjectConfigs;
    	      this.x509Configs = defaults.x509Configs;
        }

        @CustomType.Setter
        public Builder subjectConfigs(List<GetAuthorityConfigSubjectConfig> subjectConfigs) {
            this.subjectConfigs = Objects.requireNonNull(subjectConfigs);
            return this;
        }
        public Builder subjectConfigs(GetAuthorityConfigSubjectConfig... subjectConfigs) {
            return subjectConfigs(List.of(subjectConfigs));
        }
        @CustomType.Setter
        public Builder x509Configs(List<GetAuthorityConfigX509Config> x509Configs) {
            this.x509Configs = Objects.requireNonNull(x509Configs);
            return this;
        }
        public Builder x509Configs(GetAuthorityConfigX509Config... x509Configs) {
            return x509Configs(List.of(x509Configs));
        }
        public GetAuthorityConfig build() {
            final var o = new GetAuthorityConfig();
            o.subjectConfigs = subjectConfigs;
            o.x509Configs = x509Configs;
            return o;
        }
    }
}
