Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class SetLoadBasedAutoScalingRequest

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

public class SetLoadBasedAutoScalingRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the SetLoadBasedAutoScaling operation.

Specify the load-based auto scaling configuration for a specified layer. For more information, see Managing Load with Time-based and Load-based Instances .

NOTE:To use load-based auto scaling, you must create a set of load-based auto scaling instances. Load-based auto scaling operates only on the instances from that set, so you must ensure that you have created enough instances to handle the maximum anticipated load.

See Also:
AWSOpsWorks.setLoadBasedAutoScaling(SetLoadBasedAutoScalingRequest), Serialized Form

Constructor Summary
SetLoadBasedAutoScalingRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 AutoScalingThresholds getDownScaling()
          An AutoScalingThresholds object with the downscaling threshold configuration.
 Boolean getEnable()
          Enables load-based auto scaling for the layer.
 String getLayerId()
          The layer ID.
 AutoScalingThresholds getUpScaling()
          An AutoScalingThresholds object with the upscaling threshold configuration.
 int hashCode()
           
 Boolean isEnable()
          Enables load-based auto scaling for the layer.
 void setDownScaling(AutoScalingThresholds downScaling)
          An AutoScalingThresholds 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)
          An AutoScalingThresholds object with the upscaling threshold configuration.
 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(Boolean enable)
          Enables load-based auto scaling for the layer.
 SetLoadBasedAutoScalingRequest withLayerId(String layerId)
          The layer ID.
 SetLoadBasedAutoScalingRequest withUpScaling(AutoScalingThresholds upScaling)
          An AutoScalingThresholds object with the upscaling threshold configuration.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetLoadBasedAutoScalingRequest

public SetLoadBasedAutoScalingRequest()
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 SetLoadBasedAutoScalingRequest 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()
Enables load-based auto scaling for the layer.

Returns:
Enables load-based auto scaling for the layer.

setEnable

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

Parameters:
enable - Enables load-based auto scaling for the layer.

withEnable

public SetLoadBasedAutoScalingRequest withEnable(Boolean enable)
Enables load-based auto scaling for the layer.

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

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

getEnable

public Boolean getEnable()
Enables load-based auto scaling for the layer.

Returns:
Enables load-based auto scaling for the layer.

getUpScaling

public AutoScalingThresholds getUpScaling()
An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, 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, OpsWorks starts a specified number of instances.

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, OpsWorks starts a specified number of instances.

Parameters:
upScaling - An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, 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, OpsWorks starts a specified number of instances.

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

Parameters:
upScaling - An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, OpsWorks starts a specified number of instances.
Returns:
A reference to this updated object so that method calls can be chained together.

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, 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, OpsWorks stops a specified number of instances.

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, OpsWorks stops a specified number of instances.

Parameters:
downScaling - An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, 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, OpsWorks stops a specified number of instances.

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

Parameters:
downScaling - An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, OpsWorks stops a specified 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.