// *** 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 com.pulumi.gcp.organizations.outputs.GetIAMPolicyAuditConfig;
import com.pulumi.gcp.organizations.outputs.GetIAMPolicyBinding;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetIAMPolicyResult {
    private @Nullable List<GetIAMPolicyAuditConfig> auditConfigs;
    private @Nullable List<GetIAMPolicyBinding> bindings;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The above bindings serialized in a format suitable for
     * referencing from a resource that supports IAM.
     * 
     */
    private String policyData;

    private GetIAMPolicyResult() {}
    public List<GetIAMPolicyAuditConfig> auditConfigs() {
        return this.auditConfigs == null ? List.of() : this.auditConfigs;
    }
    public List<GetIAMPolicyBinding> bindings() {
        return this.bindings == null ? List.of() : this.bindings;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The above bindings serialized in a format suitable for
     * referencing from a resource that supports IAM.
     * 
     */
    public String policyData() {
        return this.policyData;
    }

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

    public static Builder builder(GetIAMPolicyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<GetIAMPolicyAuditConfig> auditConfigs;
        private @Nullable List<GetIAMPolicyBinding> bindings;
        private String id;
        private String policyData;
        public Builder() {}
        public Builder(GetIAMPolicyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.auditConfigs = defaults.auditConfigs;
    	      this.bindings = defaults.bindings;
    	      this.id = defaults.id;
    	      this.policyData = defaults.policyData;
        }

        @CustomType.Setter
        public Builder auditConfigs(@Nullable List<GetIAMPolicyAuditConfig> auditConfigs) {
            this.auditConfigs = auditConfigs;
            return this;
        }
        public Builder auditConfigs(GetIAMPolicyAuditConfig... auditConfigs) {
            return auditConfigs(List.of(auditConfigs));
        }
        @CustomType.Setter
        public Builder bindings(@Nullable List<GetIAMPolicyBinding> bindings) {
            this.bindings = bindings;
            return this;
        }
        public Builder bindings(GetIAMPolicyBinding... bindings) {
            return bindings(List.of(bindings));
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder policyData(String policyData) {
            this.policyData = Objects.requireNonNull(policyData);
            return this;
        }
        public GetIAMPolicyResult build() {
            final var o = new GetIAMPolicyResult();
            o.auditConfigs = auditConfigs;
            o.bindings = bindings;
            o.id = id;
            o.policyData = policyData;
            return o;
        }
    }
}
