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:
java.io.Serializable

public class LoadBasedAutoScalingConfiguration
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
LoadBasedAutoScalingConfiguration()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 AutoScalingThresholds getDownScaling()
          A LoadBasedAutoscalingInstruction object that describes the downscaling configuration, which defines how and when OpsWorks reduces the number of instances.
 java.lang.Boolean getEnable()
          Whether load-based auto scaling is enabled for the layer.
 java.lang.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()
           
 java.lang.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(java.lang.Boolean enable)
          Whether load-based auto scaling is enabled for the layer.
 void setLayerId(java.lang.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.
 java.lang.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(java.lang.Boolean enable)
          Whether load-based auto scaling is enabled for the layer.
 LoadBasedAutoScalingConfiguration withLayerId(java.lang.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 java.lang.String getLayerId()
The layer ID.

Returns:
The layer ID.

setLayerId

public void setLayerId(java.lang.String layerId)
The layer ID.

Parameters:
layerId - The layer ID.

withLayerId

public LoadBasedAutoScalingConfiguration withLayerId(java.lang.String layerId)
The layer ID.

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

Parameters:
layerId - The layer ID.

isEnable

public java.lang.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(java.lang.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(java.lang.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.

getEnable

public java.lang.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.

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.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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