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