Interface PutAutoScalingPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PutAutoScalingPolicyResponse.Builder,,PutAutoScalingPolicyResponse> EmrResponse.Builder,SdkBuilder<PutAutoScalingPolicyResponse.Builder,,PutAutoScalingPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PutAutoScalingPolicyResponse
@Mutable
@NotThreadSafe
public static interface PutAutoScalingPolicyResponse.Builder
extends EmrResponse.Builder, SdkPojo, CopyableBuilder<PutAutoScalingPolicyResponse.Builder,PutAutoScalingPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingPolicy(Consumer<AutoScalingPolicyDescription.Builder> autoScalingPolicy) The automatic scaling policy definition.autoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy) The automatic scaling policy definition.clusterArn(String clusterArn) The Amazon Resource Name (ARN) of the cluster.Specifies the ID of a cluster.instanceGroupId(String instanceGroupId) Specifies the ID of the instance group to which the scaling policy is applied.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.emr.model.EmrResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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 scaling policy is applied.
- Parameters:
instanceGroupId- Specifies the ID of the instance group to which the scaling policy is applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingPolicy
PutAutoScalingPolicyResponse.Builder autoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy) The automatic scaling policy definition.
- Parameters:
autoScalingPolicy- The automatic scaling policy definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingPolicy
default PutAutoScalingPolicyResponse.Builder autoScalingPolicy(Consumer<AutoScalingPolicyDescription.Builder> autoScalingPolicy) The automatic scaling policy definition.
This is a convenience method that creates an instance of theAutoScalingPolicyDescription.Builderavoiding the need to create one manually viaAutoScalingPolicyDescription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toautoScalingPolicy(AutoScalingPolicyDescription).- Parameters:
autoScalingPolicy- a consumer that will call methods onAutoScalingPolicyDescription.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clusterArn
The Amazon Resource Name (ARN) of the cluster.
- Parameters:
clusterArn- The Amazon Resource Name (ARN) of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-