|
Did this page help you?Yes No Tell us about it... |
||||||
| 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),
Serialized Form| Constructor Summary | |
|---|---|
ActivateLicenseRequest()
Default constructor for a new ActivateLicenseRequest object. |
|
ActivateLicenseRequest(java.lang.String licenseId,
java.lang.Integer capacity)
Constructs a new ActivateLicenseRequest object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Integer |
getCapacity()
Specifies the additional number of licenses to activate. |
java.lang.String |
getLicenseId()
Specifies the ID for the specific license to activate against. |
int |
hashCode()
|
void |
setCapacity(java.lang.Integer capacity)
Specifies the additional number of licenses to activate. |
void |
setLicenseId(java.lang.String licenseId)
Specifies the ID for the specific license to activate against. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ActivateLicenseRequest |
withCapacity(java.lang.Integer capacity)
Specifies the additional number of licenses to activate. |
ActivateLicenseRequest |
withLicenseId(java.lang.String licenseId)
Specifies the ID for the specific license to activate against. |
| Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
|---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ActivateLicenseRequest()
public ActivateLicenseRequest(java.lang.String licenseId,
java.lang.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 java.lang.String getLicenseId()
public void setLicenseId(java.lang.String licenseId)
licenseId - Specifies the ID for the specific license to activate against.public ActivateLicenseRequest withLicenseId(java.lang.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 java.lang.Integer getCapacity()
public void setCapacity(java.lang.Integer capacity)
capacity - Specifies the additional number of licenses to activate.public ActivateLicenseRequest withCapacity(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||