Class BundleInstanceRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.BundleInstanceRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<BundleInstanceRequest>
,Serializable
,Cloneable
public class BundleInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<BundleInstanceRequest>
Contains the parameters for BundleInstance.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description BundleInstanceRequest()
Default constructor for BundleInstanceRequest object.BundleInstanceRequest(String instanceId, Storage storage)
Constructs a new BundleInstanceRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Constructor Detail
-
BundleInstanceRequest
public BundleInstanceRequest()
Default constructor for BundleInstanceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
BundleInstanceRequest
public BundleInstanceRequest(String instanceId, Storage storage)
Constructs a new BundleInstanceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
- Parameters:
instanceId
- The ID of the instance to bundle.Type: String
Default: None
Required: Yes
-
getInstanceId
public String getInstanceId()
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
- Returns:
- The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
-
withInstanceId
public BundleInstanceRequest withInstanceId(String instanceId)
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
- Parameters:
instanceId
- The ID of the instance to bundle.Type: String
Default: None
Required: Yes
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStorage
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.
- Parameters:
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.
-
getStorage
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.
- Returns:
- 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.
-
withStorage
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<BundleInstanceRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<BundleInstanceRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public BundleInstanceRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-