com.amazonaws.services.ec2.model
Class DeregisterImageRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DeregisterImageRequest
All Implemented Interfaces:
DryRunSupportedRequest<DeregisterImageRequest>, java.io.Serializable

public class DeregisterImageRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<DeregisterImageRequest>

Container for the parameters to the DeregisterImage operation.

Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances.

This command does not delete the AMI.

See Also:
AmazonEC2.deregisterImage(DeregisterImageRequest), Serialized Form

Constructor Summary
DeregisterImageRequest()
          Default constructor for a new DeregisterImageRequest object.
DeregisterImageRequest(java.lang.String imageId)
          Constructs a new DeregisterImageRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<DeregisterImageRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getImageId()
          The ID of the AMI.
 int hashCode()
           
 void setImageId(java.lang.String imageId)
          The ID of the AMI.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeregisterImageRequest withImageId(java.lang.String imageId)
          The ID of the AMI.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeregisterImageRequest

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


DeregisterImageRequest

public DeregisterImageRequest(java.lang.String imageId)
Constructs a new DeregisterImageRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
imageId - The ID of the AMI.
Method Detail

getImageId

public java.lang.String getImageId()
The ID of the AMI.

Returns:
The ID of the AMI.

setImageId

public void setImageId(java.lang.String imageId)
The ID of the AMI.

Parameters:
imageId - The ID of the AMI.

withImageId

public DeregisterImageRequest withImageId(java.lang.String imageId)
The ID of the AMI.

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

Parameters:
imageId - The ID of the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<DeregisterImageRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<DeregisterImageRequest>

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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