|
|||||||
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(String licenseId,
Integer capacity)
Constructs a new DeactivateLicenseRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Integer |
getCapacity()
Specifies the amount of capacity to deactivate against the license. |
String |
getLicenseId()
Specifies the ID for the specific license to deactivate against. |
int |
hashCode()
|
void |
setCapacity(Integer capacity)
Specifies the amount of capacity to deactivate against the license. |
void |
setLicenseId(String licenseId)
Specifies the ID for the specific license to deactivate against. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
DeactivateLicenseRequest |
withCapacity(Integer capacity)
Specifies the amount of capacity to deactivate against the license. |
DeactivateLicenseRequest |
withLicenseId(String licenseId)
Specifies the ID for the specific license to deactivate 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 DeactivateLicenseRequest()
public DeactivateLicenseRequest(String licenseId, 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 String getLicenseId()
public void setLicenseId(String licenseId)
licenseId
- Specifies the ID for the specific license to deactivate against.public DeactivateLicenseRequest 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 deactivate against.
public Integer getCapacity()
public void setCapacity(Integer capacity)
capacity
- Specifies the amount of capacity to deactivate against the license.public DeactivateLicenseRequest withCapacity(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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |