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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ImportInstanceRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportInstanceRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetDescription()A description for the instance being imported.List<DiskImage>getDiskImages()The disk image.Request<ImportInstanceRequest>getDryRunRequest()This method is intended for internal use only.ImportInstanceLaunchSpecificationgetLaunchSpecification()The launch specification.StringgetPlatform()The instance operating system.inthashCode()voidsetDescription(String description)A description for the instance being imported.voidsetDiskImages(Collection<DiskImage> diskImages)The disk image.voidsetLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)The launch specification.voidsetPlatform(PlatformValues platform)The instance operating system.voidsetPlatform(String platform)The instance operating system.StringtoString()Returns a string representation of this object; useful for testing and debugging.ImportInstanceRequestwithDescription(String description)A description for the instance being imported.ImportInstanceRequestwithDiskImages(DiskImage... diskImages)The disk image.ImportInstanceRequestwithDiskImages(Collection<DiskImage> diskImages)The disk image.ImportInstanceRequestwithLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)The launch specification.ImportInstanceRequestwithPlatform(PlatformValues platform)The instance operating system.ImportInstanceRequestwithPlatform(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
-
-
-
-
Method Detail
-
setDescription
public void setDescription(String description)
A description for the instance being imported.
- Parameters:
description- A description for the instance being imported.
-
getDescription
public String getDescription()
A description for the instance being imported.
- Returns:
- A description for the instance being imported.
-
withDescription
public ImportInstanceRequest withDescription(String description)
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
public void setLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)
The launch specification.
- Parameters:
launchSpecification- The launch specification.
-
getLaunchSpecification
public ImportInstanceLaunchSpecification 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.
-
setDiskImages
public void setDiskImages(Collection<DiskImage> diskImages)
The disk image.
- Parameters:
diskImages- The disk image.
-
withDiskImages
public ImportInstanceRequest withDiskImages(DiskImage... diskImages)
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
public ImportInstanceRequest withDiskImages(Collection<DiskImage> diskImages)
The disk image.
- Parameters:
diskImages- The disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlatform
public void setPlatform(String platform)
The instance operating system.
- Parameters:
platform- The instance operating system.- See Also:
PlatformValues
-
getPlatform
public String getPlatform()
The instance operating system.
- Returns:
- The instance operating system.
- See Also:
PlatformValues
-
withPlatform
public ImportInstanceRequest withPlatform(String platform)
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:
PlatformValues
-
setPlatform
public void setPlatform(PlatformValues platform)
The instance operating system.
- Parameters:
platform- The instance operating system.- See Also:
PlatformValues
-
withPlatform
public ImportInstanceRequest withPlatform(PlatformValues platform)
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:
PlatformValues
-
getDryRunRequest
public Request<ImportInstanceRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<ImportInstanceRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImportInstanceRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-