public class DeactivateLicenseRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DeactivateLicenseRequest>
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.
Constructor and Description |
---|
DeactivateLicenseRequest()
Default constructor for a new DeactivateLicenseRequest object.
|
DeactivateLicenseRequest(String licenseId,
Integer capacity)
Constructs a new DeactivateLicenseRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getCapacity()
Specifies the amount of capacity to deactivate against the license.
|
Request<DeactivateLicenseRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
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.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 Request<DeactivateLicenseRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeactivateLicenseRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.