public class BundleInstanceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<BundleInstanceRequest>
Contains the parameters for BundleInstance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
instanceId
The ID of the instance to bundle.
|
private Storage |
storage
The bucket in which to store the AMI.
|
NOOP
Constructor and Description |
---|
BundleInstanceRequest()
Default constructor for BundleInstanceRequest object.
|
BundleInstanceRequest(java.lang.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(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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String instanceId
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
private 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()
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 void setInstanceId(java.lang.String instanceId)
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
instanceId
- The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
public java.lang.String getInstanceId()
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
Type: String
Default: None
Required: Yes
public BundleInstanceRequest withInstanceId(java.lang.String instanceId)
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
instanceId
- The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
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.
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 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.
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.
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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public BundleInstanceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()