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

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetIAMPolicyAuditConfigAuditLogConfig {
    /**
     * @return Specifies the identities that are exempt from these types of logging operations. Follows the same format of the `members` array for `binding`.
     * 
     */
    private @Nullable List<String> exemptedMembers;
    /**
     * @return Defines the logging level. `DATA_READ`, `DATA_WRITE` and `ADMIN_READ` capture different types of events. See [the audit configuration documentation](https://cloud.google.com/resource-manager/reference/rest/Shared.Types/AuditConfig) for more details.
     * 
     */
    private String logType;

    private GetIAMPolicyAuditConfigAuditLogConfig() {}
    /**
     * @return Specifies the identities that are exempt from these types of logging operations. Follows the same format of the `members` array for `binding`.
     * 
     */
    public List<String> exemptedMembers() {
        return this.exemptedMembers == null ? List.of() : this.exemptedMembers;
    }
    /**
     * @return Defines the logging level. `DATA_READ`, `DATA_WRITE` and `ADMIN_READ` capture different types of events. See [the audit configuration documentation](https://cloud.google.com/resource-manager/reference/rest/Shared.Types/AuditConfig) for more details.
     * 
     */
    public String logType() {
        return this.logType;
    }

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

    public static Builder builder(GetIAMPolicyAuditConfigAuditLogConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<String> exemptedMembers;
        private String logType;
        public Builder() {}
        public Builder(GetIAMPolicyAuditConfigAuditLogConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.exemptedMembers = defaults.exemptedMembers;
    	      this.logType = defaults.logType;
        }

        @CustomType.Setter
        public Builder exemptedMembers(@Nullable List<String> exemptedMembers) {
            this.exemptedMembers = exemptedMembers;
            return this;
        }
        public Builder exemptedMembers(String... exemptedMembers) {
            return exemptedMembers(List.of(exemptedMembers));
        }
        @CustomType.Setter
        public Builder logType(String logType) {
            this.logType = Objects.requireNonNull(logType);
            return this;
        }
        public GetIAMPolicyAuditConfigAuditLogConfig build() {
            final var o = new GetIAMPolicyAuditConfigAuditLogConfig();
            o.exemptedMembers = exemptedMembers;
            o.logType = logType;
            return o;
        }
    }
}
