Interface PutAutoScalingPolicyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PutAutoScalingPolicyResponse.Builder,PutAutoScalingPolicyResponse>,EmrResponse.Builder,SdkBuilder<PutAutoScalingPolicyResponse.Builder,PutAutoScalingPolicyResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- PutAutoScalingPolicyResponse
public static interface PutAutoScalingPolicyResponse.Builder extends EmrResponse.Builder, SdkPojo, CopyableBuilder<PutAutoScalingPolicyResponse.Builder,PutAutoScalingPolicyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PutAutoScalingPolicyResponse.BuilderautoScalingPolicy(Consumer<AutoScalingPolicyDescription.Builder> autoScalingPolicy)The automatic scaling policy definition.PutAutoScalingPolicyResponse.BuilderautoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy)The automatic scaling policy definition.PutAutoScalingPolicyResponse.BuilderclusterArn(String clusterArn)The Amazon Resource Name (ARN) of the cluster.PutAutoScalingPolicyResponse.BuilderclusterId(String clusterId)Specifies the ID of a cluster.PutAutoScalingPolicyResponse.BuilderinstanceGroupId(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
copy
-
Methods inherited from interface software.amazon.awssdk.services.emr.model.EmrResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
clusterId
PutAutoScalingPolicyResponse.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
PutAutoScalingPolicyResponse.Builder instanceGroupId(String 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:
autoScalingPolicy(AutoScalingPolicyDescription)
-
clusterArn
PutAutoScalingPolicyResponse.Builder clusterArn(String 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.
-
-