com.pulumi.azure.machinelearning.outputs.ComputeClusterScaleSettings 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.azure.machinelearning.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class ComputeClusterScaleSettings {
/**
* @return Maximum node count. Changing this forces a new Machine Learning Compute Cluster to be created.
*
*/
private Integer maxNodeCount;
/**
* @return Minimal node count. Changing this forces a new Machine Learning Compute Cluster to be created.
*
*/
private Integer minNodeCount;
/**
* @return Node Idle Time Before Scale Down: defines the time until the compute is shutdown when it has gone into Idle state. Is defined according to W3C XML schema standard for duration. Changing this forces a new Machine Learning Compute Cluster to be created.
*
*/
private String scaleDownNodesAfterIdleDuration;
private ComputeClusterScaleSettings() {}
/**
* @return Maximum node count. Changing this forces a new Machine Learning Compute Cluster to be created.
*
*/
public Integer maxNodeCount() {
return this.maxNodeCount;
}
/**
* @return Minimal node count. Changing this forces a new Machine Learning Compute Cluster to be created.
*
*/
public Integer minNodeCount() {
return this.minNodeCount;
}
/**
* @return Node Idle Time Before Scale Down: defines the time until the compute is shutdown when it has gone into Idle state. Is defined according to W3C XML schema standard for duration. Changing this forces a new Machine Learning Compute Cluster to be created.
*
*/
public String scaleDownNodesAfterIdleDuration() {
return this.scaleDownNodesAfterIdleDuration;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ComputeClusterScaleSettings defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer maxNodeCount;
private Integer minNodeCount;
private String scaleDownNodesAfterIdleDuration;
public Builder() {}
public Builder(ComputeClusterScaleSettings defaults) {
Objects.requireNonNull(defaults);
this.maxNodeCount = defaults.maxNodeCount;
this.minNodeCount = defaults.minNodeCount;
this.scaleDownNodesAfterIdleDuration = defaults.scaleDownNodesAfterIdleDuration;
}
@CustomType.Setter
public Builder maxNodeCount(Integer maxNodeCount) {
if (maxNodeCount == null) {
throw new MissingRequiredPropertyException("ComputeClusterScaleSettings", "maxNodeCount");
}
this.maxNodeCount = maxNodeCount;
return this;
}
@CustomType.Setter
public Builder minNodeCount(Integer minNodeCount) {
if (minNodeCount == null) {
throw new MissingRequiredPropertyException("ComputeClusterScaleSettings", "minNodeCount");
}
this.minNodeCount = minNodeCount;
return this;
}
@CustomType.Setter
public Builder scaleDownNodesAfterIdleDuration(String scaleDownNodesAfterIdleDuration) {
if (scaleDownNodesAfterIdleDuration == null) {
throw new MissingRequiredPropertyException("ComputeClusterScaleSettings", "scaleDownNodesAfterIdleDuration");
}
this.scaleDownNodesAfterIdleDuration = scaleDownNodesAfterIdleDuration;
return this;
}
public ComputeClusterScaleSettings build() {
final var _resultValue = new ComputeClusterScaleSettings();
_resultValue.maxNodeCount = maxNodeCount;
_resultValue.minNodeCount = minNodeCount;
_resultValue.scaleDownNodesAfterIdleDuration = scaleDownNodesAfterIdleDuration;
return _resultValue;
}
}
}