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

com.pulumi.mongodbatlas.inputs.CustomDbRoleState Maven / Gradle / Ivy

There is a newer version: 3.19.0-alpha.1726206690
Show 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.mongodbatlas.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.mongodbatlas.inputs.CustomDbRoleActionArgs;
import com.pulumi.mongodbatlas.inputs.CustomDbRoleInheritedRoleArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CustomDbRoleState Empty = new CustomDbRoleState();

    @Import(name="actions")
    private @Nullable Output> actions;

    public Optional>> actions() {
        return Optional.ofNullable(this.actions);
    }

    @Import(name="inheritedRoles")
    private @Nullable Output> inheritedRoles;

    public Optional>> inheritedRoles() {
        return Optional.ofNullable(this.inheritedRoles);
    }

    /**
     * The unique ID for the project to create the database user.
     * 
     */
    @Import(name="projectId")
    private @Nullable Output projectId;

    /**
     * @return The unique ID for the project to create the database user.
     * 
     */
    public Optional> projectId() {
        return Optional.ofNullable(this.projectId);
    }

    /**
     * Name of the custom role.
     * 
     * > **IMPORTANT** The specified role name can only contain letters, digits, underscores, and dashes. Additionally, you cannot specify a role name which meets any of the following criteria:
     * 
     * * Is a name already used by an existing custom role in the project
     * * Is a name of any of the built-in roles
     * * Is `atlasAdmin`
     * * Starts with `xgen-`
     * 
     */
    @Import(name="roleName")
    private @Nullable Output roleName;

    /**
     * @return Name of the custom role.
     * 
     * > **IMPORTANT** The specified role name can only contain letters, digits, underscores, and dashes. Additionally, you cannot specify a role name which meets any of the following criteria:
     * 
     * * Is a name already used by an existing custom role in the project
     * * Is a name of any of the built-in roles
     * * Is `atlasAdmin`
     * * Starts with `xgen-`
     * 
     */
    public Optional> roleName() {
        return Optional.ofNullable(this.roleName);
    }

    private CustomDbRoleState() {}

    private CustomDbRoleState(CustomDbRoleState $) {
        this.actions = $.actions;
        this.inheritedRoles = $.inheritedRoles;
        this.projectId = $.projectId;
        this.roleName = $.roleName;
    }

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

    public static final class Builder {
        private CustomDbRoleState $;

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

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

        public Builder actions(@Nullable Output> actions) {
            $.actions = actions;
            return this;
        }

        public Builder actions(List actions) {
            return actions(Output.of(actions));
        }

        public Builder actions(CustomDbRoleActionArgs... actions) {
            return actions(List.of(actions));
        }

        public Builder inheritedRoles(@Nullable Output> inheritedRoles) {
            $.inheritedRoles = inheritedRoles;
            return this;
        }

        public Builder inheritedRoles(List inheritedRoles) {
            return inheritedRoles(Output.of(inheritedRoles));
        }

        public Builder inheritedRoles(CustomDbRoleInheritedRoleArgs... inheritedRoles) {
            return inheritedRoles(List.of(inheritedRoles));
        }

        /**
         * @param projectId The unique ID for the project to create the database user.
         * 
         * @return builder
         * 
         */
        public Builder projectId(@Nullable Output projectId) {
            $.projectId = projectId;
            return this;
        }

        /**
         * @param projectId The unique ID for the project to create the database user.
         * 
         * @return builder
         * 
         */
        public Builder projectId(String projectId) {
            return projectId(Output.of(projectId));
        }

        /**
         * @param roleName Name of the custom role.
         * 
         * > **IMPORTANT** The specified role name can only contain letters, digits, underscores, and dashes. Additionally, you cannot specify a role name which meets any of the following criteria:
         * 
         * * Is a name already used by an existing custom role in the project
         * * Is a name of any of the built-in roles
         * * Is `atlasAdmin`
         * * Starts with `xgen-`
         * 
         * @return builder
         * 
         */
        public Builder roleName(@Nullable Output roleName) {
            $.roleName = roleName;
            return this;
        }

        /**
         * @param roleName Name of the custom role.
         * 
         * > **IMPORTANT** The specified role name can only contain letters, digits, underscores, and dashes. Additionally, you cannot specify a role name which meets any of the following criteria:
         * 
         * * Is a name already used by an existing custom role in the project
         * * Is a name of any of the built-in roles
         * * Is `atlasAdmin`
         * * Starts with `xgen-`
         * 
         * @return builder
         * 
         */
        public Builder roleName(String roleName) {
            return roleName(Output.of(roleName));
        }

        public CustomDbRoleState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy