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 CreateInstanceExportTaskRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getDescription()
A description for the conversion task or the resource being exported.Request<CreateInstanceExportTaskRequest>
getDryRunRequest()
This method is intended for internal use only.ExportToS3TaskSpecification
getExportToS3Task()
The format and location for an instance export task.String
getInstanceId()
The ID of the instance.String
getTargetEnvironment()
The target virtualization environment.int
hashCode()
void
setDescription(String description)
A description for the conversion task or the resource being exported.void
setExportToS3Task(ExportToS3TaskSpecification exportToS3Task)
The format and location for an instance export task.void
setInstanceId(String instanceId)
The ID of the instance.void
setTargetEnvironment(ExportEnvironment targetEnvironment)
The target virtualization environment.void
setTargetEnvironment(String targetEnvironment)
The target virtualization environment.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateInstanceExportTaskRequest
withDescription(String description)
A description for the conversion task or the resource being exported.CreateInstanceExportTaskRequest
withExportToS3Task(ExportToS3TaskSpecification exportToS3Task)
The format and location for an instance export task.CreateInstanceExportTaskRequest
withInstanceId(String instanceId)
The ID of the instance.CreateInstanceExportTaskRequest
withTargetEnvironment(ExportEnvironment targetEnvironment)
The target virtualization environment.CreateInstanceExportTaskRequest
withTargetEnvironment(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:
getDryRunRequest
in interfaceDryRunSupportedRequest<CreateInstanceExportTaskRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateInstanceExportTaskRequest 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:
Object.clone()
-
-