Package com.amazonaws.services.ec2.model
Class ImportInstanceRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ImportInstanceRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ImportInstanceRequest>
,Serializable
,Cloneable
public class ImportInstanceRequest
extends AmazonWebServiceRequest
implements Serializable, Cloneable, DryRunSupportedRequest<ImportInstanceRequest>
Contains the parameters for ImportInstance.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A description for the instance being imported.The disk image.This method is intended for internal use only.The launch specification.The instance operating system.int
hashCode()
void
setDescription
(String description) A description for the instance being imported.void
setDiskImages
(Collection<DiskImage> diskImages) The disk image.void
setLaunchSpecification
(ImportInstanceLaunchSpecification launchSpecification) The launch specification.void
setPlatform
(PlatformValues platform) The instance operating system.void
setPlatform
(String platform) The instance operating system.toString()
Returns a string representation of this object; useful for testing and debugging.withDescription
(String description) A description for the instance being imported.withDiskImages
(DiskImage... diskImages) The disk image.withDiskImages
(Collection<DiskImage> diskImages) The disk image.withLaunchSpecification
(ImportInstanceLaunchSpecification launchSpecification) The launch specification.withPlatform
(PlatformValues platform) The instance operating system.withPlatform
(String platform) The instance operating system.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
-
ImportInstanceRequest
public ImportInstanceRequest()
-
-
Method Details
-
setDescription
A description for the instance being imported.
- Parameters:
description
- A description for the instance being imported.
-
getDescription
A description for the instance being imported.
- Returns:
- A description for the instance being imported.
-
withDescription
A description for the instance being imported.
- Parameters:
description
- A description for the instance being imported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLaunchSpecification
The launch specification.
- Parameters:
launchSpecification
- The launch specification.
-
getLaunchSpecification
The launch specification.
- Returns:
- The launch specification.
-
withLaunchSpecification
public ImportInstanceRequest withLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification) The launch specification.
- Parameters:
launchSpecification
- The launch specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDiskImages
The disk image.
- Returns:
- The disk image.
-
setDiskImages
The disk image.
- Parameters:
diskImages
- The disk image.
-
withDiskImages
The disk image.
NOTE: This method appends the values to the existing list (if any). Use
setDiskImages(java.util.Collection)
orwithDiskImages(java.util.Collection)
if you want to override the existing values.- Parameters:
diskImages
- The disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDiskImages
The disk image.
- Parameters:
diskImages
- The disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlatform
The instance operating system.
- Parameters:
platform
- The instance operating system.- See Also:
-
getPlatform
The instance operating system.
- Returns:
- The instance operating system.
- See Also:
-
withPlatform
The instance operating system.
- Parameters:
platform
- The instance operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setPlatform
The instance operating system.
- Parameters:
platform
- The instance operating system.- See Also:
-
withPlatform
The instance operating system.
- Parameters:
platform
- The instance operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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<ImportInstanceRequest>
-
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:
-