Class CfnStorageLensGroup.OrProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnStorageLensGroup.OrProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLensGroup.OrProperty>
- Enclosing interface:
CfnStorageLensGroup.OrProperty
@Stability(Stable)
public static final class CfnStorageLensGroup.OrProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLensGroup.OrProperty>
A builder for
CfnStorageLensGroup.OrProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.matchAnyPrefix(List<String> matchAnyPrefix) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchAnyPrefix()matchAnySuffix(List<String> matchAnySuffix) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchAnySuffix()matchAnyTag(List<? extends Object> matchAnyTag) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchAnyTag()matchAnyTag(IResolvable matchAnyTag) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchAnyTag()matchObjectAge(IResolvable matchObjectAge) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchObjectAge()matchObjectAge(CfnStorageLensGroup.MatchObjectAgeProperty matchObjectAge) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchObjectAge()matchObjectSize(IResolvable matchObjectSize) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchObjectSize()matchObjectSize(CfnStorageLensGroup.MatchObjectSizeProperty matchObjectSize) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchObjectSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
matchAnyPrefix
@Stability(Stable) public CfnStorageLensGroup.OrProperty.Builder matchAnyPrefix(List<String> matchAnyPrefix) Sets the value ofCfnStorageLensGroup.OrProperty.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.OrProperty.Builder matchAnySuffix(List<String> matchAnySuffix) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchAnySuffix()- Parameters:
matchAnySuffix- This property contains the list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.- Returns:
this
-
matchAnyTag
@Stability(Stable) public CfnStorageLensGroup.OrProperty.Builder matchAnyTag(IResolvable matchAnyTag) Sets the value ofCfnStorageLensGroup.OrProperty.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.OrProperty.Builder matchAnyTag(List<? extends Object> matchAnyTag) Sets the value ofCfnStorageLensGroup.OrProperty.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.OrProperty.Builder matchObjectAge(IResolvable matchObjectAge) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchObjectAge()- Parameters:
matchObjectAge- This property filters objects that match the specified object age range.- Returns:
this
-
matchObjectAge
@Stability(Stable) public CfnStorageLensGroup.OrProperty.Builder matchObjectAge(CfnStorageLensGroup.MatchObjectAgeProperty matchObjectAge) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchObjectAge()- Parameters:
matchObjectAge- This property filters objects that match the specified object age range.- Returns:
this
-
matchObjectSize
@Stability(Stable) public CfnStorageLensGroup.OrProperty.Builder matchObjectSize(IResolvable matchObjectSize) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchObjectSize()- Parameters:
matchObjectSize- This property contains theBytesGreaterThanandBytesLessThanvalues to define the object size range (minimum and maximum number of Bytes).- Returns:
this
-
matchObjectSize
@Stability(Stable) public CfnStorageLensGroup.OrProperty.Builder matchObjectSize(CfnStorageLensGroup.MatchObjectSizeProperty matchObjectSize) Sets the value ofCfnStorageLensGroup.OrProperty.getMatchObjectSize()- Parameters:
matchObjectSize- This property contains theBytesGreaterThanandBytesLessThanvalues to define the object size range (minimum and maximum number of Bytes).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStorageLensGroup.OrProperty>- Returns:
- a new instance of
CfnStorageLensGroup.OrProperty - Throws:
NullPointerException- if any required attribute was not provided
-