Interface SetInstanceProtectionRequest.Builder
-
- All Superinterfaces:
AutoScalingRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<SetInstanceProtectionRequest.Builder,SetInstanceProtectionRequest>
,SdkBuilder<SetInstanceProtectionRequest.Builder,SetInstanceProtectionRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- SetInstanceProtectionRequest
public static interface SetInstanceProtectionRequest.Builder extends AutoScalingRequest.Builder, SdkPojo, CopyableBuilder<SetInstanceProtectionRequest.Builder,SetInstanceProtectionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SetInstanceProtectionRequest.Builder
autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.SetInstanceProtectionRequest.Builder
instanceIds(String... instanceIds)
One or more instance IDs.SetInstanceProtectionRequest.Builder
instanceIds(Collection<String> instanceIds)
One or more instance IDs.SetInstanceProtectionRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
SetInstanceProtectionRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
SetInstanceProtectionRequest.Builder
protectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.-
Methods inherited from interface software.amazon.awssdk.services.autoscaling.model.AutoScalingRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
instanceIds
SetInstanceProtectionRequest.Builder instanceIds(Collection<String> instanceIds)
One or more instance IDs. You can specify up to 50 instances.
- Parameters:
instanceIds
- One or more instance IDs. You can specify up to 50 instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceIds
SetInstanceProtectionRequest.Builder instanceIds(String... instanceIds)
One or more instance IDs. You can specify up to 50 instances.
- Parameters:
instanceIds
- One or more instance IDs. You can specify up to 50 instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroupName
SetInstanceProtectionRequest.Builder autoScalingGroupName(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.
-
protectedFromScaleIn
SetInstanceProtectionRequest.Builder protectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
- Parameters:
protectedFromScaleIn
- Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SetInstanceProtectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
SetInstanceProtectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-