com.amazonaws.services.ec2.model
Class BundleInstanceRequest

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

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

Container for the parameters to the BundleInstance operation.

Bundles an Amazon instance store-backed Windows instance.

During bundling, only the root device volume (C:\) is bundled. Data on other instance store volumes is not preserved.

NOTE: This procedure is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

For more information, see Creating an Instance Store-Backed Windows AMI .

See Also:
AmazonEC2.bundleInstance(BundleInstanceRequest), Serialized Form

Constructor Summary
BundleInstanceRequest()
          Default constructor for a new BundleInstanceRequest object.
BundleInstanceRequest(java.lang.String instanceId, Storage storage)
          Constructs a new BundleInstanceRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<BundleInstanceRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getInstanceId()
          The ID of the instance to bundle.
 Storage getStorage()
          The bucket in which to store the AMI.
 int hashCode()
           
 void setInstanceId(java.lang.String instanceId)
          The ID of the instance to bundle.
 void setStorage(Storage storage)
          The bucket in which to store the AMI.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 BundleInstanceRequest withInstanceId(java.lang.String instanceId)
          The ID of the instance to bundle.
 BundleInstanceRequest withStorage(Storage storage)
          The bucket in which to store 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

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(java.lang.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 - The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
Method Detail

getInstanceId

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

Returns:
The ID of the instance to bundle.

setInstanceId

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

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

withInstanceId

public BundleInstanceRequest withInstanceId(java.lang.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()
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

Returns:
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

setStorage

public void setStorage(Storage storage)
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

Parameters:
storage - The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

withStorage

public BundleInstanceRequest withStorage(Storage storage)
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

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

Parameters:
storage - The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<BundleInstanceRequest> 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<BundleInstanceRequest>

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.