Class CfnStorageLensGroup.FilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnStorageLensGroup.FilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLensGroup.FilterProperty>
- Enclosing interface:
CfnStorageLensGroup.FilterProperty
@Stability(Stable)
public static final class CfnStorageLensGroup.FilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLensGroup.FilterProperty>
A builder for
CfnStorageLensGroup.FilterProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionand
(IResolvable and) Sets the value ofCfnStorageLensGroup.FilterProperty.getAnd()
Sets the value ofCfnStorageLensGroup.FilterProperty.getAnd()
build()
Builds the configured instance.matchAnyPrefix
(List<String> matchAnyPrefix) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchAnyPrefix()
matchAnySuffix
(List<String> matchAnySuffix) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchAnySuffix()
matchAnyTag
(List<? extends Object> matchAnyTag) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchAnyTag()
matchAnyTag
(IResolvable matchAnyTag) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchAnyTag()
matchObjectAge
(IResolvable matchObjectAge) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchObjectAge()
matchObjectAge
(CfnStorageLensGroup.MatchObjectAgeProperty matchObjectAge) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchObjectAge()
matchObjectSize
(IResolvable matchObjectSize) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchObjectSize()
matchObjectSize
(CfnStorageLensGroup.MatchObjectSizeProperty matchObjectSize) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchObjectSize()
or
(IResolvable or) Sets the value ofCfnStorageLensGroup.FilterProperty.getOr()
Sets the value ofCfnStorageLensGroup.FilterProperty.getOr()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
and
Sets the value ofCfnStorageLensGroup.FilterProperty.getAnd()
- Parameters:
and
- This property contains theAnd
logical operator, which allows multiple filter conditions to be joined for more complex comparisons of Storage Lens group data. Objects must match all of the listed filter conditions that are joined by theAnd
logical operator. Only one of each filter condition is allowed.- Returns:
this
-
and
@Stability(Stable) public CfnStorageLensGroup.FilterProperty.Builder and(CfnStorageLensGroup.AndProperty and) Sets the value ofCfnStorageLensGroup.FilterProperty.getAnd()
- Parameters:
and
- This property contains theAnd
logical operator, which allows multiple filter conditions to be joined for more complex comparisons of Storage Lens group data. Objects must match all of the listed filter conditions that are joined by theAnd
logical operator. Only one of each filter condition is allowed.- Returns:
this
-
matchAnyPrefix
@Stability(Stable) public CfnStorageLensGroup.FilterProperty.Builder matchAnyPrefix(List<String> matchAnyPrefix) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchAnyPrefix()
- Parameters:
matchAnyPrefix
- This property contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.- Returns:
this
-
matchAnySuffix
@Stability(Stable) public CfnStorageLensGroup.FilterProperty.Builder matchAnySuffix(List<String> matchAnySuffix) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchAnySuffix()
- Parameters:
matchAnySuffix
- This property contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.- Returns:
this
-
matchAnyTag
@Stability(Stable) public CfnStorageLensGroup.FilterProperty.Builder matchAnyTag(IResolvable matchAnyTag) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchAnyTag()
- Parameters:
matchAnyTag
- This property contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.- Returns:
this
-
matchAnyTag
@Stability(Stable) public CfnStorageLensGroup.FilterProperty.Builder matchAnyTag(List<? extends Object> matchAnyTag) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchAnyTag()
- Parameters:
matchAnyTag
- This property contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.- Returns:
this
-
matchObjectAge
@Stability(Stable) public CfnStorageLensGroup.FilterProperty.Builder matchObjectAge(IResolvable matchObjectAge) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchObjectAge()
- Parameters:
matchObjectAge
- This property containsDaysGreaterThan
andDaysLessThan
to define the object age range (minimum and maximum number of days).- Returns:
this
-
matchObjectAge
@Stability(Stable) public CfnStorageLensGroup.FilterProperty.Builder matchObjectAge(CfnStorageLensGroup.MatchObjectAgeProperty matchObjectAge) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchObjectAge()
- Parameters:
matchObjectAge
- This property containsDaysGreaterThan
andDaysLessThan
to define the object age range (minimum and maximum number of days).- Returns:
this
-
matchObjectSize
@Stability(Stable) public CfnStorageLensGroup.FilterProperty.Builder matchObjectSize(IResolvable matchObjectSize) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchObjectSize()
- Parameters:
matchObjectSize
- This property containsBytesGreaterThan
andBytesLessThan
to define the object size range (minimum and maximum number of Bytes).- Returns:
this
-
matchObjectSize
@Stability(Stable) public CfnStorageLensGroup.FilterProperty.Builder matchObjectSize(CfnStorageLensGroup.MatchObjectSizeProperty matchObjectSize) Sets the value ofCfnStorageLensGroup.FilterProperty.getMatchObjectSize()
- Parameters:
matchObjectSize
- This property containsBytesGreaterThan
andBytesLessThan
to define the object size range (minimum and maximum number of Bytes).- Returns:
this
-
or
Sets the value ofCfnStorageLensGroup.FilterProperty.getOr()
- Parameters:
or
- This property contains theOr
logical operator, which allows multiple filter conditions to be joined. Objects can match any of the listed filter conditions, which are joined by theOr
logical operator. Only one of each filter condition is allowed.- Returns:
this
-
or
@Stability(Stable) public CfnStorageLensGroup.FilterProperty.Builder or(CfnStorageLensGroup.OrProperty or) Sets the value ofCfnStorageLensGroup.FilterProperty.getOr()
- Parameters:
or
- This property contains theOr
logical operator, which allows multiple filter conditions to be joined. Objects can match any of the listed filter conditions, which are joined by theOr
logical operator. Only one of each filter condition is allowed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStorageLensGroup.FilterProperty>
- Returns:
- a new instance of
CfnStorageLensGroup.FilterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-