Class SetLoadBasedAutoScalingRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.opsworks.model.OpsWorksRequest
-
- software.amazon.awssdk.services.opsworks.model.SetLoadBasedAutoScalingRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<SetLoadBasedAutoScalingRequest.Builder,SetLoadBasedAutoScalingRequest>
@Generated("software.amazon.awssdk:codegen") public final class SetLoadBasedAutoScalingRequest extends OpsWorksRequest implements ToCopyableBuilder<SetLoadBasedAutoScalingRequest.Builder,SetLoadBasedAutoScalingRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSetLoadBasedAutoScalingRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetLoadBasedAutoScalingRequest.Builderbuilder()AutoScalingThresholdsdownScaling()AnAutoScalingThresholdsobject with the downscaling threshold configuration.Booleanenable()Enables load-based auto scaling for the layer.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringlayerId()The layer ID.List<SdkField<?>>sdkFields()static Class<? extends SetLoadBasedAutoScalingRequest.Builder>serializableBuilderClass()SetLoadBasedAutoScalingRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.AutoScalingThresholdsupScaling()AnAutoScalingThresholdsobject with the upscaling threshold configuration.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
layerId
public final String layerId()
The layer ID.
- Returns:
- The layer ID.
-
enable
public final Boolean enable()
Enables load-based auto scaling for the layer.
- Returns:
- Enables load-based auto scaling for the layer.
-
upScaling
public final AutoScalingThresholds upScaling()
An
AutoScalingThresholdsobject with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks Stacks starts a specified number of instances.- Returns:
- An
AutoScalingThresholdsobject with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks Stacks starts a specified number of instances.
-
downScaling
public final AutoScalingThresholds downScaling()
An
AutoScalingThresholdsobject with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks Stacks stops a specified number of instances.- Returns:
- An
AutoScalingThresholdsobject with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks Stacks stops a specified number of instances.
-
toBuilder
public SetLoadBasedAutoScalingRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SetLoadBasedAutoScalingRequest.Builder,SetLoadBasedAutoScalingRequest>- Specified by:
toBuilderin classOpsWorksRequest
-
builder
public static SetLoadBasedAutoScalingRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SetLoadBasedAutoScalingRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-