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

import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.organizations.inputs.GetIAMPolicyAuditConfigAuditLogConfig;
import java.lang.String;
import java.util.List;
import java.util.Objects;


public final class GetIAMPolicyAuditConfig extends com.pulumi.resources.InvokeArgs {

    public static final GetIAMPolicyAuditConfig Empty = new GetIAMPolicyAuditConfig();

    /**
     * A nested block that defines the operations you&#39;d like to log.
     * 
     */
    @Import(name="auditLogConfigs", required=true)
    private List<GetIAMPolicyAuditConfigAuditLogConfig> auditLogConfigs;

    /**
     * @return A nested block that defines the operations you&#39;d like to log.
     * 
     */
    public List<GetIAMPolicyAuditConfigAuditLogConfig> auditLogConfigs() {
        return this.auditLogConfigs;
    }

    /**
     * Defines a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
     * 
     */
    @Import(name="service", required=true)
    private String service;

    /**
     * @return Defines a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
     * 
     */
    public String service() {
        return this.service;
    }

    private GetIAMPolicyAuditConfig() {}

    private GetIAMPolicyAuditConfig(GetIAMPolicyAuditConfig $) {
        this.auditLogConfigs = $.auditLogConfigs;
        this.service = $.service;
    }

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

    public static final class Builder {
        private GetIAMPolicyAuditConfig $;

        public Builder() {
            $ = new GetIAMPolicyAuditConfig();
        }

        public Builder(GetIAMPolicyAuditConfig defaults) {
            $ = new GetIAMPolicyAuditConfig(Objects.requireNonNull(defaults));
        }

        /**
         * @param auditLogConfigs A nested block that defines the operations you&#39;d like to log.
         * 
         * @return builder
         * 
         */
        public Builder auditLogConfigs(List<GetIAMPolicyAuditConfigAuditLogConfig> auditLogConfigs) {
            $.auditLogConfigs = auditLogConfigs;
            return this;
        }

        /**
         * @param auditLogConfigs A nested block that defines the operations you&#39;d like to log.
         * 
         * @return builder
         * 
         */
        public Builder auditLogConfigs(GetIAMPolicyAuditConfigAuditLogConfig... auditLogConfigs) {
            return auditLogConfigs(List.of(auditLogConfigs));
        }

        /**
         * @param service Defines a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
         * 
         * @return builder
         * 
         */
        public Builder service(String service) {
            $.service = service;
            return this;
        }

        public GetIAMPolicyAuditConfig build() {
            $.auditLogConfigs = Objects.requireNonNull($.auditLogConfigs, "expected parameter 'auditLogConfigs' to be non-null");
            $.service = Objects.requireNonNull($.service, "expected parameter 'service' to be non-null");
            return $;
        }
    }

}
