Interface GetManagedScalingPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetManagedScalingPolicyResponse.Builder,
,GetManagedScalingPolicyResponse> EmrResponse.Builder
,SdkBuilder<GetManagedScalingPolicyResponse.Builder,
,GetManagedScalingPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetManagedScalingPolicyResponse
@Mutable
@NotThreadSafe
public static interface GetManagedScalingPolicyResponse.Builder
extends EmrResponse.Builder, SdkPojo, CopyableBuilder<GetManagedScalingPolicyResponse.Builder,GetManagedScalingPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmanagedScalingPolicy
(Consumer<ManagedScalingPolicy.Builder> managedScalingPolicy) Specifies the managed scaling policy that is attached to an Amazon EMR cluster.managedScalingPolicy
(ManagedScalingPolicy managedScalingPolicy) Specifies the managed scaling policy that is attached to an Amazon EMR cluster.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 Details
-
managedScalingPolicy
GetManagedScalingPolicyResponse.Builder managedScalingPolicy(ManagedScalingPolicy managedScalingPolicy) Specifies the managed scaling policy that is attached to an Amazon EMR cluster.
- Parameters:
managedScalingPolicy
- Specifies the managed scaling policy that is attached to an Amazon EMR cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedScalingPolicy
default GetManagedScalingPolicyResponse.Builder managedScalingPolicy(Consumer<ManagedScalingPolicy.Builder> managedScalingPolicy) Specifies the managed scaling policy that is attached to an Amazon EMR cluster.
This is a convenience method that creates an instance of theManagedScalingPolicy.Builder
avoiding the need to create one manually viaManagedScalingPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomanagedScalingPolicy(ManagedScalingPolicy)
.- Parameters:
managedScalingPolicy
- a consumer that will call methods onManagedScalingPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-