public static interface ConversionTask.Builder extends SdkPojo, CopyableBuilder<ConversionTask.Builder,ConversionTask>
Modifier and Type | Method and Description |
---|---|
ConversionTask.Builder |
conversionTaskId(String conversionTaskId)
The ID of the conversion task.
|
ConversionTask.Builder |
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.
|
ConversionTask.Builder |
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.
|
ConversionTask.Builder |
importVolume(ImportVolumeTaskDetails importVolume)
If the task is for importing a volume, this contains information about the import volume task.
|
ConversionTask.Builder |
state(ConversionTaskState state)
The state of the conversion task.
|
ConversionTask.Builder |
state(String state)
The state of the conversion task.
|
ConversionTask.Builder |
statusMessage(String statusMessage)
The status message related to the conversion task.
|
ConversionTask.Builder |
tags(Collection<Tag> tags)
Any tags assigned to the task.
|
ConversionTask.Builder |
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the task.
|
ConversionTask.Builder |
tags(Tag... tags)
Any tags assigned to the task.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
ConversionTask.Builder conversionTaskId(String conversionTaskId)
The ID of the conversion task.
conversionTaskId
- The ID of the conversion task.ConversionTask.Builder expirationTime(String expirationTime)
The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.
expirationTime
- The time when the task expires. If the upload isn't complete before the expiration time, we
automatically cancel the task.ConversionTask.Builder importInstance(ImportInstanceTaskDetails importInstance)
If the task is for importing an instance, this contains information about the import instance task.
importInstance
- If the task is for importing an instance, this contains information about the import instance task.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 that creates an instance of theImportInstanceTaskDetails.Builder
avoiding the
need to create one manually via ImportInstanceTaskDetails.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to importInstance(ImportInstanceTaskDetails)
.importInstance
- a consumer that will call methods on ImportInstanceTaskDetails.Builder
importInstance(ImportInstanceTaskDetails)
ConversionTask.Builder importVolume(ImportVolumeTaskDetails importVolume)
If the task is for importing a volume, this contains information about the import volume task.
importVolume
- If the task is for importing a volume, this contains information about the import volume 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.
This is a convenience that creates an instance of theImportVolumeTaskDetails.Builder
avoiding the
need to create one manually via ImportVolumeTaskDetails.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to importVolume(ImportVolumeTaskDetails)
.importVolume
- a consumer that will call methods on ImportVolumeTaskDetails.Builder
importVolume(ImportVolumeTaskDetails)
ConversionTask.Builder state(String state)
The state of the conversion task.
state
- The state of the conversion task.ConversionTaskState
,
ConversionTaskState
ConversionTask.Builder state(ConversionTaskState state)
The state of the conversion task.
state
- The state of the conversion task.ConversionTaskState
,
ConversionTaskState
ConversionTask.Builder statusMessage(String statusMessage)
The status message related to the conversion task.
statusMessage
- The status message related to the conversion task.ConversionTask.Builder tags(Collection<Tag> tags)
Any tags assigned to the task.
tags
- Any tags assigned to the task.ConversionTask.Builder tags(Tag... tags)
Any tags assigned to the task.
tags
- Any tags assigned to the task.ConversionTask.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the task.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
Copyright © 2020. All rights reserved.