Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class LoadBasedAutoScalingConfiguration

java.lang.Object
  extended by com.amazonaws.services.opsworks.model.LoadBasedAutoScalingConfiguration
All Implemented Interfaces:
Serializable

public class LoadBasedAutoScalingConfiguration
extends Object
implements Serializable

Describes a layer's load-based auto scaling configuration.

See Also:
Serialized Form

Constructor Summary
LoadBasedAutoScalingConfiguration()
           
 
Method Summary
 boolean equals(Object obj)
           
 AutoScalingThresholds getDownScaling()
          A LoadBasedAutoscalingInstruction object that describes the downscaling configuration, which defines how and when OpsWorks reduces the number of instances.
 Boolean getEnable()
          Whether load-based auto scaling is enabled for the layer.
 String getLayerId()
          The layer ID.
 AutoScalingThresholds getUpScaling()
          A LoadBasedAutoscalingInstruction object that describes the upscaling configuration, which defines how and when OpsWorks increases the number of instances.
 int hashCode()
           
 Boolean isEnable()
          Whether load-based auto scaling is enabled for the layer.
 void setDownScaling(AutoScalingThresholds downScaling)
          A LoadBasedAutoscalingInstruction object that describes the downscaling configuration, which defines how and when OpsWorks 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)
          A LoadBasedAutoscalingInstruction object that describes the upscaling configuration, which defines how and when OpsWorks increases the number of instances.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 LoadBasedAutoScalingConfiguration withDownScaling(AutoScalingThresholds downScaling)
          A LoadBasedAutoscalingInstruction object that describes the downscaling configuration, which defines how and when OpsWorks 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)
          A LoadBasedAutoscalingInstruction object that describes the upscaling configuration, which defines how and when OpsWorks increases the number of instances.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoadBasedAutoScalingConfiguration

public LoadBasedAutoScalingConfiguration()
Method Detail

getLayerId

public String getLayerId()
The layer ID.

Returns:
The layer ID.

setLayerId

public void setLayerId(String layerId)
The layer ID.

Parameters:
layerId - The layer ID.

withLayerId

public LoadBasedAutoScalingConfiguration withLayerId(String layerId)
The layer ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
layerId - The layer ID.
Returns:
A reference to this updated object so that method calls can be chained together.

isEnable

public Boolean isEnable()
Whether load-based auto scaling is enabled for the layer.

Returns:
Whether load-based auto scaling is enabled for the layer.

setEnable

public void setEnable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.

Parameters:
enable - Whether load-based auto scaling is enabled for the layer.

withEnable

public LoadBasedAutoScalingConfiguration withEnable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.

Returns a reference to this object so that method calls can be chained together.

Parameters:
enable - Whether load-based auto scaling is enabled for the layer.
Returns:
A reference to this updated object so that method calls can be chained together.

getEnable

public Boolean getEnable()
Whether load-based auto scaling is enabled for the layer.

Returns:
Whether load-based auto scaling is enabled for the layer.

getUpScaling

public AutoScalingThresholds getUpScaling()
A LoadBasedAutoscalingInstruction object that describes the upscaling configuration, which defines how and when OpsWorks increases the number of instances.

Returns:
A LoadBasedAutoscalingInstruction object that describes the upscaling configuration, which defines how and when OpsWorks increases the number of instances.

setUpScaling

public void setUpScaling(AutoScalingThresholds upScaling)
A LoadBasedAutoscalingInstruction object that describes the upscaling configuration, which defines how and when OpsWorks increases the number of instances.

Parameters:
upScaling - A LoadBasedAutoscalingInstruction object that describes the upscaling configuration, which defines how and when OpsWorks increases the number of instances.

withUpScaling

public LoadBasedAutoScalingConfiguration withUpScaling(AutoScalingThresholds upScaling)
A LoadBasedAutoscalingInstruction object that describes the upscaling configuration, which defines how and when OpsWorks increases the number of instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
upScaling - A LoadBasedAutoscalingInstruction object that describes the upscaling configuration, which defines how and when OpsWorks increases the number of instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getDownScaling

public AutoScalingThresholds getDownScaling()
A LoadBasedAutoscalingInstruction object that describes the downscaling configuration, which defines how and when OpsWorks reduces the number of instances.

Returns:
A LoadBasedAutoscalingInstruction object that describes the downscaling configuration, which defines how and when OpsWorks reduces the number of instances.

setDownScaling

public void setDownScaling(AutoScalingThresholds downScaling)
A LoadBasedAutoscalingInstruction object that describes the downscaling configuration, which defines how and when OpsWorks reduces the number of instances.

Parameters:
downScaling - A LoadBasedAutoscalingInstruction object that describes the downscaling configuration, which defines how and when OpsWorks reduces the number of instances.

withDownScaling

public LoadBasedAutoScalingConfiguration withDownScaling(AutoScalingThresholds downScaling)
A LoadBasedAutoscalingInstruction object that describes the downscaling configuration, which defines how and when OpsWorks reduces the number of instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
downScaling - A LoadBasedAutoscalingInstruction object that describes the downscaling configuration, which defines how and when OpsWorks reduces the number of instances.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.