public static interface PutAutoScalingPolicyRequest.Builder extends EMRRequest.Builder, CopyableBuilder<PutAutoScalingPolicyRequest.Builder,PutAutoScalingPolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
PutAutoScalingPolicyRequest.Builder |
autoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
Specifies the definition of the automatic scaling policy.
|
default PutAutoScalingPolicyRequest.Builder |
autoScalingPolicy(Consumer<AutoScalingPolicy.Builder> 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 |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
PutAutoScalingPolicyRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
buildrequestOverrideConfigcopyapply, buildPutAutoScalingPolicyRequest.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.PutAutoScalingPolicyRequest.Builder instanceGroupId(String instanceGroupId)
Specifies the ID of the instance group to which the automatic scaling policy is applied.
instanceGroupId - Specifies the ID of the instance group to which the automatic scaling policy is applied.PutAutoScalingPolicyRequest.Builder autoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
Specifies the definition of the automatic scaling policy.
autoScalingPolicy - Specifies the definition of the automatic scaling policy.default PutAutoScalingPolicyRequest.Builder autoScalingPolicy(Consumer<AutoScalingPolicy.Builder> autoScalingPolicy)
Specifies the definition of the automatic scaling policy.
This is a convenience that creates an instance of theAutoScalingPolicy.Builder avoiding the need to
create one manually via AutoScalingPolicy.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to autoScalingPolicy(AutoScalingPolicy).autoScalingPolicy - a consumer that will call methods on AutoScalingPolicy.BuilderautoScalingPolicy(AutoScalingPolicy)PutAutoScalingPolicyRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderawsRequestOverrideConfig - The override configuration.PutAutoScalingPolicyRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfig.Builder will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.