Interface ExportImageTask.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ExportImageTask.Builder,,ExportImageTask> SdkBuilder<ExportImageTask.Builder,,ExportImageTask> SdkPojo
- Enclosing class:
ExportImageTask
-
Method Summary
Modifier and TypeMethodDescriptionamiDescription(String amiDescription) The description that will be applied to the exported EC2 AMI.The ID of the EC2 AMI that was created by this export task.The name of the EC2 AMI that will be created by this export task.createdDate(Instant createdDate) The date and time when the export image task was created.errorDetails(Collection<ErrorDetails> errorDetails) Details about any errors that occurred during the export process.errorDetails(Consumer<ErrorDetails.Builder>... errorDetails) Details about any errors that occurred during the export process.errorDetails(ErrorDetails... errorDetails) Details about any errors that occurred during the export process.The ARN of the WorkSpaces Applications image being exported.The current state of the export image task, such as PENDING, RUNNING, COMPLETED, or FAILED.state(ExportImageTaskState state) The current state of the export image task, such as PENDING, RUNNING, COMPLETED, or FAILED.tagSpecifications(Map<String, String> tagSpecifications) The tags that will be applied to the exported EC2 AMI.The unique identifier for the export image task.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
taskId
The unique identifier for the export image task. Use this ID to track the task's progress and retrieve its details.
- Parameters:
taskId- The unique identifier for the export image task. Use this ID to track the task's progress and retrieve its details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageArn
The ARN of the WorkSpaces Applications image being exported.
- Parameters:
imageArn- The ARN of the WorkSpaces Applications image being exported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amiName
The name of the EC2 AMI that will be created by this export task.
- Parameters:
amiName- The name of the EC2 AMI that will be created by this export task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdDate
The date and time when the export image task was created.
- Parameters:
createdDate- The date and time when the export image task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amiDescription
The description that will be applied to the exported EC2 AMI.
- Parameters:
amiDescription- The description that will be applied to the exported EC2 AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of the export image task, such as PENDING, RUNNING, COMPLETED, or FAILED.
- Parameters:
state- The current state of the export image task, such as PENDING, RUNNING, COMPLETED, or FAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the export image task, such as PENDING, RUNNING, COMPLETED, or FAILED.
- Parameters:
state- The current state of the export image task, such as PENDING, RUNNING, COMPLETED, or FAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
amiId
The ID of the EC2 AMI that was created by this export task. This field is only populated when the task completes successfully.
- Parameters:
amiId- The ID of the EC2 AMI that was created by this export task. This field is only populated when the task completes successfully.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
The tags that will be applied to the exported EC2 AMI.
- Parameters:
tagSpecifications- The tags that will be applied to the exported EC2 AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
Details about any errors that occurred during the export process. This field is only populated when the task fails.
- Parameters:
errorDetails- Details about any errors that occurred during the export process. This field is only populated when the task fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
Details about any errors that occurred during the export process. This field is only populated when the task fails.
- Parameters:
errorDetails- Details about any errors that occurred during the export process. This field is only populated when the task fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
Details about any errors that occurred during the export process. This field is only populated when the task fails.
This is a convenience method that creates an instance of theErrorDetails.Builderavoiding the need to create one manually viaErrorDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrorDetails(List<ErrorDetails>).- Parameters:
errorDetails- a consumer that will call methods onErrorDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-