public static interface PutAutoScalingPolicyResponse.Builder extends EmrResponse.Builder, CopyableBuilder<PutAutoScalingPolicyResponse.Builder,PutAutoScalingPolicyResponse>
Modifier and Type | Method and Description |
---|---|
PutAutoScalingPolicyResponse.Builder |
autoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy)
The automatic scaling policy definition.
|
default PutAutoScalingPolicyResponse.Builder |
autoScalingPolicy(Consumer<AutoScalingPolicyDescription.Builder> autoScalingPolicy)
The automatic scaling policy definition.
|
PutAutoScalingPolicyResponse.Builder |
clusterId(String clusterId)
Specifies the ID of a cluster.
|
PutAutoScalingPolicyResponse.Builder |
instanceGroupId(String instanceGroupId)
Specifies the ID of the instance group to which the scaling policy is applied.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
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.
clusterId
- Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is
within this cluster.PutAutoScalingPolicyResponse.Builder instanceGroupId(String instanceGroupId)
Specifies the ID of the instance group to which the scaling policy is applied.
instanceGroupId
- Specifies the ID of the instance group to which the scaling policy is applied.PutAutoScalingPolicyResponse.Builder autoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy)
The automatic scaling policy definition.
autoScalingPolicy
- The automatic scaling policy definition.default PutAutoScalingPolicyResponse.Builder autoScalingPolicy(Consumer<AutoScalingPolicyDescription.Builder> autoScalingPolicy)
The automatic scaling policy definition.
This is a convenience that creates an instance of theAutoScalingPolicyDescription.Builder
avoiding
the need to create one manually via AutoScalingPolicyDescription.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to autoScalingPolicy(AutoScalingPolicyDescription)
.autoScalingPolicy
- a consumer that will call methods on AutoScalingPolicyDescription.Builder
autoScalingPolicy(AutoScalingPolicyDescription)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.