|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ActivateLicenseRequest
public class ActivateLicenseRequest
Container for the parameters to the ActivateLicense operation.
Activates a specific number of licenses for a 90-day period. Activations can be done against a specific license ID.
AmazonEC2.activateLicense(ActivateLicenseRequest)| Constructor Summary | |
|---|---|
ActivateLicenseRequest()
Default constructor for a new ActivateLicenseRequest object. |
|
ActivateLicenseRequest(String licenseId,
Integer capacity)
Constructs a new ActivateLicenseRequest object. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Integer |
getCapacity()
Specifies the additional number of licenses to activate. |
String |
getLicenseId()
Specifies the ID for the specific license to activate against. |
int |
hashCode()
|
void |
setCapacity(Integer capacity)
Specifies the additional number of licenses to activate. |
void |
setLicenseId(String licenseId)
Specifies the ID for the specific license to activate against. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ActivateLicenseRequest |
withCapacity(Integer capacity)
Specifies the additional number of licenses to activate. |
ActivateLicenseRequest |
withLicenseId(String licenseId)
Specifies the ID for the specific license to activate against. |
| Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
|---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ActivateLicenseRequest()
public ActivateLicenseRequest(String licenseId,
Integer capacity)
licenseId - Specifies the ID for the specific license to activate
against.capacity - Specifies the additional number of licenses to
activate.| Method Detail |
|---|
public String getLicenseId()
public void setLicenseId(String licenseId)
licenseId - Specifies the ID for the specific license to activate against.public ActivateLicenseRequest withLicenseId(String licenseId)
Returns a reference to this object so that method calls can be chained together.
licenseId - Specifies the ID for the specific license to activate against.
public Integer getCapacity()
public void setCapacity(Integer capacity)
capacity - Specifies the additional number of licenses to activate.public ActivateLicenseRequest withCapacity(Integer capacity)
Returns a reference to this object so that method calls can be chained together.
capacity - Specifies the additional number of licenses to activate.
public String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||