public class BundleInstanceRequest extends AmazonWebServiceRequest implements java.io.Serializable, 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 .
Constructor and Description |
---|
BundleInstanceRequest()
Default constructor for a new BundleInstanceRequest object.
|
BundleInstanceRequest(java.lang.String instanceId,
Storage storage)
Constructs a new BundleInstanceRequest object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public BundleInstanceRequest()
public BundleInstanceRequest(java.lang.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 java.lang.String getInstanceId()
Type: String
Default: None
Required: Yes
Type: String
Default: None
Required: Yes
public void setInstanceId(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.