Class UpdateAutoScalingGroupRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.autoscaling.model.UpdateAutoScalingGroupRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class UpdateAutoScalingGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description UpdateAutoScalingGroupRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateAutoScalingGroupRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAutoScalingGroupName()The name of the Auto Scaling group.List<String>getAvailabilityZones()One or more Availability Zones for the group.IntegergetDefaultCooldown()The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.IntegergetDesiredCapacity()The number of EC2 instances that should be running in the Auto Scaling group.IntegergetHealthCheckGracePeriod()The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service.StringgetHealthCheckType()The service to use for the health checks.StringgetLaunchConfigurationName()The name of the launch configuration.IntegergetMaxSize()The maximum size of the Auto Scaling group.IntegergetMinSize()The minimum size of the Auto Scaling group.BooleangetNewInstancesProtectedFromScaleIn()Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.StringgetPlacementGroup()The name of the placement group into which you'll launch your instances, if any.List<String>getTerminationPolicies()A standalone termination policy or a list of termination policies used to select the instance to terminate.StringgetVPCZoneIdentifier()The ID of the subnet, if you are launching into a VPC.inthashCode()BooleanisNewInstancesProtectedFromScaleIn()Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.voidsetAutoScalingGroupName(String autoScalingGroupName)The name of the Auto Scaling group.voidsetAvailabilityZones(Collection<String> availabilityZones)One or more Availability Zones for the group.voidsetDefaultCooldown(Integer defaultCooldown)The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.voidsetDesiredCapacity(Integer desiredCapacity)The number of EC2 instances that should be running in the Auto Scaling group.voidsetHealthCheckGracePeriod(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.voidsetHealthCheckType(String healthCheckType)The service to use for the health checks.voidsetLaunchConfigurationName(String launchConfigurationName)The name of the launch configuration.voidsetMaxSize(Integer maxSize)The maximum size of the Auto Scaling group.voidsetMinSize(Integer minSize)The minimum size of the Auto Scaling group.voidsetNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.voidsetPlacementGroup(String placementGroup)The name of the placement group into which you'll launch your instances, if any.voidsetTerminationPolicies(Collection<String> terminationPolicies)A standalone termination policy or a list of termination policies used to select the instance to terminate.voidsetVPCZoneIdentifier(String vPCZoneIdentifier)The ID of the subnet, if you are launching into a VPC.StringtoString()Returns a string representation of this object; useful for testing and debugging.UpdateAutoScalingGroupRequestwithAutoScalingGroupName(String autoScalingGroupName)The name of the Auto Scaling group.UpdateAutoScalingGroupRequestwithAvailabilityZones(String... availabilityZones)One or more Availability Zones for the group.UpdateAutoScalingGroupRequestwithAvailabilityZones(Collection<String> availabilityZones)One or more Availability Zones for the group.UpdateAutoScalingGroupRequestwithDefaultCooldown(Integer defaultCooldown)The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.UpdateAutoScalingGroupRequestwithDesiredCapacity(Integer desiredCapacity)The number of EC2 instances that should be running in the Auto Scaling group.UpdateAutoScalingGroupRequestwithHealthCheckGracePeriod(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.UpdateAutoScalingGroupRequestwithHealthCheckType(String healthCheckType)The service to use for the health checks.UpdateAutoScalingGroupRequestwithLaunchConfigurationName(String launchConfigurationName)The name of the launch configuration.UpdateAutoScalingGroupRequestwithMaxSize(Integer maxSize)The maximum size of the Auto Scaling group.UpdateAutoScalingGroupRequestwithMinSize(Integer minSize)The minimum size of the Auto Scaling group.UpdateAutoScalingGroupRequestwithNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.UpdateAutoScalingGroupRequestwithPlacementGroup(String placementGroup)The name of the placement group into which you'll launch your instances, if any.UpdateAutoScalingGroupRequestwithTerminationPolicies(String... terminationPolicies)A standalone termination policy or a list of termination policies used to select the instance to terminate.UpdateAutoScalingGroupRequestwithTerminationPolicies(Collection<String> terminationPolicies)A standalone termination policy or a list of termination policies used to select the instance to terminate.UpdateAutoScalingGroupRequestwithVPCZoneIdentifier(String vPCZoneIdentifier)The ID of the subnet, if you are launching into a VPC.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setAutoScalingGroupName
public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
- Parameters:
autoScalingGroupName- The name of the Auto Scaling group.
-
getAutoScalingGroupName
public String getAutoScalingGroupName()
The name of the Auto Scaling group.
- Returns:
- The name of the Auto Scaling group.
-
withAutoScalingGroupName
public UpdateAutoScalingGroupRequest withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
- Parameters:
autoScalingGroupName- The name of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLaunchConfigurationName
public void setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
- Parameters:
launchConfigurationName- The name of the launch configuration.
-
getLaunchConfigurationName
public String getLaunchConfigurationName()
The name of the launch configuration.
- Returns:
- The name of the launch configuration.
-
withLaunchConfigurationName
public UpdateAutoScalingGroupRequest withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
- Parameters:
launchConfigurationName- The name of the launch configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMinSize
public void setMinSize(Integer minSize)
The minimum size of the Auto Scaling group.
- Parameters:
minSize- The minimum size of the Auto Scaling group.
-
getMinSize
public Integer getMinSize()
The minimum size of the Auto Scaling group.
- Returns:
- The minimum size of the Auto Scaling group.
-
withMinSize
public UpdateAutoScalingGroupRequest withMinSize(Integer minSize)
The minimum size of the Auto Scaling group.
- Parameters:
minSize- The minimum size of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxSize
public void setMaxSize(Integer maxSize)
The maximum size of the Auto Scaling group.
- Parameters:
maxSize- The maximum size of the Auto Scaling group.
-
getMaxSize
public Integer getMaxSize()
The maximum size of the Auto Scaling group.
- Returns:
- The maximum size of the Auto Scaling group.
-
withMaxSize
public UpdateAutoScalingGroupRequest withMaxSize(Integer maxSize)
The maximum size of the Auto Scaling group.
- Parameters:
maxSize- The maximum size of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDesiredCapacity
public void setDesiredCapacity(Integer desiredCapacity)
The number of EC2 instances that should be running in the Auto Scaling 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.
- Parameters:
desiredCapacity- The number of EC2 instances that should be running in the Auto Scaling 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.
-
getDesiredCapacity
public Integer getDesiredCapacity()
The number of EC2 instances that should be running in the Auto Scaling 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:
- The number of EC2 instances that should be running in the Auto Scaling 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.
-
withDesiredCapacity
public UpdateAutoScalingGroupRequest withDesiredCapacity(Integer desiredCapacity)
The number of EC2 instances that should be running in the Auto Scaling 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.
- Parameters:
desiredCapacity- The number of EC2 instances that should be running in the Auto Scaling 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:
- Returns a reference to this object so that method calls can be chained together.
-
setDefaultCooldown
public void setDefaultCooldown(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.
- Parameters:
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.
-
getDefaultCooldown
public 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.
- Returns:
- 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.
-
withDefaultCooldown
public UpdateAutoScalingGroupRequest withDefaultCooldown(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
getAvailabilityZones
public List<String> getAvailabilityZones()
One or more Availability Zones for the group.
- Returns:
- One or more Availability Zones for the group.
-
setAvailabilityZones
public void setAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
- Parameters:
availabilityZones- One or more Availability Zones for the group.
-
withAvailabilityZones
public UpdateAutoScalingGroupRequest withAvailabilityZones(String... availabilityZones)
One or more Availability Zones for the group.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)orwithAvailabilityZones(java.util.Collection)if you want to override the existing values.- Parameters:
availabilityZones- One or more Availability Zones for the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAvailabilityZones
public UpdateAutoScalingGroupRequest withAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
- Parameters:
availabilityZones- One or more Availability Zones for the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHealthCheckType
public void setHealthCheckType(String healthCheckType)
The service to use for the health checks. The valid values are
EC2andELB.- Parameters:
healthCheckType- The service to use for the health checks. The valid values areEC2andELB.
-
getHealthCheckType
public String getHealthCheckType()
The service to use for the health checks. The valid values are
EC2andELB.- Returns:
- The service to use for the health checks. The valid values are
EC2andELB.
-
withHealthCheckType
public UpdateAutoScalingGroupRequest withHealthCheckType(String healthCheckType)
The service to use for the health checks. The valid values are
EC2andELB.- Parameters:
healthCheckType- The service to use for the health checks. The valid values areEC2andELB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHealthCheckGracePeriod
public void setHealthCheckGracePeriod(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. The default is 300.
For more information, see Health Checks in the Auto Scaling Developer Guide.
- Parameters:
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. The default is 300.For more information, see Health Checks in the Auto Scaling Developer Guide.
-
getHealthCheckGracePeriod
public 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. The default is 300.
For more information, see Health Checks in the Auto Scaling Developer Guide.
- Returns:
- The amount of time, in seconds, that Auto Scaling waits before
checking the health status of an EC2 instance that has come into
service. The default is 300.
For more information, see Health Checks in the Auto Scaling Developer Guide.
-
withHealthCheckGracePeriod
public UpdateAutoScalingGroupRequest withHealthCheckGracePeriod(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. The default is 300.
For more information, see Health Checks in the Auto Scaling Developer Guide.
- Parameters:
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. The default is 300.For more information, see Health Checks in the Auto Scaling Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlacementGroup
public void setPlacementGroup(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.
- Parameters:
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.
-
getPlacementGroup
public 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.
- Returns:
- 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.
-
withPlacementGroup
public UpdateAutoScalingGroupRequest withPlacementGroup(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
setVPCZoneIdentifier
public void setVPCZoneIdentifier(String vPCZoneIdentifier)
The ID of the subnet, if you are launching into a VPC. You can specify several subnets in a comma-separated list.
When you specify
VPCZoneIdentifierwithAvailabilityZones, ensure that the subnets' Availability Zones match the values you specify forAvailabilityZones.For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
- Parameters:
vPCZoneIdentifier- The ID of the subnet, if you are launching into a VPC. You can specify several subnets in a comma-separated list.When you specify
VPCZoneIdentifierwithAvailabilityZones, ensure that the subnets' Availability Zones match the values you specify forAvailabilityZones.For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
-
getVPCZoneIdentifier
public String getVPCZoneIdentifier()
The ID of the subnet, if you are launching into a VPC. You can specify several subnets in a comma-separated list.
When you specify
VPCZoneIdentifierwithAvailabilityZones, ensure that the subnets' Availability Zones match the values you specify forAvailabilityZones.For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
- Returns:
- The ID of the subnet, if you are launching into a VPC. You can
specify several subnets in a comma-separated list.
When you specify
VPCZoneIdentifierwithAvailabilityZones, ensure that the subnets' Availability Zones match the values you specify forAvailabilityZones.For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
-
withVPCZoneIdentifier
public UpdateAutoScalingGroupRequest withVPCZoneIdentifier(String vPCZoneIdentifier)
The ID of the subnet, if you are launching into a VPC. You can specify several subnets in a comma-separated list.
When you specify
VPCZoneIdentifierwithAvailabilityZones, ensure that the subnets' Availability Zones match the values you specify forAvailabilityZones.For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
- Parameters:
vPCZoneIdentifier- The ID of the subnet, if you are launching into a VPC. You can specify several subnets in a comma-separated list.When you specify
VPCZoneIdentifierwithAvailabilityZones, ensure that the subnets' Availability Zones match the values you specify forAvailabilityZones.For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTerminationPolicies
public List<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, see Controlling Which Instances Auto Scaling Terminates During Scale In 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, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
-
setTerminationPolicies
public void setTerminationPolicies(Collection<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, see Controlling Which Instances Auto Scaling Terminates During Scale In 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, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
-
withTerminationPolicies
public UpdateAutoScalingGroupRequest withTerminationPolicies(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, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
NOTE: This method appends the values to the existing list (if any). Use
setTerminationPolicies(java.util.Collection)orwithTerminationPolicies(java.util.Collection)if you want to override the existing values.- 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, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTerminationPolicies
public UpdateAutoScalingGroupRequest withTerminationPolicies(Collection<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, see Controlling Which Instances Auto Scaling Terminates During Scale In 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, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNewInstancesProtectedFromScaleIn
public void setNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
- Parameters:
newInstancesProtectedFromScaleIn- Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
-
getNewInstancesProtectedFromScaleIn
public Boolean getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
- Returns:
- Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
-
withNewInstancesProtectedFromScaleIn
public UpdateAutoScalingGroupRequest withNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
- Parameters:
newInstancesProtectedFromScaleIn- Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isNewInstancesProtectedFromScaleIn
public Boolean isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
- Returns:
- Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UpdateAutoScalingGroupRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-