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

com.pulumi.mongodbatlas.inputs.GetFederatedDatabaseInstancePlainArgs 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 com.pulumi.mongodbatlas.inputs.GetFederatedDatabaseInstanceCloudProviderConfig;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GetFederatedDatabaseInstancePlainArgs Empty = new GetFederatedDatabaseInstancePlainArgs();

    @Import(name="cloudProviderConfig")
    private @Nullable GetFederatedDatabaseInstanceCloudProviderConfig cloudProviderConfig;

    public Optional cloudProviderConfig() {
        return Optional.ofNullable(this.cloudProviderConfig);
    }

    /**
     * Name of the Atlas Federated Database Instance.
     * 
     */
    @Import(name="name", required=true)
    private String name;

    /**
     * @return Name of the Atlas Federated Database Instance.
     * 
     */
    public String name() {
        return this.name;
    }

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

    /**
     * @return The unique ID for the project to create a Federated Database Instance.
     * 
     */
    public String projectId() {
        return this.projectId;
    }

    private GetFederatedDatabaseInstancePlainArgs() {}

    private GetFederatedDatabaseInstancePlainArgs(GetFederatedDatabaseInstancePlainArgs $) {
        this.cloudProviderConfig = $.cloudProviderConfig;
        this.name = $.name;
        this.projectId = $.projectId;
    }

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

    public static final class Builder {
        private GetFederatedDatabaseInstancePlainArgs $;

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

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

        public Builder cloudProviderConfig(@Nullable GetFederatedDatabaseInstanceCloudProviderConfig cloudProviderConfig) {
            $.cloudProviderConfig = cloudProviderConfig;
            return this;
        }

        /**
         * @param name Name of the Atlas Federated Database Instance.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            $.name = name;
            return this;
        }

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

        public GetFederatedDatabaseInstancePlainArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancePlainArgs", "name");
            }
            if ($.projectId == null) {
                throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancePlainArgs", "projectId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy