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

import com.pulumi.aws.acmpca.outputs.GetCertificateAuthorityRevocationConfigurationCrlConfiguration;
import com.pulumi.aws.acmpca.outputs.GetCertificateAuthorityRevocationConfigurationOcspConfiguration;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetCertificateAuthorityRevocationConfiguration {
    private List<GetCertificateAuthorityRevocationConfigurationCrlConfiguration> crlConfigurations;
    private List<GetCertificateAuthorityRevocationConfigurationOcspConfiguration> ocspConfigurations;

    private GetCertificateAuthorityRevocationConfiguration() {}
    public List<GetCertificateAuthorityRevocationConfigurationCrlConfiguration> crlConfigurations() {
        return this.crlConfigurations;
    }
    public List<GetCertificateAuthorityRevocationConfigurationOcspConfiguration> ocspConfigurations() {
        return this.ocspConfigurations;
    }

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

    public static Builder builder(GetCertificateAuthorityRevocationConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<GetCertificateAuthorityRevocationConfigurationCrlConfiguration> crlConfigurations;
        private List<GetCertificateAuthorityRevocationConfigurationOcspConfiguration> ocspConfigurations;
        public Builder() {}
        public Builder(GetCertificateAuthorityRevocationConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.crlConfigurations = defaults.crlConfigurations;
    	      this.ocspConfigurations = defaults.ocspConfigurations;
        }

        @CustomType.Setter
        public Builder crlConfigurations(List<GetCertificateAuthorityRevocationConfigurationCrlConfiguration> crlConfigurations) {
            this.crlConfigurations = Objects.requireNonNull(crlConfigurations);
            return this;
        }
        public Builder crlConfigurations(GetCertificateAuthorityRevocationConfigurationCrlConfiguration... crlConfigurations) {
            return crlConfigurations(List.of(crlConfigurations));
        }
        @CustomType.Setter
        public Builder ocspConfigurations(List<GetCertificateAuthorityRevocationConfigurationOcspConfiguration> ocspConfigurations) {
            this.ocspConfigurations = Objects.requireNonNull(ocspConfigurations);
            return this;
        }
        public Builder ocspConfigurations(GetCertificateAuthorityRevocationConfigurationOcspConfiguration... ocspConfigurations) {
            return ocspConfigurations(List.of(ocspConfigurations));
        }
        public GetCertificateAuthorityRevocationConfiguration build() {
            final var o = new GetCertificateAuthorityRevocationConfiguration();
            o.crlConfigurations = crlConfigurations;
            o.ocspConfigurations = ocspConfigurations;
            return o;
        }
    }
}
