com.amazonaws.services.autoscaling.model

## クラス ScalingPolicy

- java.lang.Object
- - com.amazonaws.services.autoscaling.model.ScalingPolicy

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

      public class ScalingPolicy
      extends java.lang.Object
      implements java.io.Serializable

  The `ScalingPolicy` data type.

  関連項目:
    直列化された形式

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `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.util.List<Alarm>` | `getAlarms()` A list of CloudWatch Alarms related to the policy.
    `java.lang.String` | `getAutoScalingGroupName()` The name of the Auto Scaling group associated with this scaling policy.
    `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()` Changes the `DesiredCapacity` of the Auto Scaling group by at least the specified number of instances.
    `java.lang.String` | `getPolicyARN()` The Amazon Resource Name (ARN) of the policy.
    `java.lang.String` | `getPolicyName()` The name of the scaling policy.
    `java.lang.Integer` | `getScalingAdjustment()` The number associated with the specified adjustment type.
    `int` | `hashCode()`
    `void` | `setAdjustmentType(java.lang.String adjustmentType)` Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity.
    `void` | `setAlarms(java.util.Collection<Alarm> alarms)` A list of CloudWatch Alarms related to the policy.
    `void` | `setAutoScalingGroupName(java.lang.String autoScalingGroupName)` The name of the Auto Scaling group associated with this scaling policy.
    `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)` Changes the `DesiredCapacity` of the Auto Scaling group by at least the specified number of instances.
    `void` | `setPolicyARN(java.lang.String policyARN)` The Amazon Resource Name (ARN) of the policy.
    `void` | `setPolicyName(java.lang.String policyName)` The name of the scaling policy.
    `void` | `setScalingAdjustment(java.lang.Integer scalingAdjustment)` The number associated with the specified adjustment type.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `ScalingPolicy` | `withAdjustmentType(java.lang.String adjustmentType)` Specifies whether the `ScalingAdjustment` is an absolute number or a percentage of the current capacity.
    `ScalingPolicy` | `withAlarms(Alarm... alarms)` A list of CloudWatch Alarms related to the policy.
    `ScalingPolicy` | `withAlarms(java.util.Collection<Alarm> alarms)` A list of CloudWatch Alarms related to the policy.
    `ScalingPolicy` | `withAutoScalingGroupName(java.lang.String autoScalingGroupName)` The name of the Auto Scaling group associated with this scaling policy.
    `ScalingPolicy` | `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.
    `ScalingPolicy` | `withMinAdjustmentStep(java.lang.Integer minAdjustmentStep)` Changes the `DesiredCapacity` of the Auto Scaling group by at least the specified number of instances.
    `ScalingPolicy` | `withPolicyARN(java.lang.String policyARN)` The Amazon Resource Name (ARN) of the policy.
    `ScalingPolicy` | `withPolicyName(java.lang.String policyName)` The name of the scaling policy.
    `ScalingPolicy` | `withScalingAdjustment(java.lang.Integer scalingAdjustment)` The number associated with the specified adjustment type.

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

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

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

    - #### ScalingPolicy

          public ScalingPolicy()

  - ### メソッドの詳細

    - #### getAutoScalingGroupName

          public java.lang.String getAutoScalingGroupName()

      The name of the Auto Scaling group associated with this scaling policy.

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

      戻り値:
        The name of the Auto Scaling group associated with this scaling policy.

    - #### setAutoScalingGroupName

          public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)

      The name of the Auto Scaling group associated with this scaling policy.

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

      パラメータ:
        `autoScalingGroupName` - The name of the Auto Scaling group associated with this scaling policy.

    - #### withAutoScalingGroupName

          public ScalingPolicy withAutoScalingGroupName(java.lang.String autoScalingGroupName)

      The name of the Auto Scaling group associated with this scaling policy.

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

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

      パラメータ:
        `autoScalingGroupName` - The name of the Auto Scaling group associated with this scaling policy.

    - #### getPolicyName

          public java.lang.String getPolicyName()

      The name of the scaling policy.

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

      戻り値:
        The name of the scaling policy.

    - #### setPolicyName

          public void setPolicyName(java.lang.String policyName)

      The name of the scaling policy.

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

      パラメータ:
        `policyName` - The name of the scaling policy.

    - #### withPolicyName

          public ScalingPolicy withPolicyName(java.lang.String policyName)

      The name of the scaling policy.

      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 scaling policy.

    - #### getScalingAdjustment

          public java.lang.Integer getScalingAdjustment()

      The number associated with the specified adjustment type. A positive value adds to the current capacity and a negative value removes from the current capacity.
      戻り値:
        The number associated with the specified adjustment type. A positive value adds to the current capacity and a negative value removes from the current capacity.

    - #### setScalingAdjustment

          public void setScalingAdjustment(java.lang.Integer scalingAdjustment)

      The number associated with the specified adjustment type. A positive value adds to the current capacity and a negative value removes from the current capacity.
      パラメータ:
        `scalingAdjustment` - The number associated with the specified adjustment type. A positive value adds to the current capacity and a negative value removes from the current capacity.

    - #### withScalingAdjustment

          public ScalingPolicy withScalingAdjustment(java.lang.Integer scalingAdjustment)

      The number associated with the specified adjustment type. A positive value 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 associated with the specified adjustment type. A positive value 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 ScalingPolicy 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 ScalingPolicy 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.

    - #### getPolicyARN

          public java.lang.String getPolicyARN()

      The Amazon Resource Name (ARN) of the policy.

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

      戻り値:
        The Amazon Resource Name (ARN) of the policy.

    - #### setPolicyARN

          public void setPolicyARN(java.lang.String policyARN)

      The Amazon Resource Name (ARN) of the policy.

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

      パラメータ:
        `policyARN` - The Amazon Resource Name (ARN) of the policy.

    - #### withPolicyARN

          public ScalingPolicy withPolicyARN(java.lang.String policyARN)

      The Amazon Resource Name (ARN) of the policy.

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

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

      パラメータ:
        `policyARN` - The Amazon Resource Name (ARN) of the policy.

    - #### getAlarms

          public java.util.List<Alarm> getAlarms()

      A list of CloudWatch Alarms related to the policy.
      戻り値:
        A list of CloudWatch Alarms related to the policy.

    - #### setAlarms

          public void setAlarms(java.util.Collection<Alarm> alarms)

      A list of CloudWatch Alarms related to the policy.
      パラメータ:
        `alarms` - A list of CloudWatch Alarms related to the policy.

    - #### withAlarms

          public ScalingPolicy withAlarms(Alarm... alarms)

      A list of CloudWatch Alarms related to the policy.

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

      パラメータ:
        `alarms` - A list of CloudWatch Alarms related to the policy.

    - #### withAlarms

          public ScalingPolicy withAlarms(java.util.Collection<Alarm> alarms)

      A list of CloudWatch Alarms related to the policy.

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

      パラメータ:
        `alarms` - A list of CloudWatch Alarms related to the policy.

    - #### getMinAdjustmentStep

          public java.lang.Integer getMinAdjustmentStep()

      Changes the `DesiredCapacity` of the Auto Scaling group by at least the specified number of instances.
      戻り値:
        Changes the `DesiredCapacity` of the Auto Scaling group by at least the specified number of instances.

    - #### setMinAdjustmentStep

          public void setMinAdjustmentStep(java.lang.Integer minAdjustmentStep)

      Changes the `DesiredCapacity` of the Auto Scaling group by at least the specified number of instances.
      パラメータ:
        `minAdjustmentStep` - Changes the `DesiredCapacity` of the Auto Scaling group by at least the specified number of instances.

    - #### withMinAdjustmentStep

          public ScalingPolicy withMinAdjustmentStep(java.lang.Integer minAdjustmentStep)

      Changes the `DesiredCapacity` of the Auto Scaling group by at least the specified number of instances.

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

      パラメータ:
        `minAdjustmentStep` - Changes the `DesiredCapacity` of the Auto Scaling group by at least the specified number of instances.

    - #### 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`