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

com.pulumi.aws.transfer.inputs.UserPosixProfileArgs 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.transfer.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 UserPosixProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final UserPosixProfileArgs Empty = new UserPosixProfileArgs();

    /**
     * The POSIX group ID used for all EFS operations by this user.
     * 
     */
    @Import(name="gid", required=true)
    private Output gid;

    /**
     * @return The POSIX group ID used for all EFS operations by this user.
     * 
     */
    public Output gid() {
        return this.gid;
    }

    /**
     * The secondary POSIX group IDs used for all EFS operations by this user.
     * 
     */
    @Import(name="secondaryGids")
    private @Nullable Output> secondaryGids;

    /**
     * @return The secondary POSIX group IDs used for all EFS operations by this user.
     * 
     */
    public Optional>> secondaryGids() {
        return Optional.ofNullable(this.secondaryGids);
    }

    /**
     * The POSIX user ID used for all EFS operations by this user.
     * 
     */
    @Import(name="uid", required=true)
    private Output uid;

    /**
     * @return The POSIX user ID used for all EFS operations by this user.
     * 
     */
    public Output uid() {
        return this.uid;
    }

    private UserPosixProfileArgs() {}

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

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

    public static final class Builder {
        private UserPosixProfileArgs $;

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

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

        /**
         * @param gid The POSIX group ID used for all EFS operations by this user.
         * 
         * @return builder
         * 
         */
        public Builder gid(Output gid) {
            $.gid = gid;
            return this;
        }

        /**
         * @param gid The POSIX group ID used for all EFS operations by this user.
         * 
         * @return builder
         * 
         */
        public Builder gid(Integer gid) {
            return gid(Output.of(gid));
        }

        /**
         * @param secondaryGids The secondary POSIX group IDs used for all EFS operations by this user.
         * 
         * @return builder
         * 
         */
        public Builder secondaryGids(@Nullable Output> secondaryGids) {
            $.secondaryGids = secondaryGids;
            return this;
        }

        /**
         * @param secondaryGids The secondary POSIX group IDs used for all EFS operations by this user.
         * 
         * @return builder
         * 
         */
        public Builder secondaryGids(List secondaryGids) {
            return secondaryGids(Output.of(secondaryGids));
        }

        /**
         * @param secondaryGids The secondary POSIX group IDs used for all EFS operations by this user.
         * 
         * @return builder
         * 
         */
        public Builder secondaryGids(Integer... secondaryGids) {
            return secondaryGids(List.of(secondaryGids));
        }

        /**
         * @param uid The POSIX user ID used for all EFS operations by this user.
         * 
         * @return builder
         * 
         */
        public Builder uid(Output uid) {
            $.uid = uid;
            return this;
        }

        /**
         * @param uid The POSIX user ID used for all EFS operations by this user.
         * 
         * @return builder
         * 
         */
        public Builder uid(Integer uid) {
            return uid(Output.of(uid));
        }

        public UserPosixProfileArgs build() {
            if ($.gid == null) {
                throw new MissingRequiredPropertyException("UserPosixProfileArgs", "gid");
            }
            if ($.uid == null) {
                throw new MissingRequiredPropertyException("UserPosixProfileArgs", "uid");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy