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

com.pulumi.mongodbatlas.inputs.SearchDeploymentSpecArgs 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.Integer;
import java.lang.String;
import java.util.Objects;


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

    public static final SearchDeploymentSpecArgs Empty = new SearchDeploymentSpecArgs();

    /**
     * Hardware specification for the search node instance sizes. The [MongoDB Atlas API](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Atlas-Search/operation/createAtlasSearchDeployment) describes the valid values. More details can also be found in the [Search Node Documentation](https://www.mongodb.com/docs/atlas/cluster-config/multi-cloud-distribution/#search-tier).
     * 
     */
    @Import(name="instanceSize", required=true)
    private Output instanceSize;

    /**
     * @return Hardware specification for the search node instance sizes. The [MongoDB Atlas API](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Atlas-Search/operation/createAtlasSearchDeployment) describes the valid values. More details can also be found in the [Search Node Documentation](https://www.mongodb.com/docs/atlas/cluster-config/multi-cloud-distribution/#search-tier).
     * 
     */
    public Output instanceSize() {
        return this.instanceSize;
    }

    /**
     * Number of search nodes in the cluster.
     * 
     */
    @Import(name="nodeCount", required=true)
    private Output nodeCount;

    /**
     * @return Number of search nodes in the cluster.
     * 
     */
    public Output nodeCount() {
        return this.nodeCount;
    }

    private SearchDeploymentSpecArgs() {}

    private SearchDeploymentSpecArgs(SearchDeploymentSpecArgs $) {
        this.instanceSize = $.instanceSize;
        this.nodeCount = $.nodeCount;
    }

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

    public static final class Builder {
        private SearchDeploymentSpecArgs $;

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

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

        /**
         * @param instanceSize Hardware specification for the search node instance sizes. The [MongoDB Atlas API](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Atlas-Search/operation/createAtlasSearchDeployment) describes the valid values. More details can also be found in the [Search Node Documentation](https://www.mongodb.com/docs/atlas/cluster-config/multi-cloud-distribution/#search-tier).
         * 
         * @return builder
         * 
         */
        public Builder instanceSize(Output instanceSize) {
            $.instanceSize = instanceSize;
            return this;
        }

        /**
         * @param instanceSize Hardware specification for the search node instance sizes. The [MongoDB Atlas API](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Atlas-Search/operation/createAtlasSearchDeployment) describes the valid values. More details can also be found in the [Search Node Documentation](https://www.mongodb.com/docs/atlas/cluster-config/multi-cloud-distribution/#search-tier).
         * 
         * @return builder
         * 
         */
        public Builder instanceSize(String instanceSize) {
            return instanceSize(Output.of(instanceSize));
        }

        /**
         * @param nodeCount Number of search nodes in the cluster.
         * 
         * @return builder
         * 
         */
        public Builder nodeCount(Output nodeCount) {
            $.nodeCount = nodeCount;
            return this;
        }

        /**
         * @param nodeCount Number of search nodes in the cluster.
         * 
         * @return builder
         * 
         */
        public Builder nodeCount(Integer nodeCount) {
            return nodeCount(Output.of(nodeCount));
        }

        public SearchDeploymentSpecArgs build() {
            if ($.instanceSize == null) {
                throw new MissingRequiredPropertyException("SearchDeploymentSpecArgs", "instanceSize");
            }
            if ($.nodeCount == null) {
                throw new MissingRequiredPropertyException("SearchDeploymentSpecArgs", "nodeCount");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy