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

com.pulumi.mongodbatlas.inputs.ProjectTeamArgs 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.mongodbatlas.inputs;

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


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

    public static final ProjectTeamArgs Empty = new ProjectTeamArgs();

    /**
     * Each string in the array represents a project role you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The [MongoDB Documentation](https://www.mongodb.com/docs/atlas/reference/user-roles/#organization-roles) describes the roles a user can have.
     * 
     * > **NOTE:** Project created by API Keys must belong to an existing organization.
     * 
     */
    @Import(name="roleNames", required=true)
    private Output> roleNames;

    /**
     * @return Each string in the array represents a project role you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The [MongoDB Documentation](https://www.mongodb.com/docs/atlas/reference/user-roles/#organization-roles) describes the roles a user can have.
     * 
     * > **NOTE:** Project created by API Keys must belong to an existing organization.
     * 
     */
    public Output> roleNames() {
        return this.roleNames;
    }

    /**
     * The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
     * 
     */
    @Import(name="teamId", required=true)
    private Output teamId;

    /**
     * @return The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
     * 
     */
    public Output teamId() {
        return this.teamId;
    }

    private ProjectTeamArgs() {}

    private ProjectTeamArgs(ProjectTeamArgs $) {
        this.roleNames = $.roleNames;
        this.teamId = $.teamId;
    }

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

    public static final class Builder {
        private ProjectTeamArgs $;

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

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

        /**
         * @param roleNames Each string in the array represents a project role you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The [MongoDB Documentation](https://www.mongodb.com/docs/atlas/reference/user-roles/#organization-roles) describes the roles a user can have.
         * 
         * > **NOTE:** Project created by API Keys must belong to an existing organization.
         * 
         * @return builder
         * 
         */
        public Builder roleNames(Output> roleNames) {
            $.roleNames = roleNames;
            return this;
        }

        /**
         * @param roleNames Each string in the array represents a project role you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The [MongoDB Documentation](https://www.mongodb.com/docs/atlas/reference/user-roles/#organization-roles) describes the roles a user can have.
         * 
         * > **NOTE:** Project created by API Keys must belong to an existing organization.
         * 
         * @return builder
         * 
         */
        public Builder roleNames(List roleNames) {
            return roleNames(Output.of(roleNames));
        }

        /**
         * @param roleNames Each string in the array represents a project role you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The [MongoDB Documentation](https://www.mongodb.com/docs/atlas/reference/user-roles/#organization-roles) describes the roles a user can have.
         * 
         * > **NOTE:** Project created by API Keys must belong to an existing organization.
         * 
         * @return builder
         * 
         */
        public Builder roleNames(String... roleNames) {
            return roleNames(List.of(roleNames));
        }

        /**
         * @param teamId The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
         * 
         * @return builder
         * 
         */
        public Builder teamId(Output teamId) {
            $.teamId = teamId;
            return this;
        }

        /**
         * @param teamId The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
         * 
         * @return builder
         * 
         */
        public Builder teamId(String teamId) {
            return teamId(Output.of(teamId));
        }

        public ProjectTeamArgs build() {
            if ($.roleNames == null) {
                throw new MissingRequiredPropertyException("ProjectTeamArgs", "roleNames");
            }
            if ($.teamId == null) {
                throw new MissingRequiredPropertyException("ProjectTeamArgs", "teamId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy