com.amazonaws.services.autoscaling.model

## クラス PutScalingPolicyRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.autoscaling.model.PutScalingPolicyRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class PutScalingPolicyRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `PutScalingPolicy operation`.

  Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameter(s) you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.

  関連項目:
    `AmazonAutoScaling.putScalingPolicy(PutScalingPolicyRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `PutScalingPolicyRequest()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAdjustmentType()` Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity.
    `java.lang.String` | `getAutoScalingGroupName()` The name or ARN of the Auto Scaling group.
    `java.lang.Integer` | `getCooldown()` The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.
    `java.lang.Integer` | `getMinAdjustmentStep()` Used with `AdjustmentType` with the value `PercentChangeInCapacity`, the scaling policy changes the `DesiredCapacity` of the Auto Scaling group by at least the number of instances specified in the value.
    `java.lang.String` | `getPolicyName()` The name of the policy you want to create or update.
    `java.lang.Integer` | `getScalingAdjustment()` The number of instances by which to scale.
    `int` | `hashCode()`
    `void` | `setAdjustmentType(java.lang.String adjustmentType)` Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity.
    `void` | `setAutoScalingGroupName(java.lang.String autoScalingGroupName)` The name or ARN of the Auto Scaling group.
    `void` | `setCooldown(java.lang.Integer cooldown)` The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.
    `void` | `setMinAdjustmentStep(java.lang.Integer minAdjustmentStep)` Used with `AdjustmentType` with the value `PercentChangeInCapacity`, the scaling policy changes the `DesiredCapacity` of the Auto Scaling group by at least the number of instances specified in the value.
    `void` | `setPolicyName(java.lang.String policyName)` The name of the policy you want to create or update.
    `void` | `setScalingAdjustment(java.lang.Integer scalingAdjustment)` The number of instances by which to scale.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `PutScalingPolicyRequest` | `withAdjustmentType(java.lang.String adjustmentType)` Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity.
    `PutScalingPolicyRequest` | `withAutoScalingGroupName(java.lang.String autoScalingGroupName)` The name or ARN of the Auto Scaling group.
    `PutScalingPolicyRequest` | `withCooldown(java.lang.Integer cooldown)` The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.
    `PutScalingPolicyRequest` | `withMinAdjustmentStep(java.lang.Integer minAdjustmentStep)` Used with `AdjustmentType` with the value `PercentChangeInCapacity`, the scaling policy changes the `DesiredCapacity` of the Auto Scaling group by at least the number of instances specified in the value.
    `PutScalingPolicyRequest` | `withPolicyName(java.lang.String policyName)` The name of the policy you want to create or update.
    `PutScalingPolicyRequest` | `withScalingAdjustment(java.lang.Integer scalingAdjustment)` The number of instances by which to scale.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### PutScalingPolicyRequest

          public PutScalingPolicyRequest()

  - ### メソッドの詳細

    - #### getAutoScalingGroupName

          public java.lang.String getAutoScalingGroupName()

      The name or ARN of the Auto Scaling group.

      Constraints:
      Length: 1 - 1600
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      戻り値:
        The name or ARN of the Auto Scaling group.

    - #### setAutoScalingGroupName

          public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)

      The name or ARN of the Auto Scaling group.

      Constraints:
      Length: 1 - 1600
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `autoScalingGroupName` - The name or ARN of the Auto Scaling group.

    - #### withAutoScalingGroupName

          public PutScalingPolicyRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)

      The name or ARN of the Auto Scaling group.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Length: 1 - 1600
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `autoScalingGroupName` - The name or ARN of the Auto Scaling group.

    - #### getPolicyName

          public java.lang.String getPolicyName()

      The name of the policy you want to create or update.

      Constraints:
      Length: 1 - 255
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      戻り値:
        The name of the policy you want to create or update.

    - #### setPolicyName

          public void setPolicyName(java.lang.String policyName)

      The name of the policy you want to create or update.

      Constraints:
      Length: 1 - 255
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `policyName` - The name of the policy you want to create or update.

    - #### withPolicyName

          public PutScalingPolicyRequest withPolicyName(java.lang.String policyName)

      The name of the policy you want to create or update.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Length: 1 - 255
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `policyName` - The name of the policy you want to create or update.

    - #### getScalingAdjustment

          public java.lang.Integer getScalingAdjustment()

      The number of instances by which to scale. `AdjustmentType` determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity.
      戻り値:
        The number of instances by which to scale. `AdjustmentType` determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity.

    - #### setScalingAdjustment

          public void setScalingAdjustment(java.lang.Integer scalingAdjustment)

      The number of instances by which to scale. `AdjustmentType` determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity.
      パラメータ:
        `scalingAdjustment` - The number of instances by which to scale. `AdjustmentType` determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity.

    - #### withScalingAdjustment

          public PutScalingPolicyRequest withScalingAdjustment(java.lang.Integer scalingAdjustment)

      The number of instances by which to scale. `AdjustmentType` determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `scalingAdjustment` - The number of instances by which to scale. `AdjustmentType` determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity.

    - #### getAdjustmentType

          public java.lang.String getAdjustmentType()

      Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity. Valid values are `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.

      Constraints:
      Length: 1 - 255
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      戻り値:
        Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity. Valid values are `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.

    - #### setAdjustmentType

          public void setAdjustmentType(java.lang.String adjustmentType)

      Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity. Valid values are `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.

      Constraints:
      Length: 1 - 255
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `adjustmentType` - Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity. Valid values are `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.

    - #### withAdjustmentType

          public PutScalingPolicyRequest withAdjustmentType(java.lang.String adjustmentType)

      Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity. Valid values are `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Length: 1 - 255
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `adjustmentType` - Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity. Valid values are `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.

    - #### getCooldown

          public java.lang.Integer getCooldown()

      The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.
      戻り値:
        The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

    - #### setCooldown

          public void setCooldown(java.lang.Integer cooldown)

      The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.
      パラメータ:
        `cooldown` - The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

    - #### withCooldown

          public PutScalingPolicyRequest withCooldown(java.lang.Integer cooldown)

      The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `cooldown` - The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

    - #### getMinAdjustmentStep

          public java.lang.Integer getMinAdjustmentStep()

      Used with `AdjustmentType` with the value `PercentChangeInCapacity`, the scaling policy changes the `DesiredCapacity` of the Auto Scaling group by at least the number of instances specified in the value.

      You will get a `ValidationError` if you use `MinAdjustmentStep` on a policy with an `AdjustmentType` other than `PercentChangeInCapacity`.

      戻り値:
        Used with `AdjustmentType` with the value `PercentChangeInCapacity`, the scaling policy changes the `DesiredCapacity` of the Auto Scaling group by at least the number of instances specified in the value.

        You will get a `ValidationError` if you use `MinAdjustmentStep` on a policy with an `AdjustmentType` other than `PercentChangeInCapacity`.

    - #### setMinAdjustmentStep

          public void setMinAdjustmentStep(java.lang.Integer minAdjustmentStep)

      Used with `AdjustmentType` with the value `PercentChangeInCapacity`, the scaling policy changes the `DesiredCapacity` of the Auto Scaling group by at least the number of instances specified in the value.

      You will get a `ValidationError` if you use `MinAdjustmentStep` on a policy with an `AdjustmentType` other than `PercentChangeInCapacity`.

      パラメータ:
        `minAdjustmentStep` - Used with `AdjustmentType` with the value `PercentChangeInCapacity`, the scaling policy changes the `DesiredCapacity` of the Auto Scaling group by at least the number of instances specified in the value.

        You will get a `ValidationError` if you use `MinAdjustmentStep` on a policy with an `AdjustmentType` other than `PercentChangeInCapacity`.

    - #### withMinAdjustmentStep

          public PutScalingPolicyRequest withMinAdjustmentStep(java.lang.Integer minAdjustmentStep)

      Used with `AdjustmentType` with the value `PercentChangeInCapacity`, the scaling policy changes the `DesiredCapacity` of the Auto Scaling group by at least the number of instances specified in the value.

      You will get a `ValidationError` if you use `MinAdjustmentStep` on a policy with an `AdjustmentType` other than `PercentChangeInCapacity`.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `minAdjustmentStep` - Used with `AdjustmentType` with the value `PercentChangeInCapacity`, the scaling policy changes the `DesiredCapacity` of the Auto Scaling group by at least the number of instances specified in the value.

        You will get a `ValidationError` if you use `MinAdjustmentStep` on a policy with an `AdjustmentType` other than `PercentChangeInCapacity`.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`