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

com.pulumi.mongodbatlas.inputs.GetDatabaseUserPlainArgs 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.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetDatabaseUserPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetDatabaseUserPlainArgs Empty = new GetDatabaseUserPlainArgs();

    /**
     * The user’s authentication database. A user must provide both a username and authentication database to log into MongoDB. In Atlas deployments of MongoDB, the authentication database is almost always the admin database, for X509 it is $external.
     * 
     */
    @Import(name="authDatabaseName", required=true)
    private String authDatabaseName;

    /**
     * @return The user’s authentication database. A user must provide both a username and authentication database to log into MongoDB. In Atlas deployments of MongoDB, the authentication database is almost always the admin database, for X509 it is $external.
     * 
     */
    public String authDatabaseName() {
        return this.authDatabaseName;
    }

    /**
     * The unique ID for the project to create the database user.
     * 
     */
    @Import(name="projectId", required=true)
    private String projectId;

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

    /**
     * Username for authenticating to MongoDB.
     * 
     */
    @Import(name="username", required=true)
    private String username;

    /**
     * @return Username for authenticating to MongoDB.
     * 
     */
    public String username() {
        return this.username;
    }

    private GetDatabaseUserPlainArgs() {}

    private GetDatabaseUserPlainArgs(GetDatabaseUserPlainArgs $) {
        this.authDatabaseName = $.authDatabaseName;
        this.projectId = $.projectId;
        this.username = $.username;
    }

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

    public static final class Builder {
        private GetDatabaseUserPlainArgs $;

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

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

        /**
         * @param authDatabaseName The user’s authentication database. A user must provide both a username and authentication database to log into MongoDB. In Atlas deployments of MongoDB, the authentication database is almost always the admin database, for X509 it is $external.
         * 
         * @return builder
         * 
         */
        public Builder authDatabaseName(String authDatabaseName) {
            $.authDatabaseName = authDatabaseName;
            return this;
        }

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

        /**
         * @param username Username for authenticating to MongoDB.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            $.username = username;
            return this;
        }

        public GetDatabaseUserPlainArgs build() {
            if ($.authDatabaseName == null) {
                throw new MissingRequiredPropertyException("GetDatabaseUserPlainArgs", "authDatabaseName");
            }
            if ($.projectId == null) {
                throw new MissingRequiredPropertyException("GetDatabaseUserPlainArgs", "projectId");
            }
            if ($.username == null) {
                throw new MissingRequiredPropertyException("GetDatabaseUserPlainArgs", "username");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy