@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.
|
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.
Default: None
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.
Default: None
instanceId
- The ID of the instance to bundle.
Default: None
public String getInstanceId()
The ID of the instance to bundle.
Default: None
Default: None
public BundleInstanceRequest withInstanceId(String instanceId)
The ID of the instance to bundle.
Default: None
instanceId
- The ID of the instance to bundle.
Default: None
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()