public class SetLoadBasedAutoScalingRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private AutoScalingThresholds |
downScaling
An
AutoScalingThresholds object with the downscaling
threshold configuration. |
private java.lang.Boolean |
enable
Enables load-based auto scaling for the layer.
|
private java.lang.String |
layerId
The layer ID.
|
private AutoScalingThresholds |
upScaling
An
AutoScalingThresholds object with the upscaling threshold
configuration. |
NOOP
Constructor and Description |
---|
SetLoadBasedAutoScalingRequest() |
Modifier and Type | Method and Description |
---|---|
SetLoadBasedAutoScalingRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
AutoScalingThresholds |
getDownScaling()
An
AutoScalingThresholds object with the downscaling
threshold configuration. |
java.lang.Boolean |
getEnable()
Enables load-based auto scaling for the layer.
|
java.lang.String |
getLayerId()
The layer ID.
|
AutoScalingThresholds |
getUpScaling()
An
AutoScalingThresholds object with the upscaling threshold
configuration. |
int |
hashCode() |
java.lang.Boolean |
isEnable()
Enables load-based auto scaling for the layer.
|
void |
setDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds object with the downscaling
threshold configuration. |
void |
setEnable(java.lang.Boolean enable)
Enables load-based auto scaling for the layer.
|
void |
setLayerId(java.lang.String layerId)
The layer ID.
|
void |
setUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds object with the upscaling threshold
configuration. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetLoadBasedAutoScalingRequest |
withDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds object with the downscaling
threshold configuration. |
SetLoadBasedAutoScalingRequest |
withEnable(java.lang.Boolean enable)
Enables load-based auto scaling for the layer.
|
SetLoadBasedAutoScalingRequest |
withLayerId(java.lang.String layerId)
The layer ID.
|
SetLoadBasedAutoScalingRequest |
withUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds object with the upscaling threshold
configuration. |
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
private java.lang.String layerId
The layer ID.
private java.lang.Boolean enable
Enables load-based auto scaling for the layer.
private 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.
private 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.
public void setLayerId(java.lang.String layerId)
The layer ID.
layerId
- The layer ID.public java.lang.String getLayerId()
The layer ID.
public SetLoadBasedAutoScalingRequest withLayerId(java.lang.String layerId)
The layer ID.
layerId
- The layer ID.public void setEnable(java.lang.Boolean enable)
Enables load-based auto scaling for the layer.
enable
- Enables load-based auto scaling for the layer.public java.lang.Boolean getEnable()
Enables load-based auto scaling for the layer.
public SetLoadBasedAutoScalingRequest withEnable(java.lang.Boolean enable)
Enables load-based auto scaling for the layer.
enable
- Enables load-based auto scaling for the layer.public java.lang.Boolean isEnable()
Enables load-based auto scaling for the layer.
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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SetLoadBasedAutoScalingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()