public class BundleInstanceRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<BundleInstanceRequest>
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.
| Constructor and Description |
|---|
BundleInstanceRequest()
Default constructor for a new BundleInstanceRequest object.
|
BundleInstanceRequest(String instanceId,
Storage storage)
Constructs a new BundleInstanceRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Request<BundleInstanceRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic BundleInstanceRequest()
public BundleInstanceRequest(String instanceId, Storage storage)
instanceId - The ID of the instance to bundle.storage - public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId - The ID of the instance to bundle.public BundleInstanceRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The ID of the instance to bundle.public Storage getStorage()
public void setStorage(Storage storage)
storage - public BundleInstanceRequest withStorage(Storage storage)
Returns a reference to this object so that method calls can be chained together.
storage - public Request<BundleInstanceRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<BundleInstanceRequest>public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.