@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BundleInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<BundleInstanceRequest>
Contains the parameters for BundleInstance.
NOOP
Constructor and Description |
---|
BundleInstanceRequest()
Default constructor for 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 object for all fields except the handler context.
|
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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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 void setInstanceId(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 String getInstanceId()
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
Type: String
Default: None
Required: Yes
public BundleInstanceRequest withInstanceId(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 String toString()
toString
in class Object
Object.toString()
public BundleInstanceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.