CopyableBuilder<AutoScalingGroup.Builder,AutoScalingGroup>
, SdkBuilder<AutoScalingGroup.Builder,AutoScalingGroup>
public static interface AutoScalingGroup.Builder extends CopyableBuilder<AutoScalingGroup.Builder,AutoScalingGroup>
Modifier and Type | Method | Description |
---|---|---|
AutoScalingGroup.Builder |
autoScalingGroupARN(String autoScalingGroupARN) |
The Amazon Resource Name (ARN) of the group.
|
AutoScalingGroup.Builder |
autoScalingGroupName(String autoScalingGroupName) |
The name of the group.
|
AutoScalingGroup.Builder |
availabilityZones(String... availabilityZones) |
One or more Availability Zones for the group.
|
AutoScalingGroup.Builder |
availabilityZones(Collection<String> availabilityZones) |
One or more Availability Zones for the group.
|
AutoScalingGroup.Builder |
createdTime(Date createdTime) |
The date and time the group was created.
|
AutoScalingGroup.Builder |
defaultCooldown(Integer defaultCooldown) |
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
|
AutoScalingGroup.Builder |
desiredCapacity(Integer desiredCapacity) |
The desired size of the group.
|
AutoScalingGroup.Builder |
enabledMetrics(Collection<EnabledMetric> enabledMetrics) |
The metrics enabled for the group.
|
AutoScalingGroup.Builder |
enabledMetrics(EnabledMetric... enabledMetrics) |
The metrics enabled for the group.
|
AutoScalingGroup.Builder |
healthCheckGracePeriod(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.
|
AutoScalingGroup.Builder |
healthCheckType(String healthCheckType) |
The service to use for the health checks.
|
AutoScalingGroup.Builder |
instances(Collection<Instance> instances) |
The EC2 instances associated with the group.
|
AutoScalingGroup.Builder |
instances(Instance... instances) |
The EC2 instances associated with the group.
|
AutoScalingGroup.Builder |
launchConfigurationName(String launchConfigurationName) |
The name of the associated launch configuration.
|
AutoScalingGroup.Builder |
loadBalancerNames(String... loadBalancerNames) |
One or more load balancers associated with the group.
|
AutoScalingGroup.Builder |
loadBalancerNames(Collection<String> loadBalancerNames) |
One or more load balancers associated with the group.
|
AutoScalingGroup.Builder |
maxSize(Integer maxSize) |
The maximum size of the group.
|
AutoScalingGroup.Builder |
minSize(Integer minSize) |
The minimum size of the group.
|
AutoScalingGroup.Builder |
newInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn) |
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
|
AutoScalingGroup.Builder |
placementGroup(String placementGroup) |
The name of the placement group into which you'll launch your instances, if any.
|
AutoScalingGroup.Builder |
status(String status) |
The current state of the group when DeleteAutoScalingGroup is in progress.
|
AutoScalingGroup.Builder |
suspendedProcesses(Collection<SuspendedProcess> suspendedProcesses) |
The suspended processes associated with the group.
|
AutoScalingGroup.Builder |
suspendedProcesses(SuspendedProcess... suspendedProcesses) |
The suspended processes associated with the group.
|
AutoScalingGroup.Builder |
tags(Collection<TagDescription> tags) |
The tags for the group.
|
AutoScalingGroup.Builder |
tags(TagDescription... tags) |
The tags for the group.
|
AutoScalingGroup.Builder |
targetGroupARNs(String... targetGroupARNs) |
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
AutoScalingGroup.Builder |
targetGroupARNs(Collection<String> targetGroupARNs) |
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
AutoScalingGroup.Builder |
terminationPolicies(String... terminationPolicies) |
The termination policies for the group.
|
AutoScalingGroup.Builder |
terminationPolicies(Collection<String> terminationPolicies) |
The termination policies for the group.
|
AutoScalingGroup.Builder |
vpcZoneIdentifier(String vpcZoneIdentifier) |
One or more subnet IDs, if applicable, separated by commas.
|
copy
apply, build
AutoScalingGroup.Builder autoScalingGroupName(String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.AutoScalingGroup.Builder autoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the group.AutoScalingGroup.Builder launchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
launchConfigurationName
- The name of the associated launch configuration.AutoScalingGroup.Builder minSize(Integer minSize)
The minimum size of the group.
minSize
- The minimum size of the group.AutoScalingGroup.Builder maxSize(Integer maxSize)
The maximum size of the group.
maxSize
- The maximum size of the group.AutoScalingGroup.Builder desiredCapacity(Integer desiredCapacity)
The desired size of the group.
desiredCapacity
- The desired size of the group.AutoScalingGroup.Builder defaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
defaultCooldown
- The amount of time, in seconds, after a scaling activity completes before another scaling activity can
start.AutoScalingGroup.Builder availabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
availabilityZones
- One or more Availability Zones for the group.AutoScalingGroup.Builder availabilityZones(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)
or #withAvailabilityZones(java.util.Collection)
if you want to override the existing values.
availabilityZones
- One or more Availability Zones for the group.AutoScalingGroup.Builder loadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
loadBalancerNames
- One or more load balancers associated with the group.AutoScalingGroup.Builder loadBalancerNames(String... loadBalancerNames)
One or more load balancers associated with the group.
NOTE: This method appends the values to the existing list (if any). Use
#setLoadBalancerNames(java.util.Collection)
or #withLoadBalancerNames(java.util.Collection)
if you want to override the existing values.
loadBalancerNames
- One or more load balancers associated with the group.AutoScalingGroup.Builder targetGroupARNs(Collection<String> targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
targetGroupARNs
- The Amazon Resource Names (ARN) of the target groups for your load balancer.AutoScalingGroup.Builder targetGroupARNs(String... targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
NOTE: This method appends the values to the existing list (if any). Use
#setTargetGroupARNs(java.util.Collection)
or #withTargetGroupARNs(java.util.Collection)
if
you want to override the existing values.
targetGroupARNs
- The Amazon Resource Names (ARN) of the target groups for your load balancer.AutoScalingGroup.Builder healthCheckType(String healthCheckType)
The service to use for the health checks. The valid values are EC2
and ELB
.
healthCheckType
- The service to use for the health checks. The valid values are EC2
and ELB
.AutoScalingGroup.Builder healthCheckGracePeriod(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.
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.AutoScalingGroup.Builder instances(Collection<Instance> instances)
The EC2 instances associated with the group.
instances
- The EC2 instances associated with the group.AutoScalingGroup.Builder instances(Instance... instances)
The EC2 instances associated with the group.
NOTE: This method appends the values to the existing list (if any). Use
#setInstances(java.util.Collection)
or #withInstances(java.util.Collection)
if you want to
override the existing values.
instances
- The EC2 instances associated with the group.AutoScalingGroup.Builder createdTime(Date createdTime)
The date and time the group was created.
createdTime
- The date and time the group was created.AutoScalingGroup.Builder suspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
suspendedProcesses
- The suspended processes associated with the group.AutoScalingGroup.Builder suspendedProcesses(SuspendedProcess... suspendedProcesses)
The suspended processes associated with the group.
NOTE: This method appends the values to the existing list (if any). Use
#setSuspendedProcesses(java.util.Collection)
or #withSuspendedProcesses(java.util.Collection)
if you want to override the existing values.
suspendedProcesses
- The suspended processes associated with the group.AutoScalingGroup.Builder placementGroup(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.
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.AutoScalingGroup.Builder vpcZoneIdentifier(String vpcZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the
Availability Zones of the subnets match the values for AvailabilityZones
.
vpcZoneIdentifier
- One or more subnet IDs, if applicable, separated by commas.
If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the
Availability Zones of the subnets match the values for AvailabilityZones
.
AutoScalingGroup.Builder enabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
enabledMetrics
- The metrics enabled for the group.AutoScalingGroup.Builder enabledMetrics(EnabledMetric... enabledMetrics)
The metrics enabled for the group.
NOTE: This method appends the values to the existing list (if any). Use
#setEnabledMetrics(java.util.Collection)
or #withEnabledMetrics(java.util.Collection)
if you
want to override the existing values.
enabledMetrics
- The metrics enabled for the group.AutoScalingGroup.Builder status(String status)
The current state of the group when DeleteAutoScalingGroup is in progress.
status
- The current state of the group when DeleteAutoScalingGroup is in progress.AutoScalingGroup.Builder tags(Collection<TagDescription> tags)
The tags for the group.
tags
- The tags for the group.AutoScalingGroup.Builder tags(TagDescription... tags)
The tags for the group.
NOTE: This method appends the values to the existing list (if any). Use
#setTags(java.util.Collection)
or #withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags for the group.AutoScalingGroup.Builder terminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
terminationPolicies
- The termination policies for the group.AutoScalingGroup.Builder terminationPolicies(String... terminationPolicies)
The termination policies for the group.
NOTE: This method appends the values to the existing list (if any). Use
#setTerminationPolicies(java.util.Collection)
or
#withTerminationPolicies(java.util.Collection)
if you want to override the existing values.
terminationPolicies
- The termination policies for the group.AutoScalingGroup.Builder newInstancesProtectedFromScaleIn(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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.