com.amazonaws.services.ec2.model
Class License

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

public class License
extends java.lang.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
 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.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

License

public License()
Method Detail

getLicenseId

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

Returns:
The unique ID identifying the license.

setLicenseId

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

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

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 java.lang.String getType()
The license type (ex. "Microsoft/Windows/Standard").

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

setType

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

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

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 java.lang.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(java.lang.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(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.

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

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

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

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 java.util.List<Tag> getTags()
A list of tags for the License.

Returns:
A list of tags for the License.

setTags

public void setTags(java.util.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(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.

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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

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


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