Class BundleInstanceRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<BundleInstanceRequest>
,Serializable
,Cloneable
Contains the parameters for BundleInstance.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for BundleInstanceRequest object.BundleInstanceRequest
(String instanceId, Storage storage) Constructs a new BundleInstanceRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
This method is intended for internal use only.The ID of the instance to bundle.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.toString()
Returns a string representation of this object; useful for testing and debugging.withInstanceId
(String instanceId) The ID of the instance to bundle.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 Details
-
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
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 Details
-
setInstanceId
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
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-