Interface PutScalingPolicyResponse.Builder
-
- All Superinterfaces:
AutoScalingResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<PutScalingPolicyResponse.Builder,PutScalingPolicyResponse>
,SdkBuilder<PutScalingPolicyResponse.Builder,PutScalingPolicyResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- PutScalingPolicyResponse
public static interface PutScalingPolicyResponse.Builder extends AutoScalingResponse.Builder, SdkPojo, CopyableBuilder<PutScalingPolicyResponse.Builder,PutScalingPolicyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutScalingPolicyResponse.Builder
alarms(Collection<Alarm> alarms)
The CloudWatch alarms created for the target tracking scaling policy.PutScalingPolicyResponse.Builder
alarms(Consumer<Alarm.Builder>... alarms)
The CloudWatch alarms created for the target tracking scaling policy.PutScalingPolicyResponse.Builder
alarms(Alarm... alarms)
The CloudWatch alarms created for the target tracking scaling policy.PutScalingPolicyResponse.Builder
policyARN(String policyARN)
The Amazon Resource Name (ARN) of the policy.-
Methods inherited from interface software.amazon.awssdk.services.autoscaling.model.AutoScalingResponse.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 Detail
-
policyARN
PutScalingPolicyResponse.Builder policyARN(String policyARN)
The Amazon Resource Name (ARN) of the policy.
- Parameters:
policyARN
- The Amazon Resource Name (ARN) of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarms
PutScalingPolicyResponse.Builder alarms(Collection<Alarm> 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
PutScalingPolicyResponse.Builder alarms(Alarm... 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
PutScalingPolicyResponse.Builder alarms(Consumer<Alarm.Builder>... 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 to#alarms(List
.) - 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:
#alarms(java.util.Collection
)
-
-