public class InstanceLicense extends Object implements Serializable
Represents an active license in use and attached to an Amazon EC2 instance.
Constructor and Description |
---|
InstanceLicense() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getPool()
The license pool from which this license was used (ex:
'windows' ). |
int |
hashCode() |
void |
setPool(String pool)
The license pool from which this license was used (ex:
'windows' ). |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceLicense |
withPool(String pool)
The license pool from which this license was used (ex:
'windows' ). |
public String getPool()
'windows'
).'windows'
).public void setPool(String pool)
'windows'
).pool
- The license pool from which this license was used (ex:
'windows'
).public InstanceLicense withPool(String pool)
'windows'
).
Returns a reference to this object so that method calls can be chained together.
pool
- The license pool from which this license was used (ex:
'windows'
).public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.