Class CfnLifecyclePolicyPropsMixin.LastLaunchedProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.imagebuilder.mixins.CfnLifecyclePolicyPropsMixin.LastLaunchedProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.LastLaunchedProperty>
- Enclosing interface:
CfnLifecyclePolicyPropsMixin.LastLaunchedProperty
@Stability(Stable)
public static final class CfnLifecyclePolicyPropsMixin.LastLaunchedProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.LastLaunchedProperty>
A builder for
CfnLifecyclePolicyPropsMixin.LastLaunchedProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLifecyclePolicyPropsMixin.LastLaunchedProperty.getUnit()Sets the value ofCfnLifecyclePolicyPropsMixin.LastLaunchedProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
unit
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.LastLaunchedProperty.Builder unit(String unit) Sets the value ofCfnLifecyclePolicyPropsMixin.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. For example: days, weeks, months, or years.- Returns:
this
-
value
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.LastLaunchedProperty.Builder value(Number value) Sets the value ofCfnLifecyclePolicyPropsMixin.LastLaunchedProperty.getValue()- Parameters:
value- The integer number of units for the time period. For example6(months).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.LastLaunchedProperty>- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.LastLaunchedProperty - Throws:
NullPointerException- if any required attribute was not provided
-