public class BundleInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<BundleInstanceRequest>
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 action 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 .
NOOP
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 |
---|---|
BundleInstanceRequest |
clone()
Creates a shallow clone of this request.
|
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()
The bucket in which to store the AMI.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The ID of the instance to bundle.
|
void |
setStorage(Storage storage)
The bucket in which to store the AMI.
|
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)
The bucket in which to store the AMI.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public BundleInstanceRequest()
public BundleInstanceRequest(String instanceId, Storage storage)
instanceId
- The ID of the instance to bundle. Type: String
Default: None
Required: Yes
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.public String getInstanceId()
Type: String
Default: None
Required: Yes
Type: String
Default: None
Required: Yes
public void setInstanceId(String instanceId)
Type: String
Default: None
Required: Yes
instanceId
- The ID of the instance to bundle. Type: String
Default: None
Required: Yes
public BundleInstanceRequest withInstanceId(String instanceId)
Type: String
Default: None
Required: Yes
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance to bundle. Type: String
Default: None
Required: Yes
public Storage getStorage()
public void setStorage(Storage 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.public BundleInstanceRequest withStorage(Storage storage)
Returns a reference to this object so that method calls can be chained together.
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.public Request<BundleInstanceRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<BundleInstanceRequest>
public String toString()
toString
in class Object
Object.toString()
public BundleInstanceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.