
com.pulumi.azurenative.insights.outputs.PredictiveAutoscalePolicyResponse 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.azurenative.insights.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PredictiveAutoscalePolicyResponse {
/**
* @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.
*
*/
private @Nullable String scaleLookAheadTime;
/**
* @return the predictive autoscale mode
*
*/
private String scaleMode;
private PredictiveAutoscalePolicyResponse() {}
/**
* @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);
}
/**
* @return the predictive autoscale mode
*
*/
public String scaleMode() {
return this.scaleMode;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PredictiveAutoscalePolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String scaleLookAheadTime;
private String scaleMode;
public Builder() {}
public Builder(PredictiveAutoscalePolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.scaleLookAheadTime = defaults.scaleLookAheadTime;
this.scaleMode = defaults.scaleMode;
}
@CustomType.Setter
public Builder scaleLookAheadTime(@Nullable String scaleLookAheadTime) {
this.scaleLookAheadTime = scaleLookAheadTime;
return this;
}
@CustomType.Setter
public Builder scaleMode(String scaleMode) {
if (scaleMode == null) {
throw new MissingRequiredPropertyException("PredictiveAutoscalePolicyResponse", "scaleMode");
}
this.scaleMode = scaleMode;
return this;
}
public PredictiveAutoscalePolicyResponse build() {
final var _resultValue = new PredictiveAutoscalePolicyResponse();
_resultValue.scaleLookAheadTime = scaleLookAheadTime;
_resultValue.scaleMode = scaleMode;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy