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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


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

    public static final EnvironmentMembershipArgs Empty = new EnvironmentMembershipArgs();

    /**
     * The ID of the environment that contains the environment member you want to add.
     * 
     */
    @Import(name="environmentId", required=true)
    private Output<String> environmentId;

    /**
     * @return The ID of the environment that contains the environment member you want to add.
     * 
     */
    public Output<String> environmentId() {
        return this.environmentId;
    }

    /**
     * The type of environment member permissions you want to associate with this environment member. Allowed values are `read-only` and `read-write` .
     * 
     */
    @Import(name="permissions", required=true)
    private Output<String> permissions;

    /**
     * @return The type of environment member permissions you want to associate with this environment member. Allowed values are `read-only` and `read-write` .
     * 
     */
    public Output<String> permissions() {
        return this.permissions;
    }

    /**
     * The Amazon Resource Name (ARN) of the environment member you want to add.
     * 
     */
    @Import(name="userArn", required=true)
    private Output<String> userArn;

    /**
     * @return The Amazon Resource Name (ARN) of the environment member you want to add.
     * 
     */
    public Output<String> userArn() {
        return this.userArn;
    }

    private EnvironmentMembershipArgs() {}

    private EnvironmentMembershipArgs(EnvironmentMembershipArgs $) {
        this.environmentId = $.environmentId;
        this.permissions = $.permissions;
        this.userArn = $.userArn;
    }

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

    public static final class Builder {
        private EnvironmentMembershipArgs $;

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

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

        /**
         * @param environmentId The ID of the environment that contains the environment member you want to add.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(Output<String> environmentId) {
            $.environmentId = environmentId;
            return this;
        }

        /**
         * @param environmentId The ID of the environment that contains the environment member you want to add.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(String environmentId) {
            return environmentId(Output.of(environmentId));
        }

        /**
         * @param permissions The type of environment member permissions you want to associate with this environment member. Allowed values are `read-only` and `read-write` .
         * 
         * @return builder
         * 
         */
        public Builder permissions(Output<String> permissions) {
            $.permissions = permissions;
            return this;
        }

        /**
         * @param permissions The type of environment member permissions you want to associate with this environment member. Allowed values are `read-only` and `read-write` .
         * 
         * @return builder
         * 
         */
        public Builder permissions(String permissions) {
            return permissions(Output.of(permissions));
        }

        /**
         * @param userArn The Amazon Resource Name (ARN) of the environment member you want to add.
         * 
         * @return builder
         * 
         */
        public Builder userArn(Output<String> userArn) {
            $.userArn = userArn;
            return this;
        }

        /**
         * @param userArn The Amazon Resource Name (ARN) of the environment member you want to add.
         * 
         * @return builder
         * 
         */
        public Builder userArn(String userArn) {
            return userArn(Output.of(userArn));
        }

        public EnvironmentMembershipArgs build() {
            $.environmentId = Objects.requireNonNull($.environmentId, "expected parameter 'environmentId' to be non-null");
            $.permissions = Objects.requireNonNull($.permissions, "expected parameter 'permissions' to be non-null");
            $.userArn = Objects.requireNonNull($.userArn, "expected parameter 'userArn' to be non-null");
            return $;
        }
    }

}
