com.amazonaws.services.autoscaling.model
Class CreateAutoScalingGroupRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.CreateAutoScalingGroupRequest
All Implemented Interfaces:
java.io.Serializable

public class CreateAutoScalingGroupRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the CreateAutoScalingGroup operation.

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

NOTE: The Auto Scaling group name must be unique within the scope of your AWS account.

See Also:
AmazonAutoScaling.createAutoScalingGroup(CreateAutoScalingGroupRequest), Serialized Form

Constructor Summary
CreateAutoScalingGroupRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAutoScalingGroupName()
          The name of the Auto Scaling group.
 java.util.List<java.lang.String> getAvailabilityZones()
          A list of Availability Zones for the Auto Scaling group.
 java.lang.Integer getDefaultCooldown()
          The amount of time, in seconds, between a successful scaling activity and the succeeding scaling activity.
 java.lang.Integer getDesiredCapacity()
          The number of Amazon EC2 instances that should be running in the group.
 java.lang.Integer getHealthCheckGracePeriod()
          Length of time in seconds after a new Amazon EC2 instance comes into service that Auto Scaling starts checking its health.
 java.lang.String getHealthCheckType()
          The service you want the health checks from, Amazon EC2 or Elastic Load Balancer.
 java.lang.String getInstanceId()
          The ID of the Amazon EC2 instance you want to use to create the Auto Scaling group.
 java.lang.String getLaunchConfigurationName()
          The name of an existing launch configuration to use to launch new instances.
 java.util.List<java.lang.String> getLoadBalancerNames()
          A list of existing Elastic Load Balancing load balancers to use.
 java.lang.Integer getMaxSize()
          The maximum size of the Auto Scaling group.
 java.lang.Integer getMinSize()
          The minimum size of the Auto Scaling group.
 java.lang.String getPlacementGroup()
          Physical location of an existing cluster placement group into which you want to launch your instances.
 java.util.List<Tag> getTags()
          The tag to be created or updated.
 java.util.List<java.lang.String> getTerminationPolicies()
          A standalone termination policy or a list of termination policies used to select the instance to terminate.
 java.lang.String getVPCZoneIdentifier()
          A comma-separated list of subnet identifiers of Amazon Virtual Private Clouds (Amazon VPCs).
 int hashCode()
           
 void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
          The name of the Auto Scaling group.
 void setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
          A list of Availability Zones for the Auto Scaling group.
 void setDefaultCooldown(java.lang.Integer defaultCooldown)
          The amount of time, in seconds, between a successful scaling activity and the succeeding scaling activity.
 void setDesiredCapacity(java.lang.Integer desiredCapacity)
          The number of Amazon EC2 instances that should be running in the group.
 void setHealthCheckGracePeriod(java.lang.Integer healthCheckGracePeriod)
          Length of time in seconds after a new Amazon EC2 instance comes into service that Auto Scaling starts checking its health.
 void setHealthCheckType(java.lang.String healthCheckType)
          The service you want the health checks from, Amazon EC2 or Elastic Load Balancer.
 void setInstanceId(java.lang.String instanceId)
          The ID of the Amazon EC2 instance you want to use to create the Auto Scaling group.
 void setLaunchConfigurationName(java.lang.String launchConfigurationName)
          The name of an existing launch configuration to use to launch new instances.
 void setLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
          A list of existing Elastic Load Balancing load balancers to use.
 void setMaxSize(java.lang.Integer maxSize)
          The maximum size of the Auto Scaling group.
 void setMinSize(java.lang.Integer minSize)
          The minimum size of the Auto Scaling group.
 void setPlacementGroup(java.lang.String placementGroup)
          Physical location of an existing cluster placement group into which you want to launch your instances.
 void setTags(java.util.Collection<Tag> tags)
          The tag to be created or updated.
 void setTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
          A standalone termination policy or a list of termination policies used to select the instance to terminate.
 void setVPCZoneIdentifier(java.lang.String vPCZoneIdentifier)
          A comma-separated list of subnet identifiers of Amazon Virtual Private Clouds (Amazon VPCs).
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateAutoScalingGroupRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
          The name of the Auto Scaling group.
 CreateAutoScalingGroupRequest withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
          A list of Availability Zones for the Auto Scaling group.
 CreateAutoScalingGroupRequest withAvailabilityZones(java.lang.String... availabilityZones)
          A list of Availability Zones for the Auto Scaling group.
 CreateAutoScalingGroupRequest withDefaultCooldown(java.lang.Integer defaultCooldown)
          The amount of time, in seconds, between a successful scaling activity and the succeeding scaling activity.
 CreateAutoScalingGroupRequest withDesiredCapacity(java.lang.Integer desiredCapacity)
          The number of Amazon EC2 instances that should be running in the group.
 CreateAutoScalingGroupRequest withHealthCheckGracePeriod(java.lang.Integer healthCheckGracePeriod)
          Length of time in seconds after a new Amazon EC2 instance comes into service that Auto Scaling starts checking its health.
 CreateAutoScalingGroupRequest withHealthCheckType(java.lang.String healthCheckType)
          The service you want the health checks from, Amazon EC2 or Elastic Load Balancer.
 CreateAutoScalingGroupRequest withInstanceId(java.lang.String instanceId)
          The ID of the Amazon EC2 instance you want to use to create the Auto Scaling group.
 CreateAutoScalingGroupRequest withLaunchConfigurationName(java.lang.String launchConfigurationName)
          The name of an existing launch configuration to use to launch new instances.
 CreateAutoScalingGroupRequest withLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
          A list of existing Elastic Load Balancing load balancers to use.
 CreateAutoScalingGroupRequest withLoadBalancerNames(java.lang.String... loadBalancerNames)
          A list of existing Elastic Load Balancing load balancers to use.
 CreateAutoScalingGroupRequest withMaxSize(java.lang.Integer maxSize)
          The maximum size of the Auto Scaling group.
 CreateAutoScalingGroupRequest withMinSize(java.lang.Integer minSize)
          The minimum size of the Auto Scaling group.
 CreateAutoScalingGroupRequest withPlacementGroup(java.lang.String placementGroup)
          Physical location of an existing cluster placement group into which you want to launch your instances.
 CreateAutoScalingGroupRequest withTags(java.util.Collection<Tag> tags)
          The tag to be created or updated.
 CreateAutoScalingGroupRequest withTags(Tag... tags)
          The tag to be created or updated.
 CreateAutoScalingGroupRequest withTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
          A standalone termination policy or a list of termination policies used to select the instance to terminate.
 CreateAutoScalingGroupRequest withTerminationPolicies(java.lang.String... terminationPolicies)
          A standalone termination policy or a list of termination policies used to select the instance to terminate.
 CreateAutoScalingGroupRequest withVPCZoneIdentifier(java.lang.String vPCZoneIdentifier)
          A comma-separated list of subnet identifiers of Amazon Virtual Private Clouds (Amazon VPCs).
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateAutoScalingGroupRequest

public CreateAutoScalingGroupRequest()
Method Detail

getAutoScalingGroupName

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The name of the Auto Scaling group.

setAutoScalingGroupName

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

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

withAutoScalingGroupName

public CreateAutoScalingGroupRequest withAutoScalingGroupName(java.lang.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: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\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 java.lang.String getLaunchConfigurationName()
The name of an existing launch configuration to use to launch new instances. Use this attribute if you want to create an Auto Scaling group using an existing launch configuration instead of an EC2 instance.

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The name of an existing launch configuration to use to launch new instances. Use this attribute if you want to create an Auto Scaling group using an existing launch configuration instead of an EC2 instance.

setLaunchConfigurationName

public void setLaunchConfigurationName(java.lang.String launchConfigurationName)
The name of an existing launch configuration to use to launch new instances. Use this attribute if you want to create an Auto Scaling group using an existing launch configuration instead of an EC2 instance.

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
launchConfigurationName - The name of an existing launch configuration to use to launch new instances. Use this attribute if you want to create an Auto Scaling group using an existing launch configuration instead of an EC2 instance.

withLaunchConfigurationName

public CreateAutoScalingGroupRequest withLaunchConfigurationName(java.lang.String launchConfigurationName)
The name of an existing launch configuration to use to launch new instances. Use this attribute if you want to create an Auto Scaling group using an existing launch configuration instead of an EC2 instance.

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

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
launchConfigurationName - The name of an existing launch configuration to use to launch new instances. Use this attribute if you want to create an Auto Scaling group using an existing launch configuration instead of an EC2 instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceId

public java.lang.String getInstanceId()
The ID of the Amazon EC2 instance you want to use to create the Auto Scaling group. Use this attribute if you want to create an Auto Scaling group using an EC2 instance instead of a launch configuration.

When you use an instance to create an Auto Scaling group, a new launch configuration is first created and then associated with the Auto Scaling group. The new launch configuration derives all its attributes from the instance that is used to create the Auto Scaling group, with the exception of BlockDeviceMapping.

For more information, see Create an Auto Scaling Group Using EC2 Instance in the Auto Scaling Developer Guide.

Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The ID of the Amazon EC2 instance you want to use to create the Auto Scaling group. Use this attribute if you want to create an Auto Scaling group using an EC2 instance instead of a launch configuration.

When you use an instance to create an Auto Scaling group, a new launch configuration is first created and then associated with the Auto Scaling group. The new launch configuration derives all its attributes from the instance that is used to create the Auto Scaling group, with the exception of BlockDeviceMapping.

For more information, see Create an Auto Scaling Group Using EC2 Instance in the Auto Scaling Developer Guide.


setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the Amazon EC2 instance you want to use to create the Auto Scaling group. Use this attribute if you want to create an Auto Scaling group using an EC2 instance instead of a launch configuration.

When you use an instance to create an Auto Scaling group, a new launch configuration is first created and then associated with the Auto Scaling group. The new launch configuration derives all its attributes from the instance that is used to create the Auto Scaling group, with the exception of BlockDeviceMapping.

For more information, see Create an Auto Scaling Group Using EC2 Instance in the Auto Scaling Developer Guide.

Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
instanceId - The ID of the Amazon EC2 instance you want to use to create the Auto Scaling group. Use this attribute if you want to create an Auto Scaling group using an EC2 instance instead of a launch configuration.

When you use an instance to create an Auto Scaling group, a new launch configuration is first created and then associated with the Auto Scaling group. The new launch configuration derives all its attributes from the instance that is used to create the Auto Scaling group, with the exception of BlockDeviceMapping.

For more information, see Create an Auto Scaling Group Using EC2 Instance in the Auto Scaling Developer Guide.


withInstanceId

public CreateAutoScalingGroupRequest withInstanceId(java.lang.String instanceId)
The ID of the Amazon EC2 instance you want to use to create the Auto Scaling group. Use this attribute if you want to create an Auto Scaling group using an EC2 instance instead of a launch configuration.

When you use an instance to create an Auto Scaling group, a new launch configuration is first created and then associated with the Auto Scaling group. The new launch configuration derives all its attributes from the instance that is used to create the Auto Scaling group, with the exception of BlockDeviceMapping.

For more information, see Create an Auto Scaling Group Using EC2 Instance in the Auto Scaling Developer Guide.

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

Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
instanceId - The ID of the Amazon EC2 instance you want to use to create the Auto Scaling group. Use this attribute if you want to create an Auto Scaling group using an EC2 instance instead of a launch configuration.

When you use an instance to create an Auto Scaling group, a new launch configuration is first created and then associated with the Auto Scaling group. The new launch configuration derives all its attributes from the instance that is used to create the Auto Scaling group, with the exception of BlockDeviceMapping.

For more information, see Create an Auto Scaling Group Using EC2 Instance in the Auto Scaling Developer Guide.

Returns:
A reference to this updated object so that method calls can be chained together.

getMinSize

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

Returns:
The minimum size of the Auto Scaling group.

setMinSize

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

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

withMinSize

public CreateAutoScalingGroupRequest withMinSize(java.lang.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 java.lang.Integer getMaxSize()
The maximum size of the Auto Scaling group.

Returns:
The maximum size of the Auto Scaling group.

setMaxSize

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

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

withMaxSize

public CreateAutoScalingGroupRequest withMaxSize(java.lang.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 java.lang.Integer getDesiredCapacity()
The number of Amazon EC2 instances that should be running in the group. The desired capacity must be greater than or equal to the minimum size and less than or equal to the maximum size specified for the Auto Scaling group.

Returns:
The number of Amazon EC2 instances that should be running in the group. The desired capacity must be greater than or equal to the minimum size and less than or equal to the maximum size specified for the Auto Scaling group.

setDesiredCapacity

public void setDesiredCapacity(java.lang.Integer desiredCapacity)
The number of Amazon EC2 instances that should be running in the group. The desired capacity must be greater than or equal to the minimum size and less than or equal to the maximum size specified for the Auto Scaling group.

Parameters:
desiredCapacity - The number of Amazon EC2 instances that should be running in the group. The desired capacity must be greater than or equal to the minimum size and less than or equal to the maximum size specified for the Auto Scaling group.

withDesiredCapacity

public CreateAutoScalingGroupRequest withDesiredCapacity(java.lang.Integer desiredCapacity)
The number of Amazon EC2 instances that should be running in the group. The desired capacity must be greater than or equal to the minimum size and less than or equal to the maximum size specified for the Auto Scaling group.

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

Parameters:
desiredCapacity - The number of Amazon EC2 instances that should be running in the group. The desired capacity must be greater than or equal to the minimum size and less than or equal to the maximum size specified for the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultCooldown

public java.lang.Integer getDefaultCooldown()
The amount of time, in seconds, between a successful scaling activity and the succeeding scaling activity.

If a DefaultCooldown period is not specified, Auto Scaling uses the default value of 300 as the default cool down period for the Auto Scaling group. For more information, see Cooldown Period

Returns:
The amount of time, in seconds, between a successful scaling activity and the succeeding scaling activity.

If a DefaultCooldown period is not specified, Auto Scaling uses the default value of 300 as the default cool down period for the Auto Scaling group. For more information, see Cooldown Period


setDefaultCooldown

public void setDefaultCooldown(java.lang.Integer defaultCooldown)
The amount of time, in seconds, between a successful scaling activity and the succeeding scaling activity.

If a DefaultCooldown period is not specified, Auto Scaling uses the default value of 300 as the default cool down period for the Auto Scaling group. For more information, see Cooldown Period

Parameters:
defaultCooldown - The amount of time, in seconds, between a successful scaling activity and the succeeding scaling activity.

If a DefaultCooldown period is not specified, Auto Scaling uses the default value of 300 as the default cool down period for the Auto Scaling group. For more information, see Cooldown Period


withDefaultCooldown

public CreateAutoScalingGroupRequest withDefaultCooldown(java.lang.Integer defaultCooldown)
The amount of time, in seconds, between a successful scaling activity and the succeeding scaling activity.

If a DefaultCooldown period is not specified, Auto Scaling uses the default value of 300 as the default cool down period for the Auto Scaling group. For more information, see Cooldown Period

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

Parameters:
defaultCooldown - The amount of time, in seconds, between a successful scaling activity and the succeeding scaling activity.

If a DefaultCooldown period is not specified, Auto Scaling uses the default value of 300 as the default cool down period for the Auto Scaling group. For more information, see Cooldown Period

Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZones

public java.util.List<java.lang.String> getAvailabilityZones()
A list of Availability Zones for the Auto Scaling group. This is required unless you have specified subnets.

Constraints:
Length: 1 -

Returns:
A list of Availability Zones for the Auto Scaling group. This is required unless you have specified subnets.

setAvailabilityZones

public void setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
A list of Availability Zones for the Auto Scaling group. This is required unless you have specified subnets.

Constraints:
Length: 1 -

Parameters:
availabilityZones - A list of Availability Zones for the Auto Scaling group. This is required unless you have specified subnets.

withAvailabilityZones

public CreateAutoScalingGroupRequest withAvailabilityZones(java.lang.String... availabilityZones)
A list of Availability Zones for the Auto Scaling group. This is required unless you have specified subnets.

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. This is required unless you have specified subnets.
Returns:
A reference to this updated object so that method calls can be chained together.

withAvailabilityZones

public CreateAutoScalingGroupRequest withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
A list of Availability Zones for the Auto Scaling group. This is required unless you have specified subnets.

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. This is required unless you have specified subnets.
Returns:
A reference to this updated object so that method calls can be chained together.

getLoadBalancerNames

public java.util.List<java.lang.String> getLoadBalancerNames()
A list of existing Elastic Load Balancing load balancers to use. The load balancers must be associated with the AWS account.

For information on using load balancers, see Use Load Balancer to Load Balance Your Auto Scaling Group in the Auto Scaling Developer Guide.

Returns:
A list of existing Elastic Load Balancing load balancers to use. The load balancers must be associated with the AWS account.

For information on using load balancers, see Use Load Balancer to Load Balance Your Auto Scaling Group in the Auto Scaling Developer Guide.


setLoadBalancerNames

public void setLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
A list of existing Elastic Load Balancing load balancers to use. The load balancers must be associated with the AWS account.

For information on using load balancers, see Use Load Balancer to Load Balance Your Auto Scaling Group in the Auto Scaling Developer Guide.

Parameters:
loadBalancerNames - A list of existing Elastic Load Balancing load balancers to use. The load balancers must be associated with the AWS account.

For information on using load balancers, see Use Load Balancer to Load Balance Your Auto Scaling Group in the Auto Scaling Developer Guide.


withLoadBalancerNames

public CreateAutoScalingGroupRequest withLoadBalancerNames(java.lang.String... loadBalancerNames)
A list of existing Elastic Load Balancing load balancers to use. The load balancers must be associated with the AWS account.

For information on using load balancers, see Use Load Balancer to Load Balance Your Auto Scaling Group in the Auto Scaling Developer Guide.

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

Parameters:
loadBalancerNames - A list of existing Elastic Load Balancing load balancers to use. The load balancers must be associated with the AWS account.

For information on using load balancers, see Use Load Balancer to Load Balance Your Auto Scaling Group in the Auto Scaling Developer Guide.

Returns:
A reference to this updated object so that method calls can be chained together.

withLoadBalancerNames

public CreateAutoScalingGroupRequest withLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
A list of existing Elastic Load Balancing load balancers to use. The load balancers must be associated with the AWS account.

For information on using load balancers, see Use Load Balancer to Load Balance Your Auto Scaling Group in the Auto Scaling Developer Guide.

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

Parameters:
loadBalancerNames - A list of existing Elastic Load Balancing load balancers to use. The load balancers must be associated with the AWS account.

For information on using load balancers, see Use Load Balancer to Load Balance Your Auto Scaling Group in the Auto Scaling Developer Guide.

Returns:
A reference to this updated object so that method calls can be chained together.

getHealthCheckType

public java.lang.String getHealthCheckType()
The service you want the health checks from, Amazon EC2 or Elastic Load Balancer. Valid values are EC2 or ELB.

By default, the Auto Scaling health check uses the results of Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Check.

Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The service you want the health checks from, Amazon EC2 or Elastic Load Balancer. Valid values are EC2 or ELB.

By default, the Auto Scaling health check uses the results of Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Check.


setHealthCheckType

public void setHealthCheckType(java.lang.String healthCheckType)
The service you want the health checks from, Amazon EC2 or Elastic Load Balancer. Valid values are EC2 or ELB.

By default, the Auto Scaling health check uses the results of Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Check.

Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
healthCheckType - The service you want the health checks from, Amazon EC2 or Elastic Load Balancer. Valid values are EC2 or ELB.

By default, the Auto Scaling health check uses the results of Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Check.


withHealthCheckType

public CreateAutoScalingGroupRequest withHealthCheckType(java.lang.String healthCheckType)
The service you want the health checks from, Amazon EC2 or Elastic Load Balancer. Valid values are EC2 or ELB.

By default, the Auto Scaling health check uses the results of Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Check.

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

Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
healthCheckType - The service you want the health checks from, Amazon EC2 or Elastic Load Balancer. Valid values are EC2 or ELB.

By default, the Auto Scaling health check uses the results of Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Check.

Returns:
A reference to this updated object so that method calls can be chained together.

getHealthCheckGracePeriod

public java.lang.Integer getHealthCheckGracePeriod()
Length of time in seconds after a new Amazon EC2 instance comes into service that Auto Scaling starts checking its health. During this time any health check failure for the that instance is ignored.

This is required if you are adding ELB health check. Frequently, new instances need to warm up, briefly, before they can pass a health check. To provide ample warm-up time, set the health check grace period of the group to match the expected startup period of your application.

Returns:
Length of time in seconds after a new Amazon EC2 instance comes into service that Auto Scaling starts checking its health. During this time any health check failure for the that instance is ignored.

This is required if you are adding ELB health check. Frequently, new instances need to warm up, briefly, before they can pass a health check. To provide ample warm-up time, set the health check grace period of the group to match the expected startup period of your application.


setHealthCheckGracePeriod

public void setHealthCheckGracePeriod(java.lang.Integer healthCheckGracePeriod)
Length of time in seconds after a new Amazon EC2 instance comes into service that Auto Scaling starts checking its health. During this time any health check failure for the that instance is ignored.

This is required if you are adding ELB health check. Frequently, new instances need to warm up, briefly, before they can pass a health check. To provide ample warm-up time, set the health check grace period of the group to match the expected startup period of your application.

Parameters:
healthCheckGracePeriod - Length of time in seconds after a new Amazon EC2 instance comes into service that Auto Scaling starts checking its health. During this time any health check failure for the that instance is ignored.

This is required if you are adding ELB health check. Frequently, new instances need to warm up, briefly, before they can pass a health check. To provide ample warm-up time, set the health check grace period of the group to match the expected startup period of your application.


withHealthCheckGracePeriod

public CreateAutoScalingGroupRequest withHealthCheckGracePeriod(java.lang.Integer healthCheckGracePeriod)
Length of time in seconds after a new Amazon EC2 instance comes into service that Auto Scaling starts checking its health. During this time any health check failure for the that instance is ignored.

This is required if you are adding ELB health check. Frequently, new instances need to warm up, briefly, before they can pass a health check. To provide ample warm-up time, set the health check grace period of the group to match the expected startup period of your application.

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

Parameters:
healthCheckGracePeriod - Length of time in seconds after a new Amazon EC2 instance comes into service that Auto Scaling starts checking its health. During this time any health check failure for the that instance is ignored.

This is required if you are adding ELB health check. Frequently, new instances need to warm up, briefly, before they can pass a health check. To provide ample warm-up time, set the health check grace period of the group to match the expected startup period of your application.

Returns:
A reference to this updated object so that method calls can be chained together.

getPlacementGroup

public java.lang.String getPlacementGroup()
Physical location of an existing cluster placement group into which you want to launch your instances. For information about cluster placement group, see Using Cluster Instances

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Physical location of an existing cluster placement group into which you want to launch your instances. For information about cluster placement group, see Using Cluster Instances

setPlacementGroup

public void setPlacementGroup(java.lang.String placementGroup)
Physical location of an existing cluster placement group into which you want to launch your instances. For information about cluster placement group, see Using Cluster Instances

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
placementGroup - Physical location of an existing cluster placement group into which you want to launch your instances. For information about cluster placement group, see Using Cluster Instances

withPlacementGroup

public CreateAutoScalingGroupRequest withPlacementGroup(java.lang.String placementGroup)
Physical location of an existing cluster placement group into which you want to launch your instances. For information about cluster placement group, see Using Cluster Instances

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
placementGroup - Physical location of an existing cluster placement group into which you want to launch your instances. For information about cluster placement group, see Using Cluster Instances
Returns:
A reference to this updated object so that method calls can be chained together.

getVPCZoneIdentifier

public java.lang.String getVPCZoneIdentifier()
A comma-separated list of subnet identifiers of Amazon Virtual Private Clouds (Amazon VPCs).

If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.

For information on launching your Auto Scaling group into Amazon VPC subnets, see Launch Auto Scaling Instances into Amazon VPC in the Auto Scaling Developer Guide .

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
A comma-separated list of subnet identifiers of Amazon Virtual Private Clouds (Amazon VPCs).

If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.

For information on launching your Auto Scaling group into Amazon VPC subnets, see Launch Auto Scaling Instances into Amazon VPC in the Auto Scaling Developer Guide .


setVPCZoneIdentifier

public void setVPCZoneIdentifier(java.lang.String vPCZoneIdentifier)
A comma-separated list of subnet identifiers of Amazon Virtual Private Clouds (Amazon VPCs).

If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.

For information on launching your Auto Scaling group into Amazon VPC subnets, see Launch Auto Scaling Instances into Amazon VPC in the Auto Scaling Developer Guide .

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
vPCZoneIdentifier - A comma-separated list of subnet identifiers of Amazon Virtual Private Clouds (Amazon VPCs).

If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.

For information on launching your Auto Scaling group into Amazon VPC subnets, see Launch Auto Scaling Instances into Amazon VPC in the Auto Scaling Developer Guide .


withVPCZoneIdentifier

public CreateAutoScalingGroupRequest withVPCZoneIdentifier(java.lang.String vPCZoneIdentifier)
A comma-separated list of subnet identifiers of Amazon Virtual Private Clouds (Amazon VPCs).

If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.

For information on launching your Auto Scaling group into Amazon VPC subnets, see Launch Auto Scaling Instances into Amazon VPC in the Auto Scaling Developer Guide .

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
vPCZoneIdentifier - A comma-separated list of subnet identifiers of Amazon Virtual Private Clouds (Amazon VPCs).

If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.

For information on launching your Auto Scaling group into Amazon VPC subnets, see Launch Auto Scaling Instances into Amazon VPC in the Auto Scaling Developer Guide .

Returns:
A reference to this updated object so that method calls can be chained together.

getTerminationPolicies

public java.util.List<java.lang.String> getTerminationPolicies()
A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information on configuring a termination policy for your Auto Scaling group, see Instance Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.

Returns:
A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information on configuring a termination policy for your Auto Scaling group, see Instance Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.


setTerminationPolicies

public void setTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information on configuring a termination policy for your Auto Scaling group, see Instance Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.

Parameters:
terminationPolicies - A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information on configuring a termination policy for your Auto Scaling group, see Instance Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.


withTerminationPolicies

public CreateAutoScalingGroupRequest withTerminationPolicies(java.lang.String... terminationPolicies)
A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information on configuring a termination policy for your Auto Scaling group, see Instance Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.

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

Parameters:
terminationPolicies - A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information on configuring a termination policy for your Auto Scaling group, see Instance Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.

Returns:
A reference to this updated object so that method calls can be chained together.

withTerminationPolicies

public CreateAutoScalingGroupRequest withTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information on configuring a termination policy for your Auto Scaling group, see Instance Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.

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

Parameters:
terminationPolicies - A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information on configuring a termination policy for your Auto Scaling group, see Instance Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.

Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public java.util.List<Tag> getTags()
The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. Valid values: key=value, value=value, propagate=true or false. Value and propagate are optional parameters.

For information about using tags, see Tag Your Auto Scaling Groups and Amazon EC2 Instances in the Auto Scaling Developer Guide.

Returns:
The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. Valid values: key=value, value=value, propagate=true or false. Value and propagate are optional parameters.

For information about using tags, see Tag Your Auto Scaling Groups and Amazon EC2 Instances in the Auto Scaling Developer Guide.


setTags

public void setTags(java.util.Collection<Tag> tags)
The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. Valid values: key=value, value=value, propagate=true or false. Value and propagate are optional parameters.

For information about using tags, see Tag Your Auto Scaling Groups and Amazon EC2 Instances in the Auto Scaling Developer Guide.

Parameters:
tags - The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. Valid values: key=value, value=value, propagate=true or false. Value and propagate are optional parameters.

For information about using tags, see Tag Your Auto Scaling Groups and Amazon EC2 Instances in the Auto Scaling Developer Guide.


withTags

public CreateAutoScalingGroupRequest withTags(Tag... tags)
The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. Valid values: key=value, value=value, propagate=true or false. Value and propagate are optional parameters.

For information about using tags, see Tag Your Auto Scaling Groups and Amazon EC2 Instances in the Auto Scaling Developer Guide.

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

Parameters:
tags - The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. Valid values: key=value, value=value, propagate=true or false. Value and propagate are optional parameters.

For information about using tags, see Tag Your Auto Scaling Groups and Amazon EC2 Instances in the Auto Scaling Developer Guide.

Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public CreateAutoScalingGroupRequest withTags(java.util.Collection<Tag> tags)
The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. Valid values: key=value, value=value, propagate=true or false. Value and propagate are optional parameters.

For information about using tags, see Tag Your Auto Scaling Groups and Amazon EC2 Instances in the Auto Scaling Developer Guide.

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

Parameters:
tags - The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. Valid values: key=value, value=value, propagate=true or false. Value and propagate are optional parameters.

For information about using tags, see Tag Your Auto Scaling Groups and Amazon EC2 Instances in the Auto Scaling Developer Guide.

Returns:
A reference to this updated object so that method calls can be chained together.

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.