Class CreateInstanceExportTaskRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.CreateInstanceExportTaskRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<CreateInstanceExportTaskRequest>,Serializable,Cloneable
public class CreateInstanceExportTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateInstanceExportTaskRequest>
Contains the parameters for CreateInstanceExportTask.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateInstanceExportTaskRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateInstanceExportTaskRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetDescription()A description for the conversion task or the resource being exported.Request<CreateInstanceExportTaskRequest>getDryRunRequest()This method is intended for internal use only.ExportToS3TaskSpecificationgetExportToS3Task()The format and location for an instance export task.StringgetInstanceId()The ID of the instance.StringgetTargetEnvironment()The target virtualization environment.inthashCode()voidsetDescription(String description)A description for the conversion task or the resource being exported.voidsetExportToS3Task(ExportToS3TaskSpecification exportToS3Task)The format and location for an instance export task.voidsetInstanceId(String instanceId)The ID of the instance.voidsetTargetEnvironment(ExportEnvironment targetEnvironment)The target virtualization environment.voidsetTargetEnvironment(String targetEnvironment)The target virtualization environment.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateInstanceExportTaskRequestwithDescription(String description)A description for the conversion task or the resource being exported.CreateInstanceExportTaskRequestwithExportToS3Task(ExportToS3TaskSpecification exportToS3Task)The format and location for an instance export task.CreateInstanceExportTaskRequestwithInstanceId(String instanceId)The ID of the instance.CreateInstanceExportTaskRequestwithTargetEnvironment(ExportEnvironment targetEnvironment)The target virtualization environment.CreateInstanceExportTaskRequestwithTargetEnvironment(String targetEnvironment)The target virtualization environment.-
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 conversion task or the resource being exported. The maximum length is 255 bytes.
- Parameters:
description- A description for the conversion task or the resource being exported. The maximum length is 255 bytes.
-
getDescription
public String getDescription()
A description for the conversion task or the resource being exported. The maximum length is 255 bytes.
- Returns:
- A description for the conversion task or the resource being exported. The maximum length is 255 bytes.
-
withDescription
public CreateInstanceExportTaskRequest withDescription(String description)
A description for the conversion task or the resource being exported. The maximum length is 255 bytes.
- Parameters:
description- A description for the conversion task or the resource being exported. The maximum length is 255 bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.
-
getInstanceId
public String getInstanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
public CreateInstanceExportTaskRequest withInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTargetEnvironment
public void setTargetEnvironment(String targetEnvironment)
The target virtualization environment.
- Parameters:
targetEnvironment- The target virtualization environment.- See Also:
ExportEnvironment
-
getTargetEnvironment
public String getTargetEnvironment()
The target virtualization environment.
- Returns:
- The target virtualization environment.
- See Also:
ExportEnvironment
-
withTargetEnvironment
public CreateInstanceExportTaskRequest withTargetEnvironment(String targetEnvironment)
The target virtualization environment.
- Parameters:
targetEnvironment- The target virtualization environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExportEnvironment
-
setTargetEnvironment
public void setTargetEnvironment(ExportEnvironment targetEnvironment)
The target virtualization environment.
- Parameters:
targetEnvironment- The target virtualization environment.- See Also:
ExportEnvironment
-
withTargetEnvironment
public CreateInstanceExportTaskRequest withTargetEnvironment(ExportEnvironment targetEnvironment)
The target virtualization environment.
- Parameters:
targetEnvironment- The target virtualization environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExportEnvironment
-
setExportToS3Task
public void setExportToS3Task(ExportToS3TaskSpecification exportToS3Task)
The format and location for an instance export task.
- Parameters:
exportToS3Task- The format and location for an instance export task.
-
getExportToS3Task
public ExportToS3TaskSpecification getExportToS3Task()
The format and location for an instance export task.
- Returns:
- The format and location for an instance export task.
-
withExportToS3Task
public CreateInstanceExportTaskRequest withExportToS3Task(ExportToS3TaskSpecification exportToS3Task)
The format and location for an instance export task.
- Parameters:
exportToS3Task- The format and location for an instance export task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<CreateInstanceExportTaskRequest> 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<CreateInstanceExportTaskRequest>
-
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 CreateInstanceExportTaskRequest 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()
-
-