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

com.pulumi.aws.transfer.outputs.UserPosixProfile Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class UserPosixProfile {
    /**
     * @return The POSIX group ID used for all EFS operations by this user.
     * 
     */
    private Integer gid;
    /**
     * @return The secondary POSIX group IDs used for all EFS operations by this user.
     * 
     */
    private @Nullable List secondaryGids;
    /**
     * @return The POSIX user ID used for all EFS operations by this user.
     * 
     */
    private Integer uid;

    private UserPosixProfile() {}
    /**
     * @return The POSIX group ID used for all EFS operations by this user.
     * 
     */
    public Integer gid() {
        return this.gid;
    }
    /**
     * @return The secondary POSIX group IDs used for all EFS operations by this user.
     * 
     */
    public List secondaryGids() {
        return this.secondaryGids == null ? List.of() : this.secondaryGids;
    }
    /**
     * @return The POSIX user ID used for all EFS operations by this user.
     * 
     */
    public Integer uid() {
        return this.uid;
    }

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

    public static Builder builder(UserPosixProfile defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer gid;
        private @Nullable List secondaryGids;
        private Integer uid;
        public Builder() {}
        public Builder(UserPosixProfile defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.gid = defaults.gid;
    	      this.secondaryGids = defaults.secondaryGids;
    	      this.uid = defaults.uid;
        }

        @CustomType.Setter
        public Builder gid(Integer gid) {
            if (gid == null) {
              throw new MissingRequiredPropertyException("UserPosixProfile", "gid");
            }
            this.gid = gid;
            return this;
        }
        @CustomType.Setter
        public Builder secondaryGids(@Nullable List secondaryGids) {

            this.secondaryGids = secondaryGids;
            return this;
        }
        public Builder secondaryGids(Integer... secondaryGids) {
            return secondaryGids(List.of(secondaryGids));
        }
        @CustomType.Setter
        public Builder uid(Integer uid) {
            if (uid == null) {
              throw new MissingRequiredPropertyException("UserPosixProfile", "uid");
            }
            this.uid = uid;
            return this;
        }
        public UserPosixProfile build() {
            final var _resultValue = new UserPosixProfile();
            _resultValue.gid = gid;
            _resultValue.secondaryGids = secondaryGids;
            _resultValue.uid = uid;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy