Interface ImportInstanceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ImportInstanceRequest.Builder,
,ImportInstanceRequest> Ec2Request.Builder
,SdkBuilder<ImportInstanceRequest.Builder,
,ImportInstanceRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ImportInstanceRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) A description for the instance being imported.diskImages
(Collection<DiskImage> diskImages) The disk image.diskImages
(Consumer<DiskImage.Builder>... diskImages) The disk image.diskImages
(DiskImage... diskImages) The disk image.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.default ImportInstanceRequest.Builder
launchSpecification
(Consumer<ImportInstanceLaunchSpecification.Builder> launchSpecification) The launch specification.launchSpecification
(ImportInstanceLaunchSpecification launchSpecification) The launch specification.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The instance operating system.platform
(PlatformValues platform) The instance operating system.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 instance being imported.
- Parameters:
description
- A description for the instance being imported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diskImages
The disk image.
- Parameters:
diskImages
- The disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diskImages
The disk image.
- Parameters:
diskImages
- The disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diskImages
The disk image.
This is a convenience method that creates an instance of theDiskImage.Builder
avoiding the need to create one manually viaDiskImage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todiskImages(List<DiskImage>)
.- Parameters:
diskImages
- a consumer that will call methods onDiskImage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchSpecification
ImportInstanceRequest.Builder launchSpecification(ImportInstanceLaunchSpecification launchSpecification) The launch specification.
- Parameters:
launchSpecification
- The launch specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchSpecification
default ImportInstanceRequest.Builder launchSpecification(Consumer<ImportInstanceLaunchSpecification.Builder> launchSpecification) The launch specification.
This is a convenience method that creates an instance of theImportInstanceLaunchSpecification.Builder
avoiding the need to create one manually viaImportInstanceLaunchSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchSpecification(ImportInstanceLaunchSpecification)
.- Parameters:
launchSpecification
- a consumer that will call methods onImportInstanceLaunchSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The instance operating system.
- Parameters:
platform
- The instance operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The instance operating system.
- Parameters:
platform
- The instance operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ImportInstanceRequest.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
ImportInstanceRequest.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.
-