// *** 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.GetAuthorityAccessUrl;
import com.pulumi.gcp.certificateauthority.outputs.GetAuthorityConfig;
import com.pulumi.gcp.certificateauthority.outputs.GetAuthorityKeySpec;
import com.pulumi.gcp.certificateauthority.outputs.GetAuthoritySubordinateConfig;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetAuthorityResult {
    private List<GetAuthorityAccessUrl> accessUrls;
    private @Nullable String certificateAuthorityId;
    private List<GetAuthorityConfig> configs;
    private String createTime;
    private Boolean deletionProtection;
    private String desiredState;
    private String gcsBucket;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private Boolean ignoreActiveCertificatesOnDeletion;
    private List<GetAuthorityKeySpec> keySpecs;
    private Map<String,String> labels;
    private String lifetime;
    private @Nullable String location;
    private String name;
    private String pemCaCertificate;
    private List<String> pemCaCertificates;
    /**
     * @return The PEM-encoded signed certificate signing request (CSR). This is only set on subordinate certificate authorities that are awaiting user activation.
     * 
     */
    private String pemCsr;
    private @Nullable String pool;
    private @Nullable String project;
    private Boolean skipGracePeriod;
    private String state;
    private List<GetAuthoritySubordinateConfig> subordinateConfigs;
    private String type;
    private String updateTime;

    private GetAuthorityResult() {}
    public List<GetAuthorityAccessUrl> accessUrls() {
        return this.accessUrls;
    }
    public Optional<String> certificateAuthorityId() {
        return Optional.ofNullable(this.certificateAuthorityId);
    }
    public List<GetAuthorityConfig> configs() {
        return this.configs;
    }
    public String createTime() {
        return this.createTime;
    }
    public Boolean deletionProtection() {
        return this.deletionProtection;
    }
    public String desiredState() {
        return this.desiredState;
    }
    public String gcsBucket() {
        return this.gcsBucket;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Boolean ignoreActiveCertificatesOnDeletion() {
        return this.ignoreActiveCertificatesOnDeletion;
    }
    public List<GetAuthorityKeySpec> keySpecs() {
        return this.keySpecs;
    }
    public Map<String,String> labels() {
        return this.labels;
    }
    public String lifetime() {
        return this.lifetime;
    }
    public Optional<String> location() {
        return Optional.ofNullable(this.location);
    }
    public String name() {
        return this.name;
    }
    public String pemCaCertificate() {
        return this.pemCaCertificate;
    }
    public List<String> pemCaCertificates() {
        return this.pemCaCertificates;
    }
    /**
     * @return The PEM-encoded signed certificate signing request (CSR). This is only set on subordinate certificate authorities that are awaiting user activation.
     * 
     */
    public String pemCsr() {
        return this.pemCsr;
    }
    public Optional<String> pool() {
        return Optional.ofNullable(this.pool);
    }
    public Optional<String> project() {
        return Optional.ofNullable(this.project);
    }
    public Boolean skipGracePeriod() {
        return this.skipGracePeriod;
    }
    public String state() {
        return this.state;
    }
    public List<GetAuthoritySubordinateConfig> subordinateConfigs() {
        return this.subordinateConfigs;
    }
    public String type() {
        return this.type;
    }
    public String updateTime() {
        return this.updateTime;
    }

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

    public static Builder builder(GetAuthorityResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<GetAuthorityAccessUrl> accessUrls;
        private @Nullable String certificateAuthorityId;
        private List<GetAuthorityConfig> configs;
        private String createTime;
        private Boolean deletionProtection;
        private String desiredState;
        private String gcsBucket;
        private String id;
        private Boolean ignoreActiveCertificatesOnDeletion;
        private List<GetAuthorityKeySpec> keySpecs;
        private Map<String,String> labels;
        private String lifetime;
        private @Nullable String location;
        private String name;
        private String pemCaCertificate;
        private List<String> pemCaCertificates;
        private String pemCsr;
        private @Nullable String pool;
        private @Nullable String project;
        private Boolean skipGracePeriod;
        private String state;
        private List<GetAuthoritySubordinateConfig> subordinateConfigs;
        private String type;
        private String updateTime;
        public Builder() {}
        public Builder(GetAuthorityResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accessUrls = defaults.accessUrls;
    	      this.certificateAuthorityId = defaults.certificateAuthorityId;
    	      this.configs = defaults.configs;
    	      this.createTime = defaults.createTime;
    	      this.deletionProtection = defaults.deletionProtection;
    	      this.desiredState = defaults.desiredState;
    	      this.gcsBucket = defaults.gcsBucket;
    	      this.id = defaults.id;
    	      this.ignoreActiveCertificatesOnDeletion = defaults.ignoreActiveCertificatesOnDeletion;
    	      this.keySpecs = defaults.keySpecs;
    	      this.labels = defaults.labels;
    	      this.lifetime = defaults.lifetime;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.pemCaCertificate = defaults.pemCaCertificate;
    	      this.pemCaCertificates = defaults.pemCaCertificates;
    	      this.pemCsr = defaults.pemCsr;
    	      this.pool = defaults.pool;
    	      this.project = defaults.project;
    	      this.skipGracePeriod = defaults.skipGracePeriod;
    	      this.state = defaults.state;
    	      this.subordinateConfigs = defaults.subordinateConfigs;
    	      this.type = defaults.type;
    	      this.updateTime = defaults.updateTime;
        }

        @CustomType.Setter
        public Builder accessUrls(List<GetAuthorityAccessUrl> accessUrls) {
            this.accessUrls = Objects.requireNonNull(accessUrls);
            return this;
        }
        public Builder accessUrls(GetAuthorityAccessUrl... accessUrls) {
            return accessUrls(List.of(accessUrls));
        }
        @CustomType.Setter
        public Builder certificateAuthorityId(@Nullable String certificateAuthorityId) {
            this.certificateAuthorityId = certificateAuthorityId;
            return this;
        }
        @CustomType.Setter
        public Builder configs(List<GetAuthorityConfig> configs) {
            this.configs = Objects.requireNonNull(configs);
            return this;
        }
        public Builder configs(GetAuthorityConfig... configs) {
            return configs(List.of(configs));
        }
        @CustomType.Setter
        public Builder createTime(String createTime) {
            this.createTime = Objects.requireNonNull(createTime);
            return this;
        }
        @CustomType.Setter
        public Builder deletionProtection(Boolean deletionProtection) {
            this.deletionProtection = Objects.requireNonNull(deletionProtection);
            return this;
        }
        @CustomType.Setter
        public Builder desiredState(String desiredState) {
            this.desiredState = Objects.requireNonNull(desiredState);
            return this;
        }
        @CustomType.Setter
        public Builder gcsBucket(String gcsBucket) {
            this.gcsBucket = Objects.requireNonNull(gcsBucket);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder ignoreActiveCertificatesOnDeletion(Boolean ignoreActiveCertificatesOnDeletion) {
            this.ignoreActiveCertificatesOnDeletion = Objects.requireNonNull(ignoreActiveCertificatesOnDeletion);
            return this;
        }
        @CustomType.Setter
        public Builder keySpecs(List<GetAuthorityKeySpec> keySpecs) {
            this.keySpecs = Objects.requireNonNull(keySpecs);
            return this;
        }
        public Builder keySpecs(GetAuthorityKeySpec... keySpecs) {
            return keySpecs(List.of(keySpecs));
        }
        @CustomType.Setter
        public Builder labels(Map<String,String> labels) {
            this.labels = Objects.requireNonNull(labels);
            return this;
        }
        @CustomType.Setter
        public Builder lifetime(String lifetime) {
            this.lifetime = Objects.requireNonNull(lifetime);
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder pemCaCertificate(String pemCaCertificate) {
            this.pemCaCertificate = Objects.requireNonNull(pemCaCertificate);
            return this;
        }
        @CustomType.Setter
        public Builder pemCaCertificates(List<String> pemCaCertificates) {
            this.pemCaCertificates = Objects.requireNonNull(pemCaCertificates);
            return this;
        }
        public Builder pemCaCertificates(String... pemCaCertificates) {
            return pemCaCertificates(List.of(pemCaCertificates));
        }
        @CustomType.Setter
        public Builder pemCsr(String pemCsr) {
            this.pemCsr = Objects.requireNonNull(pemCsr);
            return this;
        }
        @CustomType.Setter
        public Builder pool(@Nullable String pool) {
            this.pool = pool;
            return this;
        }
        @CustomType.Setter
        public Builder project(@Nullable String project) {
            this.project = project;
            return this;
        }
        @CustomType.Setter
        public Builder skipGracePeriod(Boolean skipGracePeriod) {
            this.skipGracePeriod = Objects.requireNonNull(skipGracePeriod);
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            this.state = Objects.requireNonNull(state);
            return this;
        }
        @CustomType.Setter
        public Builder subordinateConfigs(List<GetAuthoritySubordinateConfig> subordinateConfigs) {
            this.subordinateConfigs = Objects.requireNonNull(subordinateConfigs);
            return this;
        }
        public Builder subordinateConfigs(GetAuthoritySubordinateConfig... subordinateConfigs) {
            return subordinateConfigs(List.of(subordinateConfigs));
        }
        @CustomType.Setter
        public Builder type(String type) {
            this.type = Objects.requireNonNull(type);
            return this;
        }
        @CustomType.Setter
        public Builder updateTime(String updateTime) {
            this.updateTime = Objects.requireNonNull(updateTime);
            return this;
        }
        public GetAuthorityResult build() {
            final var o = new GetAuthorityResult();
            o.accessUrls = accessUrls;
            o.certificateAuthorityId = certificateAuthorityId;
            o.configs = configs;
            o.createTime = createTime;
            o.deletionProtection = deletionProtection;
            o.desiredState = desiredState;
            o.gcsBucket = gcsBucket;
            o.id = id;
            o.ignoreActiveCertificatesOnDeletion = ignoreActiveCertificatesOnDeletion;
            o.keySpecs = keySpecs;
            o.labels = labels;
            o.lifetime = lifetime;
            o.location = location;
            o.name = name;
            o.pemCaCertificate = pemCaCertificate;
            o.pemCaCertificates = pemCaCertificates;
            o.pemCsr = pemCsr;
            o.pool = pool;
            o.project = project;
            o.skipGracePeriod = skipGracePeriod;
            o.state = state;
            o.subordinateConfigs = subordinateConfigs;
            o.type = type;
            o.updateTime = updateTime;
            return o;
        }
    }
}
