Interface EnableFastLaunchRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<EnableFastLaunchRequest.Builder,
,EnableFastLaunchRequest> Ec2Request.Builder
,SdkBuilder<EnableFastLaunchRequest.Builder,
,EnableFastLaunchRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
EnableFastLaunchRequest
-
Method Summary
Modifier and TypeMethodDescriptionChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.Specify the ID of the image for which to enable Windows fast launch.default EnableFastLaunchRequest.Builder
launchTemplate
(Consumer<FastLaunchLaunchTemplateSpecificationRequest.Builder> launchTemplate) The launch template to use when launching Windows instances from pre-provisioned snapshots.launchTemplate
(FastLaunchLaunchTemplateSpecificationRequest launchTemplate) The launch template to use when launching Windows instances from pre-provisioned snapshots.maxParallelLaunches
(Integer maxParallelLaunches) The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows fast launch.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceType
(String resourceType) The type of resource to use for pre-provisioning the AMI for Windows fast launch.default EnableFastLaunchRequest.Builder
snapshotConfiguration
(Consumer<FastLaunchSnapshotConfigurationRequest.Builder> snapshotConfiguration) Configuration settings for creating and managing the snapshots that are used for pre-provisioning the AMI for Windows fast launch.snapshotConfiguration
(FastLaunchSnapshotConfigurationRequest snapshotConfiguration) Configuration settings for creating and managing the snapshots that are used for pre-provisioning the AMI for Windows fast launch.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
-
imageId
Specify the ID of the image for which to enable Windows fast launch.
- Parameters:
imageId
- Specify the ID of the image for which to enable Windows fast launch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The type of resource to use for pre-provisioning the AMI for Windows fast launch. Supported values include:
snapshot
, which is the default value.- Parameters:
resourceType
- The type of resource to use for pre-provisioning the AMI for Windows fast launch. Supported values include:snapshot
, which is the default value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotConfiguration
EnableFastLaunchRequest.Builder snapshotConfiguration(FastLaunchSnapshotConfigurationRequest snapshotConfiguration) Configuration settings for creating and managing the snapshots that are used for pre-provisioning the AMI for Windows fast launch. The associated
ResourceType
must besnapshot
.- Parameters:
snapshotConfiguration
- Configuration settings for creating and managing the snapshots that are used for pre-provisioning the AMI for Windows fast launch. The associatedResourceType
must besnapshot
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotConfiguration
default EnableFastLaunchRequest.Builder snapshotConfiguration(Consumer<FastLaunchSnapshotConfigurationRequest.Builder> snapshotConfiguration) Configuration settings for creating and managing the snapshots that are used for pre-provisioning the AMI for Windows fast launch. The associated
This is a convenience method that creates an instance of theResourceType
must besnapshot
.FastLaunchSnapshotConfigurationRequest.Builder
avoiding the need to create one manually viaFastLaunchSnapshotConfigurationRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosnapshotConfiguration(FastLaunchSnapshotConfigurationRequest)
.- Parameters:
snapshotConfiguration
- a consumer that will call methods onFastLaunchSnapshotConfigurationRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
launchTemplate
EnableFastLaunchRequest.Builder launchTemplate(FastLaunchLaunchTemplateSpecificationRequest launchTemplate) The launch template to use when launching Windows instances from pre-provisioned snapshots. Launch template parameters can include either the name or ID of the launch template, but not both.
- Parameters:
launchTemplate
- The launch template to use when launching Windows instances from pre-provisioned snapshots. Launch template parameters can include either the name or ID of the launch template, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplate
default EnableFastLaunchRequest.Builder launchTemplate(Consumer<FastLaunchLaunchTemplateSpecificationRequest.Builder> launchTemplate) The launch template to use when launching Windows instances from pre-provisioned snapshots. Launch template parameters can include either the name or ID of the launch template, but not both.
This is a convenience method that creates an instance of theFastLaunchLaunchTemplateSpecificationRequest.Builder
avoiding the need to create one manually viaFastLaunchLaunchTemplateSpecificationRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplate(FastLaunchLaunchTemplateSpecificationRequest)
.- Parameters:
launchTemplate
- a consumer that will call methods onFastLaunchLaunchTemplateSpecificationRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxParallelLaunches
The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows fast launch. Value must be
6
or greater.- Parameters:
maxParallelLaunches
- The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows fast launch. Value must be6
or greater.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
overrideConfiguration
EnableFastLaunchRequest.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
EnableFastLaunchRequest.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.
-