public class CreateAutoScalingGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates an Auto Scaling group with the specified name and attributes.
If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.
For more information, see Auto Scaling Groups in the Auto Scaling Developer Guide.
Constructor and Description |
---|
CreateAutoScalingGroupRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the group.
|
java.util.List<java.lang.String> |
getAvailabilityZones()
One or more Availability Zones for the group.
|
java.lang.Integer |
getDefaultCooldown()
The amount of time, in seconds, after a scaling activity completes before
another scaling activity can start.
|
java.lang.Integer |
getDesiredCapacity()
The number of EC2 instances that should be running in the group.
|
java.lang.Integer |
getHealthCheckGracePeriod()
The amount of time, in seconds, that Auto Scaling waits before checking
the health status of an EC2 instance that has come into service.
|
java.lang.String |
getHealthCheckType()
The service to use for the health checks.
|
java.lang.String |
getInstanceId()
The ID of the instance used to create a launch configuration for the
group.
|
java.lang.String |
getLaunchConfigurationName()
The name of the launch configuration.
|
java.util.List<java.lang.String> |
getLoadBalancerNames()
One or more load balancers.
|
java.lang.Integer |
getMaxSize()
The maximum size of the group.
|
java.lang.Integer |
getMinSize()
The minimum size of the group.
|
java.lang.Boolean |
getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination
by Auto Scaling when scaling in.
|
java.lang.String |
getPlacementGroup()
The name of the placement group into which you'll launch your instances,
if any.
|
java.util.List<Tag> |
getTags()
One or more tags.
|
java.util.List<java.lang.String> |
getTerminationPolicies()
One or more termination policies used to select the instance to
terminate.
|
java.lang.String |
getVPCZoneIdentifier()
A comma-separated list of subnet identifiers for your virtual private
cloud (VPC).
|
int |
hashCode() |
java.lang.Boolean |
isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination
by Auto Scaling when scaling in.
|
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
void |
setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
One or more Availability Zones for the group.
|
void |
setDefaultCooldown(java.lang.Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before
another scaling activity can start.
|
void |
setDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the group.
|
void |
setHealthCheckGracePeriod(java.lang.Integer healthCheckGracePeriod)
The amount of time, in seconds, that Auto Scaling waits before checking
the health status of an EC2 instance that has come into service.
|
void |
setHealthCheckType(java.lang.String healthCheckType)
The service to use for the health checks.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance used to create a launch configuration for the
group.
|
void |
setLaunchConfigurationName(java.lang.String launchConfigurationName)
The name of the launch configuration.
|
void |
setLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancers.
|
void |
setMaxSize(java.lang.Integer maxSize)
The maximum size of the group.
|
void |
setMinSize(java.lang.Integer minSize)
The minimum size of the group.
|
void |
setNewInstancesProtectedFromScaleIn(java.lang.Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination
by Auto Scaling when scaling in.
|
void |
setPlacementGroup(java.lang.String placementGroup)
The name of the placement group into which you'll launch your instances,
if any.
|
void |
setTags(java.util.Collection<Tag> tags)
One or more tags.
|
void |
setTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
One or more termination policies used to select the instance to
terminate.
|
void |
setVPCZoneIdentifier(java.lang.String vPCZoneIdentifier)
A comma-separated list of subnet identifiers for your virtual private
cloud (VPC).
|
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 group.
|
CreateAutoScalingGroupRequest |
withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
One or more Availability Zones for the group.
|
CreateAutoScalingGroupRequest |
withAvailabilityZones(java.lang.String... availabilityZones)
One or more Availability Zones for the group.
|
CreateAutoScalingGroupRequest |
withDefaultCooldown(java.lang.Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before
another scaling activity can start.
|
CreateAutoScalingGroupRequest |
withDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the group.
|
CreateAutoScalingGroupRequest |
withHealthCheckGracePeriod(java.lang.Integer healthCheckGracePeriod)
The amount of time, in seconds, that Auto Scaling waits before checking
the health status of an EC2 instance that has come into service.
|
CreateAutoScalingGroupRequest |
withHealthCheckType(java.lang.String healthCheckType)
The service to use for the health checks.
|
CreateAutoScalingGroupRequest |
withInstanceId(java.lang.String instanceId)
The ID of the instance used to create a launch configuration for the
group.
|
CreateAutoScalingGroupRequest |
withLaunchConfigurationName(java.lang.String launchConfigurationName)
The name of the launch configuration.
|
CreateAutoScalingGroupRequest |
withLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancers.
|
CreateAutoScalingGroupRequest |
withLoadBalancerNames(java.lang.String... loadBalancerNames)
One or more load balancers.
|
CreateAutoScalingGroupRequest |
withMaxSize(java.lang.Integer maxSize)
The maximum size of the group.
|
CreateAutoScalingGroupRequest |
withMinSize(java.lang.Integer minSize)
The minimum size of the group.
|
CreateAutoScalingGroupRequest |
withNewInstancesProtectedFromScaleIn(java.lang.Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination
by Auto Scaling when scaling in.
|
CreateAutoScalingGroupRequest |
withPlacementGroup(java.lang.String placementGroup)
The name of the placement group into which you'll launch your instances,
if any.
|
CreateAutoScalingGroupRequest |
withTags(java.util.Collection<Tag> tags)
One or more tags.
|
CreateAutoScalingGroupRequest |
withTags(Tag... tags)
One or more tags.
|
CreateAutoScalingGroupRequest |
withTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
One or more termination policies used to select the instance to
terminate.
|
CreateAutoScalingGroupRequest |
withTerminationPolicies(java.lang.String... terminationPolicies)
One or more termination policies used to select the instance to
terminate.
|
CreateAutoScalingGroupRequest |
withVPCZoneIdentifier(java.lang.String vPCZoneIdentifier)
A comma-separated list of subnet identifiers for your virtual private
cloud (VPC).
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getAutoScalingGroupName()
The name of the group. This name must be unique within the scope of your AWS account.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The name of the group. This name must be unique within the scope of your AWS account.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group. This name must be unique within the scope of your AWS account.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group. This name must be unique within the scope of your AWS account.
public CreateAutoScalingGroupRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group. This name must be unique within the scope of your AWS account.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group. This name must be unique within the scope of your AWS account.
public java.lang.String getLaunchConfigurationName()
The name of the launch configuration. Alternatively, specify an EC2 instance instead of a launch configuration.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
The name of the launch configuration. Alternatively, specify an EC2 instance instead of a launch configuration.
public void setLaunchConfigurationName(java.lang.String launchConfigurationName)
The name of the launch configuration. Alternatively, specify an EC2 instance instead of a launch configuration.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
launchConfigurationName
- The name of the launch configuration. Alternatively, specify an EC2 instance instead of a launch configuration.
public CreateAutoScalingGroupRequest withLaunchConfigurationName(java.lang.String launchConfigurationName)
The name of the launch configuration. Alternatively, specify an EC2 instance instead of a launch configuration.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
launchConfigurationName
- The name of the launch configuration. Alternatively, specify an EC2 instance instead of a launch configuration.
public java.lang.String getInstanceId()
The ID of the instance used to create a launch configuration for the group. Alternatively, specify a launch configuration instead of an EC2 instance.
When you specify an ID of an instance, Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, with the exception of the block device mapping.
For more information, see Create an Auto Scaling Group Using an EC2 Instance in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
The ID of the instance used to create a launch configuration for the group. Alternatively, specify a launch configuration instead of an EC2 instance.
When you specify an ID of an instance, Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, with the exception of the block device mapping.
For more information, see Create an Auto Scaling Group Using an EC2 Instance in the Auto Scaling Developer Guide.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance used to create a launch configuration for the group. Alternatively, specify a launch configuration instead of an EC2 instance.
When you specify an ID of an instance, Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, with the exception of the block device mapping.
For more information, see Create an Auto Scaling Group Using an EC2 Instance in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The ID of the instance used to create a launch configuration for the group. Alternatively, specify a launch configuration instead of an EC2 instance.
When you specify an ID of an instance, Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, with the exception of the block device mapping.
For more information, see Create an Auto Scaling Group Using an EC2 Instance in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withInstanceId(java.lang.String instanceId)
The ID of the instance used to create a launch configuration for the group. Alternatively, specify a launch configuration instead of an EC2 instance.
When you specify an ID of an instance, Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, with the exception of the block device mapping.
For more information, see Create an Auto Scaling Group Using an 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 - 19
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The ID of the instance used to create a launch configuration for the group. Alternatively, specify a launch configuration instead of an EC2 instance.
When you specify an ID of an instance, Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, with the exception of the block device mapping.
For more information, see Create an Auto Scaling Group Using an EC2 Instance in the Auto Scaling Developer Guide.
public java.lang.Integer getMinSize()
The minimum size of the group.
The minimum size of the group.
public void setMinSize(java.lang.Integer minSize)
The minimum size of the group.
minSize
- The minimum size of the group.
public CreateAutoScalingGroupRequest withMinSize(java.lang.Integer minSize)
The minimum size of the group.
Returns a reference to this object so that method calls can be chained together.
minSize
- The minimum size of the group.
public java.lang.Integer getMaxSize()
The maximum size of the group.
The maximum size of the group.
public void setMaxSize(java.lang.Integer maxSize)
The maximum size of the group.
maxSize
- The maximum size of the group.
public CreateAutoScalingGroupRequest withMaxSize(java.lang.Integer maxSize)
The maximum size of the group.
Returns a reference to this object so that method calls can be chained together.
maxSize
- The maximum size of the group.
public java.lang.Integer getDesiredCapacity()
The number of EC2 instances that should be running in the group. This number must be greater than or equal to the minimum size of the group and less than or equal to the maximum size of the group.
The number of EC2 instances that should be running in the group. This number must be greater than or equal to the minimum size of the group and less than or equal to the maximum size of the group.
public void setDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the group. This number must be greater than or equal to the minimum size of the group and less than or equal to the maximum size of the group.
desiredCapacity
- The number of EC2 instances that should be running in the group. This number must be greater than or equal to the minimum size of the group and less than or equal to the maximum size of the group.
public CreateAutoScalingGroupRequest withDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the group. This number must be greater than or equal to the minimum size of the group and less than or equal to the maximum size of the group.
Returns a reference to this object so that method calls can be chained together.
desiredCapacity
- The number of EC2 instances that should be running in the group. This number must be greater than or equal to the minimum size of the group and less than or equal to the maximum size of the group.
public java.lang.Integer getDefaultCooldown()
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.
For more information, see Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.
For more information, see Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
public void setDefaultCooldown(java.lang.Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.
For more information, see Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
defaultCooldown
- The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.
For more information, see Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withDefaultCooldown(java.lang.Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.
For more information, see Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
defaultCooldown
- The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.
For more information, see Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
public java.util.List<java.lang.String> getAvailabilityZones()
One or more Availability Zones for the group. This parameter is optional if you specify one or more subnets.
One or more Availability Zones for the group. This parameter is optional if you specify one or more subnets.
public void setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
One or more Availability Zones for the group. This parameter is optional if you specify one or more subnets.
availabilityZones
- One or more Availability Zones for the group. This parameter is optional if you specify one or more subnets.
public CreateAutoScalingGroupRequest withAvailabilityZones(java.lang.String... availabilityZones)
One or more Availability Zones for the group. This parameter is optional if you specify one or more subnets.
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- One or more Availability Zones for the group. This parameter is optional if you specify one or more subnets.
public CreateAutoScalingGroupRequest withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
One or more Availability Zones for the group. This parameter is optional if you specify one or more subnets.
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- One or more Availability Zones for the group. This parameter is optional if you specify one or more subnets.
public java.util.List<java.lang.String> getLoadBalancerNames()
One or more load balancers.
For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling Developer Guide.
One or more load balancers.
For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling Developer Guide.
public void setLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancers.
For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling Developer Guide.
loadBalancerNames
- One or more load balancers.
For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withLoadBalancerNames(java.lang.String... loadBalancerNames)
One or more load balancers.
For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
loadBalancerNames
- One or more load balancers.
For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancers.
For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
loadBalancerNames
- One or more load balancers.
For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling Developer Guide.
public java.lang.String getHealthCheckType()
The service to use for the health checks. The valid values are
EC2
and ELB
.
By default, health checks use Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Checks in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 32
Pattern: [ --�𐀀-\r\n\t]*
The service to use for the health checks. The valid values are
EC2
and ELB
.
By default, health checks use Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Checks in the Auto Scaling Developer Guide.
public void setHealthCheckType(java.lang.String healthCheckType)
The service to use for the health checks. The valid values are
EC2
and ELB
.
By default, health checks use Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Checks in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 32
Pattern: [ --�𐀀-\r\n\t]*
healthCheckType
-
The service to use for the health checks. The valid values are
EC2
and ELB
.
By default, health checks use Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Checks in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withHealthCheckType(java.lang.String healthCheckType)
The service to use for the health checks. The valid values are
EC2
and ELB
.
By default, health checks use Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Checks in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: [ --�𐀀-\r\n\t]*
healthCheckType
-
The service to use for the health checks. The valid values are
EC2
and ELB
.
By default, health checks use Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Checks in the Auto Scaling Developer Guide.
public java.lang.Integer getHealthCheckGracePeriod()
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. During this time, any health check failures for the instance are ignored. The default is 300.
This parameter is required if you are adding an ELB
health
check.
For more information, see Health Checks in the Auto Scaling Developer Guide.
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. During this time, any health check failures for the instance are ignored. The default is 300.
This parameter is required if you are adding an ELB
health check.
For more information, see Health Checks in the Auto Scaling Developer Guide.
public void setHealthCheckGracePeriod(java.lang.Integer healthCheckGracePeriod)
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. During this time, any health check failures for the instance are ignored. The default is 300.
This parameter is required if you are adding an ELB
health
check.
For more information, see Health Checks in the Auto Scaling Developer Guide.
healthCheckGracePeriod
- The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. During this time, any health check failures for the instance are ignored. The default is 300.
This parameter is required if you are adding an
ELB
health check.
For more information, see Health Checks in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withHealthCheckGracePeriod(java.lang.Integer healthCheckGracePeriod)
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. During this time, any health check failures for the instance are ignored. The default is 300.
This parameter is required if you are adding an ELB
health
check.
For more information, see Health Checks in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
healthCheckGracePeriod
- The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. During this time, any health check failures for the instance are ignored. The default is 300.
This parameter is required if you are adding an
ELB
health check.
For more information, see Health Checks in the Auto Scaling Developer Guide.
public java.lang.String getPlacementGroup()
The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
public void setPlacementGroup(java.lang.String placementGroup)
The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
placementGroup
- The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
public CreateAutoScalingGroupRequest withPlacementGroup(java.lang.String placementGroup)
The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
placementGroup
- The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
public java.lang.String getVPCZoneIdentifier()
A comma-separated list of subnet identifiers for your virtual private cloud (VPC).
If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
A comma-separated list of subnet identifiers for your virtual private cloud (VPC).
If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
public void setVPCZoneIdentifier(java.lang.String vPCZoneIdentifier)
A comma-separated list of subnet identifiers for your virtual private cloud (VPC).
If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
vPCZoneIdentifier
- A comma-separated list of subnet identifiers for your virtual private cloud (VPC).
If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withVPCZoneIdentifier(java.lang.String vPCZoneIdentifier)
A comma-separated list of subnet identifiers for your virtual private cloud (VPC).
If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.
For more information, see Launching Auto Scaling Instances in a 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: [ --�𐀀-\r\n\t]*
vPCZoneIdentifier
- A comma-separated list of subnet identifiers for your virtual private cloud (VPC).
If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.
For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
public java.util.List<java.lang.String> getTerminationPolicies()
One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.
For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.
For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
public void setTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.
For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
terminationPolicies
- One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.
For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withTerminationPolicies(java.lang.String... terminationPolicies)
One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.
For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
terminationPolicies
- One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.
For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.
For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
terminationPolicies
- One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.
For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
public java.lang.Boolean isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
public java.lang.Boolean getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
public void setNewInstancesProtectedFromScaleIn(java.lang.Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
newInstancesProtectedFromScaleIn
- Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
public CreateAutoScalingGroupRequest withNewInstancesProtectedFromScaleIn(java.lang.Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
Returns a reference to this object so that method calls can be chained together.
newInstancesProtectedFromScaleIn
- Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
public java.util.List<Tag> getTags()
One or more tags.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
One or more tags.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
public void setTags(java.util.Collection<Tag> tags)
One or more tags.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
tags
- One or more tags.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withTags(Tag... tags)
One or more tags.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
tags
- One or more tags.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
public CreateAutoScalingGroupRequest withTags(java.util.Collection<Tag> tags)
One or more tags.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
tags
- One or more tags.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.