public static interface AutoScalingGroup.Builder extends CopyableBuilder<AutoScalingGroup.Builder,AutoScalingGroup>
Modifier and Type | Method and 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(Collection<String> availabilityZones)
One or more Availability Zones for the group.
|
AutoScalingGroup.Builder |
availabilityZones(String... availabilityZones)
One or more Availability Zones for the group.
|
AutoScalingGroup.Builder |
createdTime(Instant 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(Consumer<EnabledMetric.Builder>... 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(Consumer<Instance.Builder>... 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(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
|
AutoScalingGroup.Builder |
loadBalancerNames(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(Consumer<SuspendedProcess.Builder>... 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(Consumer<TagDescription.Builder>... tags)
The tags for the group.
|
AutoScalingGroup.Builder |
tags(TagDescription... tags)
The tags for the group.
|
AutoScalingGroup.Builder |
targetGroupARNs(Collection<String> 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.
|
AutoScalingGroup.Builder |
terminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
|
AutoScalingGroup.Builder |
terminationPolicies(String... terminationPolicies)
The termination policies for the group.
|
AutoScalingGroup.Builder |
vpcZoneIdentifier(String vpcZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
|
copy
applyMutation, 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.
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.
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.
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.
instances
- The EC2 instances associated with the group.AutoScalingGroup.Builder instances(Consumer<Instance.Builder>... instances)
The EC2 instances associated with the group.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #instances(List)
.instances
- a consumer that will call methods on List.Builder
#instances(List)
AutoScalingGroup.Builder createdTime(Instant 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.
suspendedProcesses
- The suspended processes associated with the group.AutoScalingGroup.Builder suspendedProcesses(Consumer<SuspendedProcess.Builder>... suspendedProcesses)
The suspended processes associated with the group.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #suspendedProcesses(List)
.suspendedProcesses
- a consumer that will call methods on List.Builder
#suspendedProcesses(List)
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.
enabledMetrics
- The metrics enabled for the group.AutoScalingGroup.Builder enabledMetrics(Consumer<EnabledMetric.Builder>... enabledMetrics)
The metrics enabled for the group.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #enabledMetrics(List)
.enabledMetrics
- a consumer that will call methods on List.Builder
#enabledMetrics(List)
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.
tags
- The tags for the group.AutoScalingGroup.Builder tags(Consumer<TagDescription.Builder>... tags)
The tags for the group.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
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.
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.