com.amazonaws.services.ec2.model
Class DeactivateLicenseRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DeactivateLicenseRequest

public class DeactivateLicenseRequest
extends AmazonWebServiceRequest

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.

See Also:
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

DeactivateLicenseRequest

public DeactivateLicenseRequest()
Default constructor for a new DeactivateLicenseRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeactivateLicenseRequest

public DeactivateLicenseRequest(String licenseId,
                                Integer capacity)
Constructs a new DeactivateLicenseRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
licenseId - Specifies the ID for the specific license to deactivate against.
capacity - Specifies the amount of capacity to deactivate against the license.
Method Detail

getLicenseId

public String getLicenseId()
Specifies the ID for the specific license to deactivate against.

Returns:
Specifies the ID for the specific license to deactivate against.

setLicenseId

public void setLicenseId(String licenseId)
Specifies the ID for the specific license to deactivate against.

Parameters:
licenseId - Specifies the ID for the specific license to deactivate against.

withLicenseId

public DeactivateLicenseRequest withLicenseId(String licenseId)
Specifies the ID for the specific license to deactivate against.

Returns a reference to this object so that method calls can be chained together.

Parameters:
licenseId - Specifies the ID for the specific license to deactivate against.
Returns:
A reference to this updated object so that method calls can be chained together.

getCapacity

public Integer getCapacity()
Specifies the amount of capacity to deactivate against the license.

Returns:
Specifies the amount of capacity to deactivate against the license.

setCapacity

public void setCapacity(Integer capacity)
Specifies the amount of capacity to deactivate against the license.

Parameters:
capacity - Specifies the amount of capacity to deactivate against the license.

withCapacity

public DeactivateLicenseRequest withCapacity(Integer capacity)
Specifies the amount of capacity to deactivate against the license.

Returns a reference to this object so that method calls can be chained together.

Parameters:
capacity - Specifies the amount of capacity to deactivate against the license.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.