
com.pulumi.azurenative.machinelearningservices.outputs.TargetUtilizationScaleSettingsResponse 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.machinelearningservices.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TargetUtilizationScaleSettingsResponse {
/**
* @return The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances.
*
*/
private @Nullable Integer maxInstances;
/**
* @return The minimum number of instances to always be present.
*
*/
private @Nullable Integer minInstances;
/**
* @return The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds.
*
*/
private @Nullable String pollingInterval;
/**
* @return
* Expected value is 'TargetUtilization'.
*
*/
private String scaleType;
/**
* @return Target CPU usage for the autoscaler.
*
*/
private @Nullable Integer targetUtilizationPercentage;
private TargetUtilizationScaleSettingsResponse() {}
/**
* @return The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances.
*
*/
public Optional maxInstances() {
return Optional.ofNullable(this.maxInstances);
}
/**
* @return The minimum number of instances to always be present.
*
*/
public Optional minInstances() {
return Optional.ofNullable(this.minInstances);
}
/**
* @return The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds.
*
*/
public Optional pollingInterval() {
return Optional.ofNullable(this.pollingInterval);
}
/**
* @return
* Expected value is 'TargetUtilization'.
*
*/
public String scaleType() {
return this.scaleType;
}
/**
* @return Target CPU usage for the autoscaler.
*
*/
public Optional targetUtilizationPercentage() {
return Optional.ofNullable(this.targetUtilizationPercentage);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TargetUtilizationScaleSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer maxInstances;
private @Nullable Integer minInstances;
private @Nullable String pollingInterval;
private String scaleType;
private @Nullable Integer targetUtilizationPercentage;
public Builder() {}
public Builder(TargetUtilizationScaleSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.maxInstances = defaults.maxInstances;
this.minInstances = defaults.minInstances;
this.pollingInterval = defaults.pollingInterval;
this.scaleType = defaults.scaleType;
this.targetUtilizationPercentage = defaults.targetUtilizationPercentage;
}
@CustomType.Setter
public Builder maxInstances(@Nullable Integer maxInstances) {
this.maxInstances = maxInstances;
return this;
}
@CustomType.Setter
public Builder minInstances(@Nullable Integer minInstances) {
this.minInstances = minInstances;
return this;
}
@CustomType.Setter
public Builder pollingInterval(@Nullable String pollingInterval) {
this.pollingInterval = pollingInterval;
return this;
}
@CustomType.Setter
public Builder scaleType(String scaleType) {
if (scaleType == null) {
throw new MissingRequiredPropertyException("TargetUtilizationScaleSettingsResponse", "scaleType");
}
this.scaleType = scaleType;
return this;
}
@CustomType.Setter
public Builder targetUtilizationPercentage(@Nullable Integer targetUtilizationPercentage) {
this.targetUtilizationPercentage = targetUtilizationPercentage;
return this;
}
public TargetUtilizationScaleSettingsResponse build() {
final var _resultValue = new TargetUtilizationScaleSettingsResponse();
_resultValue.maxInstances = maxInstances;
_resultValue.minInstances = minInstances;
_resultValue.pollingInterval = pollingInterval;
_resultValue.scaleType = scaleType;
_resultValue.targetUtilizationPercentage = targetUtilizationPercentage;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy