@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoadBasedAutoScalingConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Describes a layer's load-based auto scaling configuration.
Constructor and Description |
---|
LoadBasedAutoScalingConfiguration() |
Modifier and Type | Method and Description |
---|---|
LoadBasedAutoScalingConfiguration |
clone() |
boolean |
equals(Object obj) |
AutoScalingThresholds |
getDownScaling()
An
AutoScalingThresholds object that describes the downscaling configuration, which defines how and
when AWS OpsWorks Stacks reduces the number of instances. |
Boolean |
getEnable()
Whether load-based auto scaling is enabled for the layer.
|
String |
getLayerId()
The layer ID.
|
AutoScalingThresholds |
getUpScaling()
An
AutoScalingThresholds object that describes the upscaling configuration, which defines how and
when AWS OpsWorks Stacks increases the number of instances. |
int |
hashCode() |
Boolean |
isEnable()
Whether load-based auto scaling is enabled for the layer.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds object that describes the downscaling configuration, which defines how and
when AWS OpsWorks Stacks reduces the number of instances. |
void |
setEnable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.
|
void |
setLayerId(String layerId)
The layer ID.
|
void |
setUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds object that describes the upscaling configuration, which defines how and
when AWS OpsWorks Stacks increases the number of instances. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
LoadBasedAutoScalingConfiguration |
withDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds object that describes the downscaling configuration, which defines how and
when AWS OpsWorks Stacks reduces the number of instances. |
LoadBasedAutoScalingConfiguration |
withEnable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.
|
LoadBasedAutoScalingConfiguration |
withLayerId(String layerId)
The layer ID.
|
LoadBasedAutoScalingConfiguration |
withUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds object that describes the upscaling configuration, which defines how and
when AWS OpsWorks Stacks increases the number of instances. |
public void setLayerId(String layerId)
The layer ID.
layerId
- The layer ID.public String getLayerId()
The layer ID.
public LoadBasedAutoScalingConfiguration withLayerId(String layerId)
The layer ID.
layerId
- The layer ID.public void setEnable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.
enable
- Whether load-based auto scaling is enabled for the layer.public Boolean getEnable()
Whether load-based auto scaling is enabled for the layer.
public LoadBasedAutoScalingConfiguration withEnable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.
enable
- Whether load-based auto scaling is enabled for the layer.public Boolean isEnable()
Whether load-based auto scaling is enabled for the layer.
public void setUpScaling(AutoScalingThresholds upScaling)
An AutoScalingThresholds
object that describes the upscaling configuration, which defines how and
when AWS OpsWorks Stacks increases the number of instances.
upScaling
- An AutoScalingThresholds
object that describes the upscaling configuration, which defines how
and when AWS OpsWorks Stacks increases the number of instances.public AutoScalingThresholds getUpScaling()
An AutoScalingThresholds
object that describes the upscaling configuration, which defines how and
when AWS OpsWorks Stacks increases the number of instances.
AutoScalingThresholds
object that describes the upscaling configuration, which defines
how and when AWS OpsWorks Stacks increases the number of instances.public LoadBasedAutoScalingConfiguration withUpScaling(AutoScalingThresholds upScaling)
An AutoScalingThresholds
object that describes the upscaling configuration, which defines how and
when AWS OpsWorks Stacks increases the number of instances.
upScaling
- An AutoScalingThresholds
object that describes the upscaling configuration, which defines how
and when AWS OpsWorks Stacks increases the number of instances.public void setDownScaling(AutoScalingThresholds downScaling)
An AutoScalingThresholds
object that describes the downscaling configuration, which defines how and
when AWS OpsWorks Stacks reduces the number of instances.
downScaling
- An AutoScalingThresholds
object that describes the downscaling configuration, which defines
how and when AWS OpsWorks Stacks reduces the number of instances.public AutoScalingThresholds getDownScaling()
An AutoScalingThresholds
object that describes the downscaling configuration, which defines how and
when AWS OpsWorks Stacks reduces the number of instances.
AutoScalingThresholds
object that describes the downscaling configuration, which defines
how and when AWS OpsWorks Stacks reduces the number of instances.public LoadBasedAutoScalingConfiguration withDownScaling(AutoScalingThresholds downScaling)
An AutoScalingThresholds
object that describes the downscaling configuration, which defines how and
when AWS OpsWorks Stacks reduces the number of instances.
downScaling
- An AutoScalingThresholds
object that describes the downscaling configuration, which defines
how and when AWS OpsWorks Stacks reduces the number of instances.public String toString()
toString
in class Object
Object.toString()
public LoadBasedAutoScalingConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.