@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoScalingConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The configuration based on which FinSpace will scale in or scale out nodes in your cluster.
Constructor and Description |
---|
AutoScalingConfiguration() |
Modifier and Type | Method and Description |
---|---|
AutoScalingConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getAutoScalingMetric()
The metric your cluster will track in order to scale in and out.
|
Integer |
getMaxNodeCount()
The highest number of nodes to scale.
|
Double |
getMetricTarget()
The desired value of the chosen
autoScalingMetric . |
Integer |
getMinNodeCount()
The lowest number of nodes to scale.
|
Double |
getScaleInCooldownSeconds()
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
|
Double |
getScaleOutCooldownSeconds()
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAutoScalingMetric(String autoScalingMetric)
The metric your cluster will track in order to scale in and out.
|
void |
setMaxNodeCount(Integer maxNodeCount)
The highest number of nodes to scale.
|
void |
setMetricTarget(Double metricTarget)
The desired value of the chosen
autoScalingMetric . |
void |
setMinNodeCount(Integer minNodeCount)
The lowest number of nodes to scale.
|
void |
setScaleInCooldownSeconds(Double scaleInCooldownSeconds)
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
|
void |
setScaleOutCooldownSeconds(Double scaleOutCooldownSeconds)
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
|
String |
toString()
Returns a string representation of this object.
|
AutoScalingConfiguration |
withAutoScalingMetric(AutoScalingMetric autoScalingMetric)
The metric your cluster will track in order to scale in and out.
|
AutoScalingConfiguration |
withAutoScalingMetric(String autoScalingMetric)
The metric your cluster will track in order to scale in and out.
|
AutoScalingConfiguration |
withMaxNodeCount(Integer maxNodeCount)
The highest number of nodes to scale.
|
AutoScalingConfiguration |
withMetricTarget(Double metricTarget)
The desired value of the chosen
autoScalingMetric . |
AutoScalingConfiguration |
withMinNodeCount(Integer minNodeCount)
The lowest number of nodes to scale.
|
AutoScalingConfiguration |
withScaleInCooldownSeconds(Double scaleInCooldownSeconds)
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
|
AutoScalingConfiguration |
withScaleOutCooldownSeconds(Double scaleOutCooldownSeconds)
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
|
public void setMinNodeCount(Integer minNodeCount)
The lowest number of nodes to scale. This value must be at least 1 and less than the maxNodeCount
.
If the nodes in a cluster belong to multiple availability zones, then minNodeCount
must be at least
3.
minNodeCount
- The lowest number of nodes to scale. This value must be at least 1 and less than the
maxNodeCount
. If the nodes in a cluster belong to multiple availability zones, then
minNodeCount
must be at least 3.public Integer getMinNodeCount()
The lowest number of nodes to scale. This value must be at least 1 and less than the maxNodeCount
.
If the nodes in a cluster belong to multiple availability zones, then minNodeCount
must be at least
3.
maxNodeCount
. If the nodes in a cluster belong to multiple availability zones, then
minNodeCount
must be at least 3.public AutoScalingConfiguration withMinNodeCount(Integer minNodeCount)
The lowest number of nodes to scale. This value must be at least 1 and less than the maxNodeCount
.
If the nodes in a cluster belong to multiple availability zones, then minNodeCount
must be at least
3.
minNodeCount
- The lowest number of nodes to scale. This value must be at least 1 and less than the
maxNodeCount
. If the nodes in a cluster belong to multiple availability zones, then
minNodeCount
must be at least 3.public void setMaxNodeCount(Integer maxNodeCount)
The highest number of nodes to scale. This value cannot be greater than 5.
maxNodeCount
- The highest number of nodes to scale. This value cannot be greater than 5.public Integer getMaxNodeCount()
The highest number of nodes to scale. This value cannot be greater than 5.
public AutoScalingConfiguration withMaxNodeCount(Integer maxNodeCount)
The highest number of nodes to scale. This value cannot be greater than 5.
maxNodeCount
- The highest number of nodes to scale. This value cannot be greater than 5.public void setAutoScalingMetric(String autoScalingMetric)
The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGE
is the average CPU usage across all the nodes in a cluster.
autoScalingMetric
- The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGE
is the average CPU usage across all the nodes in a cluster.AutoScalingMetric
public String getAutoScalingMetric()
The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGE
is the average CPU usage across all the nodes in a cluster.
CPU_UTILIZATION_PERCENTAGE
is the average CPU usage across all the nodes in a cluster.AutoScalingMetric
public AutoScalingConfiguration withAutoScalingMetric(String autoScalingMetric)
The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGE
is the average CPU usage across all the nodes in a cluster.
autoScalingMetric
- The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGE
is the average CPU usage across all the nodes in a cluster.AutoScalingMetric
public AutoScalingConfiguration withAutoScalingMetric(AutoScalingMetric autoScalingMetric)
The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGE
is the average CPU usage across all the nodes in a cluster.
autoScalingMetric
- The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGE
is the average CPU usage across all the nodes in a cluster.AutoScalingMetric
public void setMetricTarget(Double metricTarget)
The desired value of the chosen autoScalingMetric
. When the metric drops below this value, the
cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target
value between 1 and 100 percent.
metricTarget
- The desired value of the chosen autoScalingMetric
. When the metric drops below this value,
the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set
the target value between 1 and 100 percent.public Double getMetricTarget()
The desired value of the chosen autoScalingMetric
. When the metric drops below this value, the
cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target
value between 1 and 100 percent.
autoScalingMetric
. When the metric drops below this value,
the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set
the target value between 1 and 100 percent.public AutoScalingConfiguration withMetricTarget(Double metricTarget)
The desired value of the chosen autoScalingMetric
. When the metric drops below this value, the
cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target
value between 1 and 100 percent.
metricTarget
- The desired value of the chosen autoScalingMetric
. When the metric drops below this value,
the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set
the target value between 1 and 100 percent.public void setScaleInCooldownSeconds(Double scaleInCooldownSeconds)
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
scaleInCooldownSeconds
- The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling
event.public Double getScaleInCooldownSeconds()
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
public AutoScalingConfiguration withScaleInCooldownSeconds(Double scaleInCooldownSeconds)
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
scaleInCooldownSeconds
- The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling
event.public void setScaleOutCooldownSeconds(Double scaleOutCooldownSeconds)
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
scaleOutCooldownSeconds
- The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling
event.public Double getScaleOutCooldownSeconds()
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
public AutoScalingConfiguration withScaleOutCooldownSeconds(Double scaleOutCooldownSeconds)
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
scaleOutCooldownSeconds
- The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling
event.public String toString()
toString
in class Object
Object.toString()
public AutoScalingConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.