Interface CreateInstanceExportTaskRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateInstanceExportTaskRequest.Builder,
,CreateInstanceExportTaskRequest> Ec2Request.Builder
,SdkBuilder<CreateInstanceExportTaskRequest.Builder,
,CreateInstanceExportTaskRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateInstanceExportTaskRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) A description for the conversion task or the resource being exported.exportToS3Task
(Consumer<ExportToS3TaskSpecification.Builder> exportToS3Task) The format and location for an export instance task.exportToS3Task
(ExportToS3TaskSpecification exportToS3Task) The format and location for an export instance task.instanceId
(String instanceId) The ID of the instance.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tagSpecifications
(Collection<TagSpecification> tagSpecifications) The tags to apply to the export instance task during creation.tagSpecifications
(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the export instance task during creation.tagSpecifications
(TagSpecification... tagSpecifications) The tags to apply to the export instance task during creation.targetEnvironment
(String targetEnvironment) The target virtualization environment.targetEnvironment
(ExportEnvironment targetEnvironment) The target virtualization environment.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
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
-
description
A description for the conversion task or the resource being exported. The maximum length is 255 characters.
- Parameters:
description
- A description for the conversion task or the resource being exported. The maximum length is 255 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exportToS3Task
The format and location for an export instance task.
- Parameters:
exportToS3Task
- The format and location for an export instance task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exportToS3Task
default CreateInstanceExportTaskRequest.Builder exportToS3Task(Consumer<ExportToS3TaskSpecification.Builder> exportToS3Task) The format and location for an export instance task.
This is a convenience method that creates an instance of theExportToS3TaskSpecification.Builder
avoiding the need to create one manually viaExportToS3TaskSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexportToS3Task(ExportToS3TaskSpecification)
.- Parameters:
exportToS3Task
- a consumer that will call methods onExportToS3TaskSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
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:
-
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:
-
tagSpecifications
CreateInstanceExportTaskRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the export instance task during creation.
- Parameters:
tagSpecifications
- The tags to apply to the export instance task during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
The tags to apply to the export instance task during creation.
- Parameters:
tagSpecifications
- The tags to apply to the export instance task during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateInstanceExportTaskRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the export instance task during creation.
This is a convenience method that creates an instance of theTagSpecification.Builder
avoiding the need to create one manually viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagSpecifications(List<TagSpecification>)
.- Parameters:
tagSpecifications
- a consumer that will call methods onTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateInstanceExportTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateInstanceExportTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-