com.amazonaws.services.autoscaling.model
Class CreateAutoScalingGroupRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.CreateAutoScalingGroupRequest

public class CreateAutoScalingGroupRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreateAutoScalingGroup operation.

Creates a new Auto Scaling group with the specified name. Once the creation request is completed, the AutoScalingGroup is ready to be used in other calls.

NOTE: The Auto Scaling group name must be unique within the scope of your AWS account, and under the quota of Auto Scaling groups allowed for your account.

See Also:
AmazonAutoScaling.createAutoScalingGroup(CreateAutoScalingGroupRequest)

Constructor Summary
CreateAutoScalingGroupRequest()
           
 
Method Summary
 String getAutoScalingGroupName()
          The name of the Auto Scaling group.
 List<String> getAvailabilityZones()
          A list of availability zones for the Auto Scaling group.
 Integer getDefaultCooldown()
          The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.
 Integer getDesiredCapacity()
          The number of EC2 instances that should be running in the group.
 Integer getHealthCheckGracePeriod()
          Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.
 String getHealthCheckType()
          The service you want the health status from, Amazon EC2 or Elastic Load Balancer.
 String getLaunchConfigurationName()
          The name of the launch configuration to use with the Auto Scaling group.
 List<String> getLoadBalancerNames()
          A list of LoadBalancers to use.
 Integer getMaxSize()
          The maximum size of the Auto Scaling group.
 Integer getMinSize()
          The minimum size of the Auto Scaling group.
 String getPlacementGroup()
          Physical location of your cluster placement group created in Amazon EC2.
 String getVPCZoneIdentifier()
          The subnet identifier of the Virtual Private Cloud.
 void setAutoScalingGroupName(String autoScalingGroupName)
          The name of the Auto Scaling group.
 void setAvailabilityZones(Collection<String> availabilityZones)
          A list of availability zones for the Auto Scaling group.
 void setDefaultCooldown(Integer defaultCooldown)
          The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.
 void setDesiredCapacity(Integer desiredCapacity)
          The number of EC2 instances that should be running in the group.
 void setHealthCheckGracePeriod(Integer healthCheckGracePeriod)
          Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.
 void setHealthCheckType(String healthCheckType)
          The service you want the health status from, Amazon EC2 or Elastic Load Balancer.
 void setLaunchConfigurationName(String launchConfigurationName)
          The name of the launch configuration to use with the Auto Scaling group.
 void setLoadBalancerNames(Collection<String> loadBalancerNames)
          A list of LoadBalancers to use.
 void setMaxSize(Integer maxSize)
          The maximum size of the Auto Scaling group.
 void setMinSize(Integer minSize)
          The minimum size of the Auto Scaling group.
 void setPlacementGroup(String placementGroup)
          Physical location of your cluster placement group created in Amazon EC2.
 void setVPCZoneIdentifier(String vPCZoneIdentifier)
          The subnet identifier of the Virtual Private Cloud.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateAutoScalingGroupRequest withAutoScalingGroupName(String autoScalingGroupName)
          The name of the Auto Scaling group.
 CreateAutoScalingGroupRequest withAvailabilityZones(Collection<String> availabilityZones)
          A list of availability zones for the Auto Scaling group.
 CreateAutoScalingGroupRequest withAvailabilityZones(String... availabilityZones)
          A list of availability zones for the Auto Scaling group.
 CreateAutoScalingGroupRequest withDefaultCooldown(Integer defaultCooldown)
          The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.
 CreateAutoScalingGroupRequest withDesiredCapacity(Integer desiredCapacity)
          The number of EC2 instances that should be running in the group.
 CreateAutoScalingGroupRequest withHealthCheckGracePeriod(Integer healthCheckGracePeriod)
          Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.
 CreateAutoScalingGroupRequest withHealthCheckType(String healthCheckType)
          The service you want the health status from, Amazon EC2 or Elastic Load Balancer.
 CreateAutoScalingGroupRequest withLaunchConfigurationName(String launchConfigurationName)
          The name of the launch configuration to use with the Auto Scaling group.
 CreateAutoScalingGroupRequest withLoadBalancerNames(Collection<String> loadBalancerNames)
          A list of LoadBalancers to use.
 CreateAutoScalingGroupRequest withLoadBalancerNames(String... loadBalancerNames)
          A list of LoadBalancers to use.
 CreateAutoScalingGroupRequest withMaxSize(Integer maxSize)
          The maximum size of the Auto Scaling group.
 CreateAutoScalingGroupRequest withMinSize(Integer minSize)
          The minimum size of the Auto Scaling group.
 CreateAutoScalingGroupRequest withPlacementGroup(String placementGroup)
          Physical location of your cluster placement group created in Amazon EC2.
 CreateAutoScalingGroupRequest withVPCZoneIdentifier(String vPCZoneIdentifier)
          The subnet identifier of the Virtual Private Cloud.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateAutoScalingGroupRequest

public CreateAutoScalingGroupRequest()
Method Detail

getAutoScalingGroupName

public String getAutoScalingGroupName()
The name of the Auto Scaling group.

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Returns:
The name of the Auto Scaling group.

setAutoScalingGroupName

public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Parameters:
autoScalingGroupName - The name of the Auto Scaling group.

withAutoScalingGroupName

public CreateAutoScalingGroupRequest withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.

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

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Parameters:
autoScalingGroupName - The name of the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getLaunchConfigurationName

public String getLaunchConfigurationName()
The name of the launch configuration to use with the Auto Scaling group.

Constraints:
Length: 1 - 1600
Pattern: [ -??-??-?\r\n\t]*

Returns:
The name of the launch configuration to use with the Auto Scaling group.

setLaunchConfigurationName

public void setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration to use with the Auto Scaling group.

Constraints:
Length: 1 - 1600
Pattern: [ -??-??-?\r\n\t]*

Parameters:
launchConfigurationName - The name of the launch configuration to use with the Auto Scaling group.

withLaunchConfigurationName

public CreateAutoScalingGroupRequest withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration to use with the Auto Scaling group.

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

Constraints:
Length: 1 - 1600
Pattern: [ -??-??-?\r\n\t]*

Parameters:
launchConfigurationName - The name of the launch configuration to use with the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getMinSize

public Integer getMinSize()
The minimum size of the Auto Scaling group.

Returns:
The minimum size of the Auto Scaling group.

setMinSize

public void setMinSize(Integer minSize)
The minimum size of the Auto Scaling group.

Parameters:
minSize - The minimum size of the Auto Scaling group.

withMinSize

public CreateAutoScalingGroupRequest withMinSize(Integer minSize)
The minimum size of the Auto Scaling group.

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

Parameters:
minSize - The minimum size of the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getMaxSize

public Integer getMaxSize()
The maximum size of the Auto Scaling group.

Returns:
The maximum size of the Auto Scaling group.

setMaxSize

public void setMaxSize(Integer maxSize)
The maximum size of the Auto Scaling group.

Parameters:
maxSize - The maximum size of the Auto Scaling group.

withMaxSize

public CreateAutoScalingGroupRequest withMaxSize(Integer maxSize)
The maximum size of the Auto Scaling group.

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

Parameters:
maxSize - The maximum size of the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getDesiredCapacity

public Integer getDesiredCapacity()
The number of EC2 instances that should be running in the group.

Returns:
The number of EC2 instances that should be running in the group.

setDesiredCapacity

public void setDesiredCapacity(Integer desiredCapacity)
The number of EC2 instances that should be running in the group.

Parameters:
desiredCapacity - The number of EC2 instances that should be running in the group.

withDesiredCapacity

public CreateAutoScalingGroupRequest withDesiredCapacity(Integer desiredCapacity)
The number of EC2 instances that should be running in the group.

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

Parameters:
desiredCapacity - The number of EC2 instances that should be running in the group.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultCooldown

public Integer getDefaultCooldown()
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

Returns:
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

setDefaultCooldown

public void setDefaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

Parameters:
defaultCooldown - The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

withDefaultCooldown

public CreateAutoScalingGroupRequest withDefaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

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

Parameters:
defaultCooldown - The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZones

public List<String> getAvailabilityZones()
A list of availability zones for the Auto Scaling group.

Constraints:
Length: 1 -

Returns:
A list of availability zones for the Auto Scaling group.

setAvailabilityZones

public void setAvailabilityZones(Collection<String> availabilityZones)
A list of availability zones for the Auto Scaling group.

Constraints:
Length: 1 -

Parameters:
availabilityZones - A list of availability zones for the Auto Scaling group.

withAvailabilityZones

public CreateAutoScalingGroupRequest withAvailabilityZones(String... availabilityZones)
A list of availability zones for the Auto Scaling group.

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

Constraints:
Length: 1 -

Parameters:
availabilityZones - A list of availability zones for the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

withAvailabilityZones

public CreateAutoScalingGroupRequest withAvailabilityZones(Collection<String> availabilityZones)
A list of availability zones for the Auto Scaling group.

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

Constraints:
Length: 1 -

Parameters:
availabilityZones - A list of availability zones for the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getLoadBalancerNames

public List<String> getLoadBalancerNames()
A list of LoadBalancers to use.

Returns:
A list of LoadBalancers to use.

setLoadBalancerNames

public void setLoadBalancerNames(Collection<String> loadBalancerNames)
A list of LoadBalancers to use.

Parameters:
loadBalancerNames - A list of LoadBalancers to use.

withLoadBalancerNames

public CreateAutoScalingGroupRequest withLoadBalancerNames(String... loadBalancerNames)
A list of LoadBalancers to use.

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

Parameters:
loadBalancerNames - A list of LoadBalancers to use.
Returns:
A reference to this updated object so that method calls can be chained together.

withLoadBalancerNames

public CreateAutoScalingGroupRequest withLoadBalancerNames(Collection<String> loadBalancerNames)
A list of LoadBalancers to use.

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

Parameters:
loadBalancerNames - A list of LoadBalancers to use.
Returns:
A reference to this updated object so that method calls can be chained together.

getHealthCheckType

public String getHealthCheckType()
The service you want the health status from, Amazon EC2 or Elastic Load Balancer.

Constraints:
Length: 1 - 32
Pattern: [ -??-??-?\r\n\t]*

Returns:
The service you want the health status from, Amazon EC2 or Elastic Load Balancer.

setHealthCheckType

public void setHealthCheckType(String healthCheckType)
The service you want the health status from, Amazon EC2 or Elastic Load Balancer.

Constraints:
Length: 1 - 32
Pattern: [ -??-??-?\r\n\t]*

Parameters:
healthCheckType - The service you want the health status from, Amazon EC2 or Elastic Load Balancer.

withHealthCheckType

public CreateAutoScalingGroupRequest withHealthCheckType(String healthCheckType)
The service you want the health status from, Amazon EC2 or Elastic Load Balancer.

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

Constraints:
Length: 1 - 32
Pattern: [ -??-??-?\r\n\t]*

Parameters:
healthCheckType - The service you want the health status from, Amazon EC2 or Elastic Load Balancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getHealthCheckGracePeriod

public Integer getHealthCheckGracePeriod()
Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.

Returns:
Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.

setHealthCheckGracePeriod

public void setHealthCheckGracePeriod(Integer healthCheckGracePeriod)
Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.

Parameters:
healthCheckGracePeriod - Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.

withHealthCheckGracePeriod

public CreateAutoScalingGroupRequest withHealthCheckGracePeriod(Integer healthCheckGracePeriod)
Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.

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

Parameters:
healthCheckGracePeriod - Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.
Returns:
A reference to this updated object so that method calls can be chained together.

getPlacementGroup

public String getPlacementGroup()
Physical location of your cluster placement group created in Amazon EC2.

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Returns:
Physical location of your cluster placement group created in Amazon EC2.

setPlacementGroup

public void setPlacementGroup(String placementGroup)
Physical location of your cluster placement group created in Amazon EC2.

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Parameters:
placementGroup - Physical location of your cluster placement group created in Amazon EC2.

withPlacementGroup

public CreateAutoScalingGroupRequest withPlacementGroup(String placementGroup)
Physical location of your cluster placement group created in Amazon EC2.

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

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Parameters:
placementGroup - Physical location of your cluster placement group created in Amazon EC2.
Returns:
A reference to this updated object so that method calls can be chained together.

getVPCZoneIdentifier

public String getVPCZoneIdentifier()
The subnet identifier of the Virtual Private Cloud.

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Returns:
The subnet identifier of the Virtual Private Cloud.

setVPCZoneIdentifier

public void setVPCZoneIdentifier(String vPCZoneIdentifier)
The subnet identifier of the Virtual Private Cloud.

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Parameters:
vPCZoneIdentifier - The subnet identifier of the Virtual Private Cloud.

withVPCZoneIdentifier

public CreateAutoScalingGroupRequest withVPCZoneIdentifier(String vPCZoneIdentifier)
The subnet identifier of the Virtual Private Cloud.

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

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Parameters:
vPCZoneIdentifier - The subnet identifier of the Virtual Private Cloud.
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()


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