com.amazonaws.services.ec2.model

## クラス LicenseCapacity

- java.lang.Object
- - com.amazonaws.services.ec2.model.LicenseCapacity

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

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

  Represents the capacity that a license is able to support.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Integer` | `getCapacity()` The number of licenses available.
    `java.util.Date` | `getEarliestAllowedDeactivationTime()` The earliest allowed time at which a license can be deactivated.
    `java.lang.Integer` | `getInstanceCapacity()` The number of Amazon EC2 instances that can be supported with the license's capacity.
    `java.lang.String` | `getState()` The state of this license capacity, indicating whether the license is actively being used or not.
    `int` | `hashCode()`
    `void` | `setCapacity(java.lang.Integer capacity)` The number of licenses available.
    `void` | `setEarliestAllowedDeactivationTime(java.util.Date earliestAllowedDeactivationTime)` The earliest allowed time at which a license can be deactivated.
    `void` | `setInstanceCapacity(java.lang.Integer instanceCapacity)` The number of Amazon EC2 instances that can be supported with the license's capacity.
    `void` | `setState(java.lang.String state)` The state of this license capacity, indicating whether the license is actively being used or not.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `LicenseCapacity` | `withCapacity(java.lang.Integer capacity)` The number of licenses available.
    `LicenseCapacity` | `withEarliestAllowedDeactivationTime(java.util.Date earliestAllowedDeactivationTime)` The earliest allowed time at which a license can be deactivated.
    `LicenseCapacity` | `withInstanceCapacity(java.lang.Integer instanceCapacity)` The number of Amazon EC2 instances that can be supported with the license's capacity.
    `LicenseCapacity` | `withState(java.lang.String state)` The state of this license capacity, indicating whether the license is actively being used or not.

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

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

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

    - #### LicenseCapacity

          public LicenseCapacity()

  - ### メソッドの詳細

    - #### getCapacity

          public java.lang.Integer getCapacity()

      The number of licenses available.
      戻り値:
        The number of licenses available.

    - #### setCapacity

          public void setCapacity(java.lang.Integer capacity)

      The number of licenses available.
      パラメータ:
        `capacity` - The number of licenses available.

    - #### withCapacity

          public LicenseCapacity withCapacity(java.lang.Integer capacity)

      The number of licenses available.

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

      パラメータ:
        `capacity` - The number of licenses available.

    - #### getInstanceCapacity

          public java.lang.Integer getInstanceCapacity()

      The number of Amazon EC2 instances that can be supported with the license's capacity.
      戻り値:
        The number of Amazon EC2 instances that can be supported with the license's capacity.

    - #### setInstanceCapacity

          public void setInstanceCapacity(java.lang.Integer instanceCapacity)

      The number of Amazon EC2 instances that can be supported with the license's capacity.
      パラメータ:
        `instanceCapacity` - The number of Amazon EC2 instances that can be supported with the license's capacity.

    - #### withInstanceCapacity

          public LicenseCapacity withInstanceCapacity(java.lang.Integer instanceCapacity)

      The number of Amazon EC2 instances that can be supported with the license's capacity.

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

      パラメータ:
        `instanceCapacity` - The number of Amazon EC2 instances that can be supported with the license's capacity.

    - #### getState

          public java.lang.String getState()

      The state of this license capacity, indicating whether the license is actively being used or not.
      戻り値:
        The state of this license capacity, indicating whether the license is actively being used or not.

    - #### setState

          public void setState(java.lang.String state)

      The state of this license capacity, indicating whether the license is actively being used or not.
      パラメータ:
        `state` - The state of this license capacity, indicating whether the license is actively being used or not.

    - #### withState

          public LicenseCapacity withState(java.lang.String state)

      The state of this license capacity, indicating whether the license is actively being used or not.

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

      パラメータ:
        `state` - The state of this license capacity, indicating whether the license is actively being used or not.

    - #### getEarliestAllowedDeactivationTime

          public java.util.Date getEarliestAllowedDeactivationTime()

      The earliest allowed time at which a license can be deactivated. Some licenses have time restrictions on when they can be activated and reactivated.
      戻り値:
        The earliest allowed time at which a license can be deactivated. Some licenses have time restrictions on when they can be activated and reactivated.

    - #### setEarliestAllowedDeactivationTime

          public void setEarliestAllowedDeactivationTime(java.util.Date earliestAllowedDeactivationTime)

      The earliest allowed time at which a license can be deactivated. Some licenses have time restrictions on when they can be activated and reactivated.
      パラメータ:
        `earliestAllowedDeactivationTime` - The earliest allowed time at which a license can be deactivated. Some licenses have time restrictions on when they can be activated and reactivated.

    - #### withEarliestAllowedDeactivationTime

          public LicenseCapacity withEarliestAllowedDeactivationTime(java.util.Date earliestAllowedDeactivationTime)

      The earliest allowed time at which a license can be deactivated. Some licenses have time restrictions on when they can be activated and reactivated.

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

      パラメータ:
        `earliestAllowedDeactivationTime` - The earliest allowed time at which a license can be deactivated. Some licenses have time restrictions on when they can be activated and reactivated.

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