Class CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionConfiguration.FastLaunchConfigurationProperty>
- Enclosing interface:
CfnDistributionConfiguration.FastLaunchConfigurationProperty
@Stability(Stable)
public static final class CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionConfiguration.FastLaunchConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.enabled
(IResolvable enabled) launchTemplate
(IResolvable launchTemplate) launchTemplate
(CfnDistributionConfiguration.FastLaunchLaunchTemplateSpecificationProperty launchTemplate) maxParallelLaunches
(Number maxParallelLaunches) snapshotConfiguration
(IResolvable snapshotConfiguration) snapshotConfiguration
(CfnDistributionConfiguration.FastLaunchSnapshotConfigurationProperty snapshotConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Stable) public CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder accountId(String accountId) - Parameters:
accountId
- The owner account ID for the fast-launch enabled Windows AMI.- Returns:
this
-
enabled
@Stability(Stable) public CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder enabled(Boolean enabled) - Parameters:
enabled
- A Boolean that represents the current state of faster launching for the Windows AMI. Set totrue
to start using Windows faster launching, orfalse
to stop using it.- Returns:
this
-
enabled
@Stability(Stable) public CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder enabled(IResolvable enabled) - Parameters:
enabled
- A Boolean that represents the current state of faster launching for the Windows AMI. Set totrue
to start using Windows faster launching, orfalse
to stop using it.- Returns:
this
-
launchTemplate
@Stability(Stable) public CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder launchTemplate(IResolvable launchTemplate) - 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
-
launchTemplate
@Stability(Stable) public CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder launchTemplate(CfnDistributionConfiguration.FastLaunchLaunchTemplateSpecificationProperty launchTemplate) - 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(Stable) public CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder maxParallelLaunches(Number maxParallelLaunches) Sets the value ofCfnDistributionConfiguration.FastLaunchConfigurationProperty.getMaxParallelLaunches()
- Parameters:
maxParallelLaunches
- The maximum number of parallel instances that are launched for creating resources.- Returns:
this
-
snapshotConfiguration
@Stability(Stable) public CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder snapshotConfiguration(IResolvable snapshotConfiguration) Sets the value ofCfnDistributionConfiguration.FastLaunchConfigurationProperty.getSnapshotConfiguration()
- Parameters:
snapshotConfiguration
- Configuration settings for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled.- Returns:
this
-
snapshotConfiguration
@Stability(Stable) public CfnDistributionConfiguration.FastLaunchConfigurationProperty.Builder snapshotConfiguration(CfnDistributionConfiguration.FastLaunchSnapshotConfigurationProperty snapshotConfiguration) Sets the value ofCfnDistributionConfiguration.FastLaunchConfigurationProperty.getSnapshotConfiguration()
- Parameters:
snapshotConfiguration
- Configuration settings for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistributionConfiguration.FastLaunchConfigurationProperty>
- Returns:
- a new instance of
CfnDistributionConfiguration.FastLaunchConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-