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.
|
public java.lang.String getLicenseId()
public void setLicenseId(java.lang.String licenseId)
licenseId - The unique ID identifying the license.public License withLicenseId(java.lang.String licenseId)
Returns a reference to this object so that method calls can be chained together.
licenseId - The unique ID identifying the license.public java.lang.String getType()
public void setType(java.lang.String type)
type - The license type (ex. "Microsoft/Windows/Standard").public License withType(java.lang.String type)
Returns a reference to this object so that method calls can be chained together.
type - The license type (ex. "Microsoft/Windows/Standard").public java.lang.String getPool()
public void setPool(java.lang.String pool)
pool - The name of the pool in which the license is kept.public License withPool(java.lang.String pool)
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.public java.util.List<LicenseCapacity> getCapacities()
public void setCapacities(java.util.Collection<LicenseCapacity> capacities)
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.public License withCapacities(LicenseCapacity... capacities)
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.public License withCapacities(java.util.Collection<LicenseCapacity> capacities)
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.public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags - A list of tags for the License.public License withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags - A list of tags for the License.public License withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags - A list of tags for the License.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object