|
|||||||
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.DeactivateLicenseRequest
public class DeactivateLicenseRequest
Container for the parameters to the DeactivateLicense operation
.
Deactivates a specific number of licenses. Deactivations can be done against a specific license ID after they have persisted for at least a 90-day period.
AmazonEC2.deactivateLicense(DeactivateLicenseRequest)
Constructor Summary | |
---|---|
DeactivateLicenseRequest()
Default constructor for a new DeactivateLicenseRequest object. |
|
DeactivateLicenseRequest(java.lang.String licenseId,
java.lang.Integer capacity)
Constructs a new DeactivateLicenseRequest object. |
Method Summary | |
---|---|
java.lang.Integer |
getCapacity()
Specifies the amount of capacity to deactivate against the license. |
java.lang.String |
getLicenseId()
Specifies the ID for the specific license to deactivate against. |
void |
setCapacity(java.lang.Integer capacity)
Specifies the amount of capacity to deactivate against the license. |
void |
setLicenseId(java.lang.String licenseId)
Specifies the ID for the specific license to deactivate against. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
DeactivateLicenseRequest |
withCapacity(java.lang.Integer capacity)
Specifies the amount of capacity to deactivate against the license. |
DeactivateLicenseRequest |
withLicenseId(java.lang.String licenseId)
Specifies the ID for the specific license to deactivate against. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeactivateLicenseRequest()
public DeactivateLicenseRequest(java.lang.String licenseId, java.lang.Integer capacity)
licenseId
- Specifies the ID for the specific license to
deactivate against.capacity
- Specifies the amount of capacity to deactivate against
the license.Method Detail |
---|
public java.lang.String getLicenseId()
public void setLicenseId(java.lang.String licenseId)
licenseId
- Specifies the ID for the specific license to deactivate against.public DeactivateLicenseRequest 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 deactivate against.
public java.lang.Integer getCapacity()
public void setCapacity(java.lang.Integer capacity)
capacity
- Specifies the amount of capacity to deactivate against the license.public DeactivateLicenseRequest withCapacity(java.lang.Integer capacity)
Returns a reference to this object so that method calls can be chained together.
capacity
- Specifies the amount of capacity to deactivate against the license.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |