com.amazonaws.services.autoscaling.model

## クラス TerminateInstanceInAutoScalingGroupRequest

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

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

      public class TerminateInstanceInAutoScalingGroupRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `TerminateInstanceInAutoScalingGroup operation`.

  Terminates the specified instance. Optionally, the desired group size can be adjusted.

  NOTE: This call simply registers a termination request. The termination of the instance cannot happen immediately.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getInstanceId()` The ID of the Amazon EC2 instance to be terminated.
    `java.lang.Boolean` | `getShouldDecrementDesiredCapacity()` Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isShouldDecrementDesiredCapacity()` Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.
    `void` | `setInstanceId(java.lang.String instanceId)` The ID of the Amazon EC2 instance to be terminated.
    `void` | `setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)` Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `TerminateInstanceInAutoScalingGroupRequest` | `withInstanceId(java.lang.String instanceId)` The ID of the Amazon EC2 instance to be terminated.
    `TerminateInstanceInAutoScalingGroupRequest` | `withShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)` Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### TerminateInstanceInAutoScalingGroupRequest

          public TerminateInstanceInAutoScalingGroupRequest()

  - ### メソッドの詳細

    - #### getInstanceId

          public java.lang.String getInstanceId()

      The ID of the Amazon EC2 instance to be terminated.

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

      戻り値:
        The ID of the Amazon EC2 instance to be terminated.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      The ID of the Amazon EC2 instance to be terminated.

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

      パラメータ:
        `instanceId` - The ID of the Amazon EC2 instance to be terminated.

    - #### withInstanceId

          public TerminateInstanceInAutoScalingGroupRequest withInstanceId(java.lang.String instanceId)

      The ID of the Amazon EC2 instance to be terminated.

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

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

      パラメータ:
        `instanceId` - The ID of the Amazon EC2 instance to be terminated.

    - #### isShouldDecrementDesiredCapacity

          public java.lang.Boolean isShouldDecrementDesiredCapacity()

      Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.
      戻り値:
        Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.

    - #### setShouldDecrementDesiredCapacity

          public void setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)

      Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.
      パラメータ:
        `shouldDecrementDesiredCapacity` - Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.

    - #### withShouldDecrementDesiredCapacity

          public TerminateInstanceInAutoScalingGroupRequest withShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)

      Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.

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

      パラメータ:
        `shouldDecrementDesiredCapacity` - Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.

    - #### getShouldDecrementDesiredCapacity

          public java.lang.Boolean getShouldDecrementDesiredCapacity()

      Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.
      戻り値:
        Specifies whether (true) or not (false) terminating this instance should also decrement the size of the AutoScalingGroup.

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