
com.pulumi.azurenative.insights.outputs.ScaleActionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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 ScaleActionResponse {
/**
* @return the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format.
*
*/
private String cooldown;
/**
* @return the scale direction. Whether the scaling action increases or decreases the number of instances.
*
*/
private String direction;
/**
* @return the type of action that should occur when the scale rule fires.
*
*/
private String type;
/**
* @return the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.
*
*/
private @Nullable String value;
private ScaleActionResponse() {}
/**
* @return the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format.
*
*/
public String cooldown() {
return this.cooldown;
}
/**
* @return the scale direction. Whether the scaling action increases or decreases the number of instances.
*
*/
public String direction() {
return this.direction;
}
/**
* @return the type of action that should occur when the scale rule fires.
*
*/
public String type() {
return this.type;
}
/**
* @return the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScaleActionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String cooldown;
private String direction;
private String type;
private @Nullable String value;
public Builder() {}
public Builder(ScaleActionResponse defaults) {
Objects.requireNonNull(defaults);
this.cooldown = defaults.cooldown;
this.direction = defaults.direction;
this.type = defaults.type;
this.value = defaults.value;
}
@CustomType.Setter
public Builder cooldown(String cooldown) {
if (cooldown == null) {
throw new MissingRequiredPropertyException("ScaleActionResponse", "cooldown");
}
this.cooldown = cooldown;
return this;
}
@CustomType.Setter
public Builder direction(String direction) {
if (direction == null) {
throw new MissingRequiredPropertyException("ScaleActionResponse", "direction");
}
this.direction = direction;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ScaleActionResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(@Nullable String value) {
this.value = value;
return this;
}
public ScaleActionResponse build() {
final var _resultValue = new ScaleActionResponse();
_resultValue.cooldown = cooldown;
_resultValue.direction = direction;
_resultValue.type = type;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy