Class CfnLifecyclePolicy.LastLaunchedProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.LastLaunchedProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.LastLaunchedProperty>
- Enclosing interface:
CfnLifecyclePolicy.LastLaunchedProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.LastLaunchedProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.LastLaunchedProperty>
A builder for
CfnLifecyclePolicy.LastLaunchedProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnLifecyclePolicy.LastLaunchedProperty.getUnit()
Sets the value ofCfnLifecyclePolicy.LastLaunchedProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
unit
Sets the value ofCfnLifecyclePolicy.LastLaunchedProperty.getUnit()
- Parameters:
unit
- Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. This parameter is required. For example: days, weeks, months, or years.- Returns:
this
-
value
Sets the value ofCfnLifecyclePolicy.LastLaunchedProperty.getValue()
- Parameters:
value
- The integer number of units for the time period. This parameter is required. For example6
(months).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.LastLaunchedProperty>
- Returns:
- a new instance of
CfnLifecyclePolicy.LastLaunchedProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-