Interface PutScalingPolicyResponse.Builder

    • 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 the Alarm.Builder avoiding the need to create one manually via Alarm.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 on Alarm.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #alarms(java.util.Collection)