public class ActivateLicenseRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ActivateLicenseRequest>
ActivateLicense operation
.
Activates a specific number of licenses for a 90-day period. Activations can be done against a specific license ID.
Constructor and Description |
---|
ActivateLicenseRequest()
Default constructor for a new ActivateLicenseRequest object.
|
ActivateLicenseRequest(String licenseId,
Integer capacity)
Constructs a new ActivateLicenseRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getCapacity()
Specifies the additional number of licenses to activate.
|
Request<ActivateLicenseRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
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.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 Request<ActivateLicenseRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ActivateLicenseRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.