CopyableBuilder<SetInstanceProtectionRequest.Builder,SetInstanceProtectionRequest>
, SdkBuilder<SetInstanceProtectionRequest.Builder,SetInstanceProtectionRequest>
public static interface SetInstanceProtectionRequest.Builder extends CopyableBuilder<SetInstanceProtectionRequest.Builder,SetInstanceProtectionRequest>
Modifier and Type | Method | Description |
---|---|---|
SetInstanceProtectionRequest.Builder |
autoScalingGroupName(String autoScalingGroupName) |
The name of the group.
|
SetInstanceProtectionRequest.Builder |
instanceIds(String... instanceIds) |
One or more instance IDs.
|
SetInstanceProtectionRequest.Builder |
instanceIds(Collection<String> instanceIds) |
One or more instance IDs.
|
SetInstanceProtectionRequest.Builder |
protectedFromScaleIn(Boolean protectedFromScaleIn) |
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
|
copy
apply, build
SetInstanceProtectionRequest.Builder instanceIds(Collection<String> instanceIds)
One or more instance IDs.
instanceIds
- One or more instance IDs.SetInstanceProtectionRequest.Builder instanceIds(String... instanceIds)
One or more instance IDs.
NOTE: This method appends the values to the existing list (if any). Use
#setInstanceIds(java.util.Collection)
or #withInstanceIds(java.util.Collection)
if you want
to override the existing values.
instanceIds
- One or more instance IDs.SetInstanceProtectionRequest.Builder autoScalingGroupName(String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.SetInstanceProtectionRequest.Builder protectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
protectedFromScaleIn
- Indicates whether the instance is protected from termination by Auto Scaling when scaling in.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.