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

import com.pulumi.azure.storage.inputs.GetShareAclAccessPolicy;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;


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

    public static final GetShareAcl Empty = new GetShareAcl();

    /**
     * An `access_policy` block as defined below.
     * 
     */
    @Import(name="accessPolicies", required=true)
    private List<GetShareAclAccessPolicy> accessPolicies;

    /**
     * @return An `access_policy` block as defined below.
     * 
     */
    public List<GetShareAclAccessPolicy> accessPolicies() {
        return this.accessPolicies;
    }

    /**
     * The ID which should be used for this Shared Identifier.
     * 
     */
    @Import(name="id", required=true)
    private String id;

    /**
     * @return The ID which should be used for this Shared Identifier.
     * 
     */
    public String id() {
        return this.id;
    }

    private GetShareAcl() {}

    private GetShareAcl(GetShareAcl $) {
        this.accessPolicies = $.accessPolicies;
        this.id = $.id;
    }

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

    public static final class Builder {
        private GetShareAcl $;

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

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

        /**
         * @param accessPolicies An `access_policy` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder accessPolicies(List<GetShareAclAccessPolicy> accessPolicies) {
            $.accessPolicies = accessPolicies;
            return this;
        }

        /**
         * @param accessPolicies An `access_policy` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder accessPolicies(GetShareAclAccessPolicy... accessPolicies) {
            return accessPolicies(List.of(accessPolicies));
        }

        /**
         * @param id The ID which should be used for this Shared Identifier.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            $.id = id;
            return this;
        }

        public GetShareAcl build() {
            $.accessPolicies = Objects.requireNonNull($.accessPolicies, "expected parameter 'accessPolicies' to be non-null");
            $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null");
            return $;
        }
    }

}
