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 AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanA description for the instance being imported.The disk image.This method is intended for internal use only.The launch specification.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.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 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
-
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:
getDryRunRequestin interfaceDryRunSupportedRequest<ImportInstanceRequest>
-
toString
-
equals
-
hashCode
-
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:
-