All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.efs.inputs.AccessPointPosixUserArgs Maven / Gradle / Ivy

// *** 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 com.pulumi.exceptions.MissingRequiredPropertyException;
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 gid;

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

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

    /**
     * @return Secondary POSIX group IDs used for all file system operations using this access point.
     * 
     */
    public Optional>> 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 uid;

    /**
     * @return POSIX user ID used for all file system operations using this access point.
     * 
     */
    public Output 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 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> 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 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 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() {
            if ($.gid == null) {
                throw new MissingRequiredPropertyException("AccessPointPosixUserArgs", "gid");
            }
            if ($.uid == null) {
                throw new MissingRequiredPropertyException("AccessPointPosixUserArgs", "uid");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy