Class AutoScalingConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.finspace.model.AutoScalingConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AutoScalingConfiguration.Builder,AutoScalingConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class AutoScalingConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutoScalingConfiguration.Builder,AutoScalingConfiguration>
The configuration based on which FinSpace will scale in or scale out nodes in your cluster.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutoScalingConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoScalingMetricautoScalingMetric()The metric your cluster will track in order to scale in and out.StringautoScalingMetricAsString()The metric your cluster will track in order to scale in and out.static AutoScalingConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxNodeCount()The highest number of nodes to scale.DoublemetricTarget()The desired value of the chosenautoScalingMetric.IntegerminNodeCount()The lowest number of nodes to scale.DoublescaleInCooldownSeconds()The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.DoublescaleOutCooldownSeconds()The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.List<SdkField<?>>sdkFields()static Class<? extends AutoScalingConfiguration.Builder>serializableBuilderClass()AutoScalingConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
minNodeCount
public final 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, thenminNodeCountmust be at least 3.- Returns:
- 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, thenminNodeCountmust be at least 3.
-
maxNodeCount
public final Integer maxNodeCount()
The highest number of nodes to scale. This value cannot be greater than 5.
- Returns:
- The highest number of nodes to scale. This value cannot be greater than 5.
-
autoScalingMetric
public final AutoScalingMetric autoScalingMetric()
The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGEis the average CPU usage across all the nodes in a cluster.If the service returns an enum value that is not available in the current SDK version,
autoScalingMetricwill returnAutoScalingMetric.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromautoScalingMetricAsString().- Returns:
- The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGEis the average CPU usage across all the nodes in a cluster. - See Also:
AutoScalingMetric
-
autoScalingMetricAsString
public final String autoScalingMetricAsString()
The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGEis the average CPU usage across all the nodes in a cluster.If the service returns an enum value that is not available in the current SDK version,
autoScalingMetricwill returnAutoScalingMetric.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromautoScalingMetricAsString().- Returns:
- The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGEis the average CPU usage across all the nodes in a cluster. - See Also:
AutoScalingMetric
-
metricTarget
public final 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.- Returns:
- 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.
-
scaleInCooldownSeconds
public final Double scaleInCooldownSeconds()
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
- Returns:
- The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
-
scaleOutCooldownSeconds
public final Double scaleOutCooldownSeconds()
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
- Returns:
- The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
-
toBuilder
public AutoScalingConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AutoScalingConfiguration.Builder,AutoScalingConfiguration>
-
builder
public static AutoScalingConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutoScalingConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-