Class SetLoadBasedAutoScalingRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.opsworks.model.SetLoadBasedAutoScalingRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SetLoadBasedAutoScalingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SetLoadBasedAutoScalingRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetLoadBasedAutoScalingRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
AutoScalingThresholds
getDownScaling()
AnAutoScalingThresholds
object with the downscaling threshold configuration.Boolean
getEnable()
Enables load-based auto scaling for the layer.String
getLayerId()
The layer ID.AutoScalingThresholds
getUpScaling()
AnAutoScalingThresholds
object with the upscaling threshold configuration.int
hashCode()
Boolean
isEnable()
Enables load-based auto scaling for the layer.void
setDownScaling(AutoScalingThresholds downScaling)
AnAutoScalingThresholds
object with the downscaling threshold configuration.void
setEnable(Boolean enable)
Enables load-based auto scaling for the layer.void
setLayerId(String layerId)
The layer ID.void
setUpScaling(AutoScalingThresholds upScaling)
AnAutoScalingThresholds
object with the upscaling threshold configuration.String
toString()
Returns a string representation of this object; useful for testing and debugging.SetLoadBasedAutoScalingRequest
withDownScaling(AutoScalingThresholds downScaling)
AnAutoScalingThresholds
object with the downscaling threshold configuration.SetLoadBasedAutoScalingRequest
withEnable(Boolean enable)
Enables load-based auto scaling for the layer.SetLoadBasedAutoScalingRequest
withLayerId(String layerId)
The layer ID.SetLoadBasedAutoScalingRequest
withUpScaling(AutoScalingThresholds upScaling)
AnAutoScalingThresholds
object with the upscaling threshold configuration.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setLayerId
public void setLayerId(String layerId)
The layer ID.
- Parameters:
layerId
- The layer ID.
-
getLayerId
public String getLayerId()
The layer ID.
- Returns:
- The layer ID.
-
withLayerId
public SetLoadBasedAutoScalingRequest withLayerId(String layerId)
The layer ID.
- Parameters:
layerId
- The layer ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnable
public void setEnable(Boolean enable)
Enables load-based auto scaling for the layer.
- Parameters:
enable
- Enables load-based auto scaling for the layer.
-
getEnable
public Boolean getEnable()
Enables load-based auto scaling for the layer.
- Returns:
- Enables load-based auto scaling for the layer.
-
withEnable
public SetLoadBasedAutoScalingRequest withEnable(Boolean enable)
Enables load-based auto scaling for the layer.
- Parameters:
enable
- Enables load-based auto scaling for the layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnable
public Boolean isEnable()
Enables load-based auto scaling for the layer.
- Returns:
- Enables load-based auto scaling for the layer.
-
setUpScaling
public void setUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds
object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.- Parameters:
upScaling
- AnAutoScalingThresholds
object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.
-
getUpScaling
public AutoScalingThresholds getUpScaling()
An
AutoScalingThresholds
object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.- Returns:
- An
AutoScalingThresholds
object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.
-
withUpScaling
public SetLoadBasedAutoScalingRequest withUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds
object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.- Parameters:
upScaling
- AnAutoScalingThresholds
object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDownScaling
public void setDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds
object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.- Parameters:
downScaling
- AnAutoScalingThresholds
object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.
-
getDownScaling
public AutoScalingThresholds getDownScaling()
An
AutoScalingThresholds
object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.- Returns:
- An
AutoScalingThresholds
object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.
-
withDownScaling
public SetLoadBasedAutoScalingRequest withDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds
object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.- Parameters:
downScaling
- AnAutoScalingThresholds
object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SetLoadBasedAutoScalingRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-