Class CfnStorageLensGroup.MatchObjectAgeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnStorageLensGroup.MatchObjectAgeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLensGroup.MatchObjectAgeProperty>
- Enclosing interface:
CfnStorageLensGroup.MatchObjectAgeProperty
@Stability(Stable)
public static final class CfnStorageLensGroup.MatchObjectAgeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLensGroup.MatchObjectAgeProperty>
A builder for
CfnStorageLensGroup.MatchObjectAgeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.daysGreaterThan
(Number daysGreaterThan) Sets the value ofCfnStorageLensGroup.MatchObjectAgeProperty.getDaysGreaterThan()
daysLessThan
(Number daysLessThan) Sets the value ofCfnStorageLensGroup.MatchObjectAgeProperty.getDaysLessThan()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
daysGreaterThan
@Stability(Stable) public CfnStorageLensGroup.MatchObjectAgeProperty.Builder daysGreaterThan(Number daysGreaterThan) Sets the value ofCfnStorageLensGroup.MatchObjectAgeProperty.getDaysGreaterThan()
- Parameters:
daysGreaterThan
- This property indicates the minimum object age in days.- Returns:
this
-
daysLessThan
@Stability(Stable) public CfnStorageLensGroup.MatchObjectAgeProperty.Builder daysLessThan(Number daysLessThan) Sets the value ofCfnStorageLensGroup.MatchObjectAgeProperty.getDaysLessThan()
- Parameters:
daysLessThan
- This property indicates the maximum object age in days.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStorageLensGroup.MatchObjectAgeProperty>
- Returns:
- a new instance of
CfnStorageLensGroup.MatchObjectAgeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-