Class FastLaunchConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.FastLaunchConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FastLaunchConfiguration>
- Enclosing interface:
FastLaunchConfiguration
@Stability(Experimental)
public static final class FastLaunchConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<FastLaunchConfiguration>
A builder for
FastLaunchConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofFastLaunchConfiguration.getEnabled()launchTemplate(ILaunchTemplate launchTemplate) Sets the value ofFastLaunchConfiguration.getLaunchTemplate()maxParallelLaunches(Number maxParallelLaunches) Sets the value ofFastLaunchConfiguration.getMaxParallelLaunches()targetSnapshotCount(Number targetSnapshotCount) Sets the value ofFastLaunchConfiguration.getTargetSnapshotCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofFastLaunchConfiguration.getEnabled()- Parameters:
enabled- Whether to enable fast launch for the AMI.- Returns:
this
-
launchTemplate
@Stability(Experimental) public FastLaunchConfiguration.Builder launchTemplate(ILaunchTemplate launchTemplate) Sets the value ofFastLaunchConfiguration.getLaunchTemplate()- Parameters:
launchTemplate- The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots.- Returns:
this
-
maxParallelLaunches
@Stability(Experimental) public FastLaunchConfiguration.Builder maxParallelLaunches(Number maxParallelLaunches) Sets the value ofFastLaunchConfiguration.getMaxParallelLaunches()- Parameters:
maxParallelLaunches- The maximum number of parallel instances that are launched for creating resources.- Returns:
this
-
targetSnapshotCount
@Stability(Experimental) public FastLaunchConfiguration.Builder targetSnapshotCount(Number targetSnapshotCount) Sets the value ofFastLaunchConfiguration.getTargetSnapshotCount()- Parameters:
targetSnapshotCount- The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FastLaunchConfiguration>- Returns:
- a new instance of
FastLaunchConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-