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

com.pulumi.azurenative.documentdb.MongoDBResourceMongoUserDefinitionArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.documentdb;

import com.pulumi.azurenative.documentdb.inputs.RoleArgs;
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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MongoDBResourceMongoUserDefinitionArgs Empty = new MongoDBResourceMongoUserDefinitionArgs();

    /**
     * Cosmos DB database account name.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return Cosmos DB database account name.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * A custom definition for the USer Definition.
     * 
     */
    @Import(name="customData")
    private @Nullable Output customData;

    /**
     * @return A custom definition for the USer Definition.
     * 
     */
    public Optional> customData() {
        return Optional.ofNullable(this.customData);
    }

    /**
     * The database name for which access is being granted for this User Definition.
     * 
     */
    @Import(name="databaseName")
    private @Nullable Output databaseName;

    /**
     * @return The database name for which access is being granted for this User Definition.
     * 
     */
    public Optional> databaseName() {
        return Optional.ofNullable(this.databaseName);
    }

    /**
     * The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256.
     * 
     */
    @Import(name="mechanisms")
    private @Nullable Output mechanisms;

    /**
     * @return The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256.
     * 
     */
    public Optional> mechanisms() {
        return Optional.ofNullable(this.mechanisms);
    }

    /**
     * The ID for the User Definition {dbName.userName}.
     * 
     */
    @Import(name="mongoUserDefinitionId")
    private @Nullable Output mongoUserDefinitionId;

    /**
     * @return The ID for the User Definition {dbName.userName}.
     * 
     */
    public Optional> mongoUserDefinitionId() {
        return Optional.ofNullable(this.mongoUserDefinitionId);
    }

    /**
     * The password for User Definition. Response does not contain user password.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The password for User Definition. Response does not contain user password.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The set of roles inherited by the User Definition.
     * 
     */
    @Import(name="roles")
    private @Nullable Output> roles;

    /**
     * @return The set of roles inherited by the User Definition.
     * 
     */
    public Optional>> roles() {
        return Optional.ofNullable(this.roles);
    }

    /**
     * The user name for User Definition.
     * 
     */
    @Import(name="userName")
    private @Nullable Output userName;

    /**
     * @return The user name for User Definition.
     * 
     */
    public Optional> userName() {
        return Optional.ofNullable(this.userName);
    }

    private MongoDBResourceMongoUserDefinitionArgs() {}

    private MongoDBResourceMongoUserDefinitionArgs(MongoDBResourceMongoUserDefinitionArgs $) {
        this.accountName = $.accountName;
        this.customData = $.customData;
        this.databaseName = $.databaseName;
        this.mechanisms = $.mechanisms;
        this.mongoUserDefinitionId = $.mongoUserDefinitionId;
        this.password = $.password;
        this.resourceGroupName = $.resourceGroupName;
        this.roles = $.roles;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private MongoDBResourceMongoUserDefinitionArgs $;

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

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

        /**
         * @param accountName Cosmos DB database account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName Cosmos DB database account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param customData A custom definition for the USer Definition.
         * 
         * @return builder
         * 
         */
        public Builder customData(@Nullable Output customData) {
            $.customData = customData;
            return this;
        }

        /**
         * @param customData A custom definition for the USer Definition.
         * 
         * @return builder
         * 
         */
        public Builder customData(String customData) {
            return customData(Output.of(customData));
        }

        /**
         * @param databaseName The database name for which access is being granted for this User Definition.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(@Nullable Output databaseName) {
            $.databaseName = databaseName;
            return this;
        }

        /**
         * @param databaseName The database name for which access is being granted for this User Definition.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(String databaseName) {
            return databaseName(Output.of(databaseName));
        }

        /**
         * @param mechanisms The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256.
         * 
         * @return builder
         * 
         */
        public Builder mechanisms(@Nullable Output mechanisms) {
            $.mechanisms = mechanisms;
            return this;
        }

        /**
         * @param mechanisms The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256.
         * 
         * @return builder
         * 
         */
        public Builder mechanisms(String mechanisms) {
            return mechanisms(Output.of(mechanisms));
        }

        /**
         * @param mongoUserDefinitionId The ID for the User Definition {dbName.userName}.
         * 
         * @return builder
         * 
         */
        public Builder mongoUserDefinitionId(@Nullable Output mongoUserDefinitionId) {
            $.mongoUserDefinitionId = mongoUserDefinitionId;
            return this;
        }

        /**
         * @param mongoUserDefinitionId The ID for the User Definition {dbName.userName}.
         * 
         * @return builder
         * 
         */
        public Builder mongoUserDefinitionId(String mongoUserDefinitionId) {
            return mongoUserDefinitionId(Output.of(mongoUserDefinitionId));
        }

        /**
         * @param password The password for User Definition. Response does not contain user password.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The password for User Definition. Response does not contain user password.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param roles The set of roles inherited by the User Definition.
         * 
         * @return builder
         * 
         */
        public Builder roles(@Nullable Output> roles) {
            $.roles = roles;
            return this;
        }

        /**
         * @param roles The set of roles inherited by the User Definition.
         * 
         * @return builder
         * 
         */
        public Builder roles(List roles) {
            return roles(Output.of(roles));
        }

        /**
         * @param roles The set of roles inherited by the User Definition.
         * 
         * @return builder
         * 
         */
        public Builder roles(RoleArgs... roles) {
            return roles(List.of(roles));
        }

        /**
         * @param userName The user name for User Definition.
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName The user name for User Definition.
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        public MongoDBResourceMongoUserDefinitionArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("MongoDBResourceMongoUserDefinitionArgs", "accountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("MongoDBResourceMongoUserDefinitionArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy