Interface PutAutoScalingPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutAutoScalingPolicyRequest.Builder,
,PutAutoScalingPolicyRequest> EmrRequest.Builder
,SdkBuilder<PutAutoScalingPolicyRequest.Builder,
,PutAutoScalingPolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutAutoScalingPolicyRequest
public static interface PutAutoScalingPolicyRequest.Builder
extends EmrRequest.Builder, SdkPojo, CopyableBuilder<PutAutoScalingPolicyRequest.Builder,PutAutoScalingPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingPolicy
(Consumer<AutoScalingPolicy.Builder> autoScalingPolicy) Specifies the definition of the automatic scaling policy.autoScalingPolicy
(AutoScalingPolicy autoScalingPolicy) Specifies the definition of the automatic scaling policy.Specifies the ID of a cluster.instanceGroupId
(String instanceGroupId) Specifies the ID of the instance group to which the automatic scaling policy is applied.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.services.emr.model.EmrRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
clusterId
Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.
- Parameters:
clusterId
- Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGroupId
Specifies the ID of the instance group to which the automatic scaling policy is applied.
- Parameters:
instanceGroupId
- Specifies the ID of the instance group to which the automatic scaling policy is applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingPolicy
Specifies the definition of the automatic scaling policy.
- Parameters:
autoScalingPolicy
- Specifies the definition of the automatic scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingPolicy
default PutAutoScalingPolicyRequest.Builder autoScalingPolicy(Consumer<AutoScalingPolicy.Builder> autoScalingPolicy) Specifies the definition of the automatic scaling policy.
This is a convenience method that creates an instance of theAutoScalingPolicy.Builder
avoiding the need to create one manually viaAutoScalingPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toautoScalingPolicy(AutoScalingPolicy)
.- Parameters:
autoScalingPolicy
- a consumer that will call methods onAutoScalingPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutAutoScalingPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutAutoScalingPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-