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

com.pulumi.aws.cloud9.EnvironmentMembershipArgs 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.cloud9;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 environmentId;

    /**
     * @return The ID of the environment that contains the environment member you want to add.
     * 
     */
    public Output 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 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 permissions() {
        return this.permissions;
    }

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

    /**
     * @return The Amazon Resource Name (ARN) of the environment member you want to add.
     * 
     */
    public Output 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 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 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 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() {
            if ($.environmentId == null) {
                throw new MissingRequiredPropertyException("EnvironmentMembershipArgs", "environmentId");
            }
            if ($.permissions == null) {
                throw new MissingRequiredPropertyException("EnvironmentMembershipArgs", "permissions");
            }
            if ($.userArn == null) {
                throw new MissingRequiredPropertyException("EnvironmentMembershipArgs", "userArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy