com.amazonaws.services.ec2.model
Class BundleInstanceRequest

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

public class BundleInstanceRequest
extends AmazonWebServiceRequest

Container for the parameters to the BundleInstance operation.

The BundleInstance operation request that an instance is bundled the next time it boots. The bundling process creates a new image from a running instance and stores the AMI data in S3. Once bundled, the image must be registered in the normal way using the RegisterImage API.

See Also:
AmazonEC2.bundleInstance(BundleInstanceRequest)

Constructor Summary
BundleInstanceRequest()
          Default constructor for a new BundleInstanceRequest object.
BundleInstanceRequest(String instanceId, Storage storage)
          Constructs a new BundleInstanceRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getInstanceId()
          The ID of the instance to bundle.
 Storage getStorage()
           
 int hashCode()
           
 void setInstanceId(String instanceId)
          The ID of the instance to bundle.
 void setStorage(Storage storage)
           
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 BundleInstanceRequest withInstanceId(String instanceId)
          The ID of the instance to bundle.
 BundleInstanceRequest withStorage(Storage storage)
           Returns a reference to this object so that method calls can be chained together.
 
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

BundleInstanceRequest

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


BundleInstanceRequest

public BundleInstanceRequest(String instanceId,
                             Storage storage)
Constructs a new BundleInstanceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceId - The ID of the instance to bundle.
storage -
Method Detail

getInstanceId

public String getInstanceId()
The ID of the instance to bundle.

Returns:
The ID of the instance to bundle.

setInstanceId

public void setInstanceId(String instanceId)
The ID of the instance to bundle.

Parameters:
instanceId - The ID of the instance to bundle.

withInstanceId

public BundleInstanceRequest withInstanceId(String instanceId)
The ID of the instance to bundle.

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

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

getStorage

public Storage getStorage()
Returns:

setStorage

public void setStorage(Storage storage)
Parameters:
storage -

withStorage

public BundleInstanceRequest withStorage(Storage storage)

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

Parameters:
storage -
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.