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

com.pulumi.azurenative.insights.inputs.PredictiveAutoscalePolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.insights.inputs;

import com.pulumi.azurenative.insights.enums.PredictiveAutoscalePolicyScaleMode;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The parameters for enabling predictive autoscale.
 * 
 */
public final class PredictiveAutoscalePolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final PredictiveAutoscalePolicyArgs Empty = new PredictiveAutoscalePolicyArgs();

    /**
     * the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format.
     * 
     */
    @Import(name="scaleLookAheadTime")
    private @Nullable Output scaleLookAheadTime;

    /**
     * @return the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format.
     * 
     */
    public Optional> scaleLookAheadTime() {
        return Optional.ofNullable(this.scaleLookAheadTime);
    }

    /**
     * the predictive autoscale mode
     * 
     */
    @Import(name="scaleMode", required=true)
    private Output scaleMode;

    /**
     * @return the predictive autoscale mode
     * 
     */
    public Output scaleMode() {
        return this.scaleMode;
    }

    private PredictiveAutoscalePolicyArgs() {}

    private PredictiveAutoscalePolicyArgs(PredictiveAutoscalePolicyArgs $) {
        this.scaleLookAheadTime = $.scaleLookAheadTime;
        this.scaleMode = $.scaleMode;
    }

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

    public static final class Builder {
        private PredictiveAutoscalePolicyArgs $;

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

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

        /**
         * @param scaleLookAheadTime the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format.
         * 
         * @return builder
         * 
         */
        public Builder scaleLookAheadTime(@Nullable Output scaleLookAheadTime) {
            $.scaleLookAheadTime = scaleLookAheadTime;
            return this;
        }

        /**
         * @param scaleLookAheadTime the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format.
         * 
         * @return builder
         * 
         */
        public Builder scaleLookAheadTime(String scaleLookAheadTime) {
            return scaleLookAheadTime(Output.of(scaleLookAheadTime));
        }

        /**
         * @param scaleMode the predictive autoscale mode
         * 
         * @return builder
         * 
         */
        public Builder scaleMode(Output scaleMode) {
            $.scaleMode = scaleMode;
            return this;
        }

        /**
         * @param scaleMode the predictive autoscale mode
         * 
         * @return builder
         * 
         */
        public Builder scaleMode(PredictiveAutoscalePolicyScaleMode scaleMode) {
            return scaleMode(Output.of(scaleMode));
        }

        public PredictiveAutoscalePolicyArgs build() {
            if ($.scaleMode == null) {
                throw new MissingRequiredPropertyException("PredictiveAutoscalePolicyArgs", "scaleMode");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy