com.amazonaws.services.ec2.model

## クラス License

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

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

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

  A software license that can be associated with an Amazon EC2 instance when launched (ex. a Microsoft Windows license).

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<LicenseCapacity>` | `getCapacities()` The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.
    `java.lang.String` | `getLicenseId()` The unique ID identifying the license.
    `java.lang.String` | `getPool()` The name of the pool in which the license is kept.
    `java.util.List<Tag>` | `getTags()` A list of tags for the License.
    `java.lang.String` | `getType()` The license type (ex.
    `int` | `hashCode()`
    `void` | `setCapacities(java.util.Collection<LicenseCapacity> capacities)` The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.
    `void` | `setLicenseId(java.lang.String licenseId)` The unique ID identifying the license.
    `void` | `setPool(java.lang.String pool)` The name of the pool in which the license is kept.
    `void` | `setTags(java.util.Collection<Tag> tags)` A list of tags for the License.
    `void` | `setType(java.lang.String type)` The license type (ex.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `License` | `withCapacities(java.util.Collection<LicenseCapacity> capacities)` The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.
    `License` | `withCapacities(LicenseCapacity... capacities)` The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.
    `License` | `withLicenseId(java.lang.String licenseId)` The unique ID identifying the license.
    `License` | `withPool(java.lang.String pool)` The name of the pool in which the license is kept.
    `License` | `withTags(java.util.Collection<Tag> tags)` A list of tags for the License.
    `License` | `withTags(Tag... tags)` A list of tags for the License.
    `License` | `withType(java.lang.String type)` The license type (ex.

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

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

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

    - #### License

          public License()

  - ### メソッドの詳細

    - #### getLicenseId

          public java.lang.String getLicenseId()

      The unique ID identifying the license.
      戻り値:
        The unique ID identifying the license.

    - #### setLicenseId

          public void setLicenseId(java.lang.String licenseId)

      The unique ID identifying the license.
      パラメータ:
        `licenseId` - The unique ID identifying the license.

    - #### withLicenseId

          public License withLicenseId(java.lang.String licenseId)

      The unique ID identifying the license.

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

      パラメータ:
        `licenseId` - The unique ID identifying the license.

    - #### getType

          public java.lang.String getType()

      The license type (ex. "Microsoft/Windows/Standard").
      戻り値:
        The license type (ex. "Microsoft/Windows/Standard").

    - #### setType

          public void setType(java.lang.String type)

      The license type (ex. "Microsoft/Windows/Standard").
      パラメータ:
        `type` - The license type (ex. "Microsoft/Windows/Standard").

    - #### withType

          public License withType(java.lang.String type)

      The license type (ex. "Microsoft/Windows/Standard").

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

      パラメータ:
        `type` - The license type (ex. "Microsoft/Windows/Standard").

    - #### getPool

          public java.lang.String getPool()

      The name of the pool in which the license is kept.
      戻り値:
        The name of the pool in which the license is kept.

    - #### setPool

          public void setPool(java.lang.String pool)

      The name of the pool in which the license is kept.
      パラメータ:
        `pool` - The name of the pool in which the license is kept.

    - #### withPool

          public License withPool(java.lang.String pool)

      The name of the pool in which the license is kept.

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

      パラメータ:
        `pool` - The name of the pool in which the license is kept.

    - #### getCapacities

          public java.util.List<LicenseCapacity> getCapacities()

      The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.
      戻り値:
        The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.

    - #### setCapacities

          public void setCapacities(java.util.Collection<LicenseCapacity> capacities)

      The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.
      パラメータ:
        `capacities` - The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.

    - #### withCapacities

          public License withCapacities(LicenseCapacity... capacities)

      The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.

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

      パラメータ:
        `capacities` - The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.

    - #### withCapacities

          public License withCapacities(java.util.Collection<LicenseCapacity> capacities)

      The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.

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

      パラメータ:
        `capacities` - The capacities available for this license, indicating how many licenses are in use, how many are available, how many Amazon EC2 instances can be supported, etc.

    - #### getTags

          public java.util.List<Tag> getTags()

      A list of tags for the License.
      戻り値:
        A list of tags for the License.

    - #### setTags

          public void setTags(java.util.Collection<Tag> tags)

      A list of tags for the License.
      パラメータ:
        `tags` - A list of tags for the License.

    - #### withTags

          public License withTags(Tag... tags)

      A list of tags for the License.

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

      パラメータ:
        `tags` - A list of tags for the License.

    - #### withTags

          public License withTags(java.util.Collection<Tag> tags)

      A list of tags for the License.

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

      パラメータ:
        `tags` - A list of tags for the License.

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