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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PutAutoScalingPolicyRequest.Builder
autoScalingPolicy(Consumer<AutoScalingPolicy.Builder> autoScalingPolicy)
Specifies the definition of the automatic scaling policy.PutAutoScalingPolicyRequest.Builder
autoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
Specifies the definition of the automatic scaling policy.PutAutoScalingPolicyRequest.Builder
clusterId(String clusterId)
Specifies the ID of a cluster.PutAutoScalingPolicyRequest.Builder
instanceGroupId(String instanceGroupId)
Specifies the ID of the instance group to which the automatic scaling policy is applied.PutAutoScalingPolicyRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
PutAutoScalingPolicyRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
-
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 Detail
-
clusterId
PutAutoScalingPolicyRequest.Builder clusterId(String 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
PutAutoScalingPolicyRequest.Builder instanceGroupId(String 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
PutAutoScalingPolicyRequest.Builder autoScalingPolicy(AutoScalingPolicy 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:
autoScalingPolicy(AutoScalingPolicy)
-
overrideConfiguration
PutAutoScalingPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
PutAutoScalingPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-