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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AccessPointPosixUserArgs extends com.pulumi.resources.ResourceArgs {

    public static final AccessPointPosixUserArgs Empty = new AccessPointPosixUserArgs();

    /**
     * POSIX group ID used for all file system operations using this access point.
     * 
     */
    @Import(name="gid", required=true)
    private Output<Integer> gid;

    /**
     * @return POSIX group ID used for all file system operations using this access point.
     * 
     */
    public Output<Integer> gid() {
        return this.gid;
    }

    /**
     * Secondary POSIX group IDs used for all file system operations using this access point.
     * 
     */
    @Import(name="secondaryGids")
    private @Nullable Output<List<Integer>> secondaryGids;

    /**
     * @return Secondary POSIX group IDs used for all file system operations using this access point.
     * 
     */
    public Optional<Output<List<Integer>>> secondaryGids() {
        return Optional.ofNullable(this.secondaryGids);
    }

    /**
     * POSIX user ID used for all file system operations using this access point.
     * 
     */
    @Import(name="uid", required=true)
    private Output<Integer> uid;

    /**
     * @return POSIX user ID used for all file system operations using this access point.
     * 
     */
    public Output<Integer> uid() {
        return this.uid;
    }

    private AccessPointPosixUserArgs() {}

    private AccessPointPosixUserArgs(AccessPointPosixUserArgs $) {
        this.gid = $.gid;
        this.secondaryGids = $.secondaryGids;
        this.uid = $.uid;
    }

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

    public static final class Builder {
        private AccessPointPosixUserArgs $;

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

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

        /**
         * @param gid POSIX group ID used for all file system operations using this access point.
         * 
         * @return builder
         * 
         */
        public Builder gid(Output<Integer> gid) {
            $.gid = gid;
            return this;
        }

        /**
         * @param gid POSIX group ID used for all file system operations using this access point.
         * 
         * @return builder
         * 
         */
        public Builder gid(Integer gid) {
            return gid(Output.of(gid));
        }

        /**
         * @param secondaryGids Secondary POSIX group IDs used for all file system operations using this access point.
         * 
         * @return builder
         * 
         */
        public Builder secondaryGids(@Nullable Output<List<Integer>> secondaryGids) {
            $.secondaryGids = secondaryGids;
            return this;
        }

        /**
         * @param secondaryGids Secondary POSIX group IDs used for all file system operations using this access point.
         * 
         * @return builder
         * 
         */
        public Builder secondaryGids(List<Integer> secondaryGids) {
            return secondaryGids(Output.of(secondaryGids));
        }

        /**
         * @param secondaryGids Secondary POSIX group IDs used for all file system operations using this access point.
         * 
         * @return builder
         * 
         */
        public Builder secondaryGids(Integer... secondaryGids) {
            return secondaryGids(List.of(secondaryGids));
        }

        /**
         * @param uid POSIX user ID used for all file system operations using this access point.
         * 
         * @return builder
         * 
         */
        public Builder uid(Output<Integer> uid) {
            $.uid = uid;
            return this;
        }

        /**
         * @param uid POSIX user ID used for all file system operations using this access point.
         * 
         * @return builder
         * 
         */
        public Builder uid(Integer uid) {
            return uid(Output.of(uid));
        }

        public AccessPointPosixUserArgs build() {
            $.gid = Objects.requireNonNull($.gid, "expected parameter 'gid' to be non-null");
            $.uid = Objects.requireNonNull($.uid, "expected parameter 'uid' to be non-null");
            return $;
        }
    }

}
