Interface PutScalingPolicyResponse.Builder
- All Superinterfaces:
ApplicationAutoScalingResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<PutScalingPolicyResponse.Builder,
,PutScalingPolicyResponse> SdkBuilder<PutScalingPolicyResponse.Builder,
,PutScalingPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
PutScalingPolicyResponse
public static interface PutScalingPolicyResponse.Builder
extends ApplicationAutoScalingResponse.Builder, SdkPojo, CopyableBuilder<PutScalingPolicyResponse.Builder,PutScalingPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionalarms
(Collection<Alarm> alarms) The CloudWatch alarms created for the target tracking scaling policy.alarms
(Consumer<Alarm.Builder>... alarms) The CloudWatch alarms created for the target tracking scaling policy.The CloudWatch alarms created for the target tracking scaling policy.The Amazon Resource Name (ARN) of the resulting scaling policy.Methods inherited from interface software.amazon.awssdk.services.applicationautoscaling.model.ApplicationAutoScalingResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
policyARN
The Amazon Resource Name (ARN) of the resulting scaling policy.
- Parameters:
policyARN
- The Amazon Resource Name (ARN) of the resulting scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarms
The CloudWatch alarms created for the target tracking scaling policy.
- Parameters:
alarms
- The CloudWatch alarms created for the target tracking scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarms
The CloudWatch alarms created for the target tracking scaling policy.
- Parameters:
alarms
- The CloudWatch alarms created for the target tracking scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarms
The CloudWatch alarms created for the target tracking scaling policy.
This is a convenience method that creates an instance of theAlarm.Builder
avoiding the need to create one manually viaAlarm.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toalarms(List<Alarm>)
.- Parameters:
alarms
- a consumer that will call methods onAlarm.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-