public static interface PutScalingPolicyResponse.Builder extends ApplicationAutoScalingResponse.Builder, CopyableBuilder<PutScalingPolicyResponse.Builder,PutScalingPolicyResponse>
Modifier and Type | Method and Description |
---|---|
PutScalingPolicyResponse.Builder |
alarms(Alarm... alarms)
The CloudWatch alarms created for the target tracking policy.
|
PutScalingPolicyResponse.Builder |
alarms(Collection<Alarm> alarms)
The CloudWatch alarms created for the target tracking policy.
|
PutScalingPolicyResponse.Builder |
alarms(Consumer<Alarm.Builder>... alarms)
The CloudWatch alarms created for the target tracking policy.
|
PutScalingPolicyResponse.Builder |
policyARN(String policyARN)
The Amazon Resource Name (ARN) of the resulting scaling policy.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
PutScalingPolicyResponse.Builder policyARN(String policyARN)
The Amazon Resource Name (ARN) of the resulting scaling policy.
policyARN
- The Amazon Resource Name (ARN) of the resulting scaling policy.PutScalingPolicyResponse.Builder alarms(Collection<Alarm> alarms)
The CloudWatch alarms created for the target tracking policy.
alarms
- The CloudWatch alarms created for the target tracking policy.PutScalingPolicyResponse.Builder alarms(Alarm... alarms)
The CloudWatch alarms created for the target tracking policy.
alarms
- The CloudWatch alarms created for the target tracking policy.PutScalingPolicyResponse.Builder alarms(Consumer<Alarm.Builder>... alarms)
The CloudWatch alarms created for the target tracking policy.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #alarms(List)
.alarms
- a consumer that will call methods on List.Builder
#alarms(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.