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.BuilderlaunchTemplate(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.BuildersnapshotConfiguration(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
ResourceTypemust besnapshot.- Parameters:
snapshotConfiguration- Configuration settings for creating and managing the snapshots that are used for pre-provisioning the AMI for Windows fast launch. The associatedResourceTypemust 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 theResourceTypemust besnapshot.FastLaunchSnapshotConfigurationRequest.Builderavoiding the need to create one manually viaFastLaunchSnapshotConfigurationRequest.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaFastLaunchLaunchTemplateSpecificationRequest.builder().When the
Consumercompletes,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
6or 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 be6or 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-