Class CfnLifecyclePolicy.FilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.FilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.FilterProperty>
- Enclosing interface:
CfnLifecyclePolicy.FilterProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.FilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.FilterProperty>
A builder for
CfnLifecyclePolicy.FilterProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.retainAtLeast(Number retainAtLeast) Sets the value ofCfnLifecyclePolicy.FilterProperty.getRetainAtLeast()Sets the value ofCfnLifecyclePolicy.FilterProperty.getType()Sets the value ofCfnLifecyclePolicy.FilterProperty.getUnit()Sets the value ofCfnLifecyclePolicy.FilterProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnLifecyclePolicy.FilterProperty.getType()- Parameters:
type- The filter type. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnLifecyclePolicy.FilterProperty.getValue()- Parameters:
value- The filter value. This parameter is required.- Returns:
this
-
retainAtLeast
@Stability(Stable) public CfnLifecyclePolicy.FilterProperty.Builder retainAtLeast(Number retainAtLeast) Sets the value ofCfnLifecyclePolicy.FilterProperty.getRetainAtLeast()- Parameters:
retainAtLeast- The minimum number of Image Builder resources to retain.- Returns:
this
-
unit
Sets the value ofCfnLifecyclePolicy.FilterProperty.getUnit()- Parameters:
unit- A time unit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.FilterProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.FilterProperty - Throws:
NullPointerException- if any required attribute was not provided
-