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

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


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

    public static final AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScalingArgs Empty = new AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScalingArgs();

    @Import(name="computeEnabled")
    private @Nullable Output computeEnabled;

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

    /**
     * Maximum instance size to which your cluster can automatically scale (such as M40). Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_enabled` is true.
     * 
     */
    @Import(name="computeMaxInstanceSize")
    private @Nullable Output computeMaxInstanceSize;

    /**
     * @return Maximum instance size to which your cluster can automatically scale (such as M40). Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_enabled` is true.
     * 
     */
    public Optional> computeMaxInstanceSize() {
        return Optional.ofNullable(this.computeMaxInstanceSize);
    }

    /**
     * Minimum instance size to which your cluster can automatically scale (such as M10). Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_scale_down_enabled` is true.
     * 
     */
    @Import(name="computeMinInstanceSize")
    private @Nullable Output computeMinInstanceSize;

    /**
     * @return Minimum instance size to which your cluster can automatically scale (such as M10). Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_scale_down_enabled` is true.
     * 
     */
    public Optional> computeMinInstanceSize() {
        return Optional.ofNullable(this.computeMinInstanceSize);
    }

    /**
     * Flag that indicates whether the instance size may scale down. Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_enabled` : true. If you enable this option, specify a value for `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_min_instance_size`.
     * 
     */
    @Import(name="computeScaleDownEnabled")
    private @Nullable Output computeScaleDownEnabled;

    /**
     * @return Flag that indicates whether the instance size may scale down. Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_enabled` : true. If you enable this option, specify a value for `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_min_instance_size`.
     * 
     */
    public Optional> computeScaleDownEnabled() {
        return Optional.ofNullable(this.computeScaleDownEnabled);
    }

    /**
     * Flag that indicates whether this cluster enables disk auto-scaling. This parameter defaults to true.
     * 
     */
    @Import(name="diskGbEnabled")
    private @Nullable Output diskGbEnabled;

    /**
     * @return Flag that indicates whether this cluster enables disk auto-scaling. This parameter defaults to true.
     * 
     */
    public Optional> diskGbEnabled() {
        return Optional.ofNullable(this.diskGbEnabled);
    }

    private AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScalingArgs() {}

    private AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScalingArgs(AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScalingArgs $) {
        this.computeEnabled = $.computeEnabled;
        this.computeMaxInstanceSize = $.computeMaxInstanceSize;
        this.computeMinInstanceSize = $.computeMinInstanceSize;
        this.computeScaleDownEnabled = $.computeScaleDownEnabled;
        this.diskGbEnabled = $.diskGbEnabled;
    }

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

    public static final class Builder {
        private AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScalingArgs $;

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

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

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

        public Builder computeEnabled(Boolean computeEnabled) {
            return computeEnabled(Output.of(computeEnabled));
        }

        /**
         * @param computeMaxInstanceSize Maximum instance size to which your cluster can automatically scale (such as M40). Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_enabled` is true.
         * 
         * @return builder
         * 
         */
        public Builder computeMaxInstanceSize(@Nullable Output computeMaxInstanceSize) {
            $.computeMaxInstanceSize = computeMaxInstanceSize;
            return this;
        }

        /**
         * @param computeMaxInstanceSize Maximum instance size to which your cluster can automatically scale (such as M40). Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_enabled` is true.
         * 
         * @return builder
         * 
         */
        public Builder computeMaxInstanceSize(String computeMaxInstanceSize) {
            return computeMaxInstanceSize(Output.of(computeMaxInstanceSize));
        }

        /**
         * @param computeMinInstanceSize Minimum instance size to which your cluster can automatically scale (such as M10). Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_scale_down_enabled` is true.
         * 
         * @return builder
         * 
         */
        public Builder computeMinInstanceSize(@Nullable Output computeMinInstanceSize) {
            $.computeMinInstanceSize = computeMinInstanceSize;
            return this;
        }

        /**
         * @param computeMinInstanceSize Minimum instance size to which your cluster can automatically scale (such as M10). Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_scale_down_enabled` is true.
         * 
         * @return builder
         * 
         */
        public Builder computeMinInstanceSize(String computeMinInstanceSize) {
            return computeMinInstanceSize(Output.of(computeMinInstanceSize));
        }

        /**
         * @param computeScaleDownEnabled Flag that indicates whether the instance size may scale down. Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_enabled` : true. If you enable this option, specify a value for `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_min_instance_size`.
         * 
         * @return builder
         * 
         */
        public Builder computeScaleDownEnabled(@Nullable Output computeScaleDownEnabled) {
            $.computeScaleDownEnabled = computeScaleDownEnabled;
            return this;
        }

        /**
         * @param computeScaleDownEnabled Flag that indicates whether the instance size may scale down. Atlas requires this parameter if `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_enabled` : true. If you enable this option, specify a value for `replication_specs.#.region_configs.#.analytics_auto_scaling.0.compute_min_instance_size`.
         * 
         * @return builder
         * 
         */
        public Builder computeScaleDownEnabled(Boolean computeScaleDownEnabled) {
            return computeScaleDownEnabled(Output.of(computeScaleDownEnabled));
        }

        /**
         * @param diskGbEnabled Flag that indicates whether this cluster enables disk auto-scaling. This parameter defaults to true.
         * 
         * @return builder
         * 
         */
        public Builder diskGbEnabled(@Nullable Output diskGbEnabled) {
            $.diskGbEnabled = diskGbEnabled;
            return this;
        }

        /**
         * @param diskGbEnabled Flag that indicates whether this cluster enables disk auto-scaling. This parameter defaults to true.
         * 
         * @return builder
         * 
         */
        public Builder diskGbEnabled(Boolean diskGbEnabled) {
            return diskGbEnabled(Output.of(diskGbEnabled));
        }

        public AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScalingArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy