
com.pulumi.azurenative.servicefabricmesh.outputs.AddRemoveReplicaScalingMechanismResponse 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.servicefabricmesh.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 AddRemoveReplicaScalingMechanismResponse {
/**
* @return Enumerates the mechanisms for auto scaling.
* Expected value is 'AddRemoveReplica'.
*
*/
private String kind;
/**
* @return Maximum number of containers (scale up won't be performed above this number).
*
*/
private Integer maxCount;
/**
* @return Minimum number of containers (scale down won't be performed below this number).
*
*/
private Integer minCount;
/**
* @return Each time auto scaling is performed, this number of containers will be added or removed.
*
*/
private Integer scaleIncrement;
private AddRemoveReplicaScalingMechanismResponse() {}
/**
* @return Enumerates the mechanisms for auto scaling.
* Expected value is 'AddRemoveReplica'.
*
*/
public String kind() {
return this.kind;
}
/**
* @return Maximum number of containers (scale up won't be performed above this number).
*
*/
public Integer maxCount() {
return this.maxCount;
}
/**
* @return Minimum number of containers (scale down won't be performed below this number).
*
*/
public Integer minCount() {
return this.minCount;
}
/**
* @return Each time auto scaling is performed, this number of containers will be added or removed.
*
*/
public Integer scaleIncrement() {
return this.scaleIncrement;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AddRemoveReplicaScalingMechanismResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String kind;
private Integer maxCount;
private Integer minCount;
private Integer scaleIncrement;
public Builder() {}
public Builder(AddRemoveReplicaScalingMechanismResponse defaults) {
Objects.requireNonNull(defaults);
this.kind = defaults.kind;
this.maxCount = defaults.maxCount;
this.minCount = defaults.minCount;
this.scaleIncrement = defaults.scaleIncrement;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("AddRemoveReplicaScalingMechanismResponse", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder maxCount(Integer maxCount) {
if (maxCount == null) {
throw new MissingRequiredPropertyException("AddRemoveReplicaScalingMechanismResponse", "maxCount");
}
this.maxCount = maxCount;
return this;
}
@CustomType.Setter
public Builder minCount(Integer minCount) {
if (minCount == null) {
throw new MissingRequiredPropertyException("AddRemoveReplicaScalingMechanismResponse", "minCount");
}
this.minCount = minCount;
return this;
}
@CustomType.Setter
public Builder scaleIncrement(Integer scaleIncrement) {
if (scaleIncrement == null) {
throw new MissingRequiredPropertyException("AddRemoveReplicaScalingMechanismResponse", "scaleIncrement");
}
this.scaleIncrement = scaleIncrement;
return this;
}
public AddRemoveReplicaScalingMechanismResponse build() {
final var _resultValue = new AddRemoveReplicaScalingMechanismResponse();
_resultValue.kind = kind;
_resultValue.maxCount = maxCount;
_resultValue.minCount = minCount;
_resultValue.scaleIncrement = scaleIncrement;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy