com.amazonaws.services.ec2.model
Class License

java.lang.Object
  extended by com.amazonaws.services.ec2.model.License

public class License
extends Object

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


Constructor Summary
License()
           
 
Method Summary
 boolean equals(Object obj)
           
 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.
 String getLicenseId()
          The unique ID identifying the license.
 String getPool()
          The name of the pool in which the license is kept.
 List<Tag> getTags()
          A list of tags for the License.
 String getType()
          The license type (ex.
 int hashCode()
           
 void setCapacities(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(String licenseId)
          The unique ID identifying the license.
 void setPool(String pool)
          The name of the pool in which the license is kept.
 void setTags(Collection<Tag> tags)
          A list of tags for the License.
 void setType(String type)
          The license type (ex.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 License withCapacities(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(String licenseId)
          The unique ID identifying the license.
 License withPool(String pool)
          The name of the pool in which the license is kept.
 License withTags(Collection<Tag> tags)
          A list of tags for the License.
 License withTags(Tag... tags)
          A list of tags for the License.
 License withType(String type)
          The license type (ex.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

License

public License()
Method Detail

getLicenseId

public String getLicenseId()
The unique ID identifying the license.

Returns:
The unique ID identifying the license.

setLicenseId

public void setLicenseId(String licenseId)
The unique ID identifying the license.

Parameters:
licenseId - The unique ID identifying the license.

withLicenseId

public License withLicenseId(String licenseId)
The unique ID identifying the license.

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

Parameters:
licenseId - The unique ID identifying the license.
Returns:
A reference to this updated object so that method calls can be chained together.

getType

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

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

setType

public void setType(String type)
The license type (ex. "Microsoft/Windows/Standard").

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

withType

public License withType(String type)
The license type (ex. "Microsoft/Windows/Standard").

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

Parameters:
type - The license type (ex. "Microsoft/Windows/Standard").
Returns:
A reference to this updated object so that method calls can be chained together.

getPool

public String getPool()
The name of the pool in which the license is kept.

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

setPool

public void setPool(String pool)
The name of the pool in which the license is kept.

Parameters:
pool - The name of the pool in which the license is kept.

withPool

public License withPool(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.

Parameters:
pool - The name of the pool in which the license is kept.
Returns:
A reference to this updated object so that method calls can be chained together.

getCapacities

public 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.

Returns:
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(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.

Parameters:
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.

Parameters:
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 updated object so that method calls can be chained together.

withCapacities

public License withCapacities(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.

Parameters:
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 updated object so that method calls can be chained together.

getTags

public List<Tag> getTags()
A list of tags for the License.

Returns:
A list of tags for the License.

setTags

public void setTags(Collection<Tag> tags)
A list of tags for the License.

Parameters:
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.

Parameters:
tags - A list of tags for the License.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public License withTags(Collection<Tag> tags)
A list of tags for the License.

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

Parameters:
tags - A list of tags for the License.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.