Interface ConversionTask.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ConversionTask.Builder,
,ConversionTask> SdkBuilder<ConversionTask.Builder,
,ConversionTask> SdkPojo
- Enclosing class:
ConversionTask
-
Method Summary
Modifier and TypeMethodDescriptionconversionTaskId
(String conversionTaskId) The ID of the conversion task.expirationTime
(String expirationTime) The time when the task expires.default ConversionTask.Builder
importInstance
(Consumer<ImportInstanceTaskDetails.Builder> importInstance) If the task is for importing an instance, this contains information about the import instance task.importInstance
(ImportInstanceTaskDetails importInstance) If the task is for importing an instance, this contains information about the import instance task.default ConversionTask.Builder
importVolume
(Consumer<ImportVolumeTaskDetails.Builder> importVolume) If the task is for importing a volume, this contains information about the import volume task.importVolume
(ImportVolumeTaskDetails importVolume) If the task is for importing a volume, this contains information about the import volume task.The state of the conversion task.state
(ConversionTaskState state) The state of the conversion task.statusMessage
(String statusMessage) The status message related to the conversion task.tags
(Collection<Tag> tags) Any tags assigned to the task.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the task.Any tags assigned to the task.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
conversionTaskId
The ID of the conversion task.
- Parameters:
conversionTaskId
- The ID of the conversion task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expirationTime
The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.
- Parameters:
expirationTime
- The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
importInstance
If the task is for importing an instance, this contains information about the import instance task.
- Parameters:
importInstance
- If the task is for importing an instance, this contains information about the import instance task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
importInstance
default ConversionTask.Builder importInstance(Consumer<ImportInstanceTaskDetails.Builder> importInstance) If the task is for importing an instance, this contains information about the import instance task.
This is a convenience method that creates an instance of theImportInstanceTaskDetails.Builder
avoiding the need to create one manually viaImportInstanceTaskDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimportInstance(ImportInstanceTaskDetails)
.- Parameters:
importInstance
- a consumer that will call methods onImportInstanceTaskDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
importVolume
If the task is for importing a volume, this contains information about the import volume task.
- Parameters:
importVolume
- If the task is for importing a volume, this contains information about the import volume task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
importVolume
If the task is for importing a volume, this contains information about the import volume task.
This is a convenience method that creates an instance of theImportVolumeTaskDetails.Builder
avoiding the need to create one manually viaImportVolumeTaskDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimportVolume(ImportVolumeTaskDetails)
.- Parameters:
importVolume
- a consumer that will call methods onImportVolumeTaskDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the conversion task.
- Parameters:
state
- The state of the conversion task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the conversion task.
- Parameters:
state
- The state of the conversion task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusMessage
The status message related to the conversion task.
- Parameters:
statusMessage
- The status message related to the conversion task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the task.
- Parameters:
tags
- Any tags assigned to the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the task.
- Parameters:
tags
- Any tags assigned to the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the task.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-