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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.emr.model.EmrRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaAutoScalingPolicy.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-