
com.pulumi.azurenative.hdinsight.outputs.AutoscaleCapacityResponse 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.hdinsight.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AutoscaleCapacityResponse {
/**
* @return The maximum instance count of the cluster
*
*/
private @Nullable Integer maxInstanceCount;
/**
* @return The minimum instance count of the cluster
*
*/
private @Nullable Integer minInstanceCount;
private AutoscaleCapacityResponse() {}
/**
* @return The maximum instance count of the cluster
*
*/
public Optional maxInstanceCount() {
return Optional.ofNullable(this.maxInstanceCount);
}
/**
* @return The minimum instance count of the cluster
*
*/
public Optional minInstanceCount() {
return Optional.ofNullable(this.minInstanceCount);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoscaleCapacityResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer maxInstanceCount;
private @Nullable Integer minInstanceCount;
public Builder() {}
public Builder(AutoscaleCapacityResponse defaults) {
Objects.requireNonNull(defaults);
this.maxInstanceCount = defaults.maxInstanceCount;
this.minInstanceCount = defaults.minInstanceCount;
}
@CustomType.Setter
public Builder maxInstanceCount(@Nullable Integer maxInstanceCount) {
this.maxInstanceCount = maxInstanceCount;
return this;
}
@CustomType.Setter
public Builder minInstanceCount(@Nullable Integer minInstanceCount) {
this.minInstanceCount = minInstanceCount;
return this;
}
public AutoscaleCapacityResponse build() {
final var _resultValue = new AutoscaleCapacityResponse();
_resultValue.maxInstanceCount = maxInstanceCount;
_resultValue.minInstanceCount = minInstanceCount;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy