Interface StorageLensGroupFilter.Builder

    • Method Detail

      • matchAnyPrefix

        StorageLensGroupFilter.Builder matchAnyPrefix​(Collection<String> matchAnyPrefix)

        Contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.

        Parameters:
        matchAnyPrefix - Contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • matchAnyPrefix

        StorageLensGroupFilter.Builder matchAnyPrefix​(String... matchAnyPrefix)

        Contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.

        Parameters:
        matchAnyPrefix - Contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • matchAnySuffix

        StorageLensGroupFilter.Builder matchAnySuffix​(Collection<String> matchAnySuffix)

        Contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.

        Parameters:
        matchAnySuffix - Contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • matchAnySuffix

        StorageLensGroupFilter.Builder matchAnySuffix​(String... matchAnySuffix)

        Contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.

        Parameters:
        matchAnySuffix - Contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • matchAnyTag

        StorageLensGroupFilter.Builder matchAnyTag​(Collection<S3Tag> matchAnyTag)

        Contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.

        Parameters:
        matchAnyTag - Contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • matchAnyTag

        StorageLensGroupFilter.Builder matchAnyTag​(S3Tag... matchAnyTag)

        Contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.

        Parameters:
        matchAnyTag - Contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • matchAnyTag

        StorageLensGroupFilter.Builder matchAnyTag​(Consumer<S3Tag.Builder>... matchAnyTag)

        Contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.

        This is a convenience method that creates an instance of the S3Tag.Builder avoiding the need to create one manually via S3Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #matchAnyTag(List).

        Parameters:
        matchAnyTag - a consumer that will call methods on S3Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #matchAnyTag(java.util.Collection)
      • matchObjectAge

        StorageLensGroupFilter.Builder matchObjectAge​(MatchObjectAge matchObjectAge)

        Contains DaysGreaterThan and DaysLessThan to define the object age range (minimum and maximum number of days).

        Parameters:
        matchObjectAge - Contains DaysGreaterThan and DaysLessThan to define the object age range (minimum and maximum number of days).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • matchObjectSize

        StorageLensGroupFilter.Builder matchObjectSize​(MatchObjectSize matchObjectSize)

        Contains BytesGreaterThan and BytesLessThan to define the object size range (minimum and maximum number of Bytes).

        Parameters:
        matchObjectSize - Contains BytesGreaterThan and BytesLessThan to define the object size range (minimum and maximum number of Bytes).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • and

        StorageLensGroupFilter.Builder and​(StorageLensGroupAndOperator and)

        A logical operator that 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 the And logical operator. Only one of each filter condition is allowed.

        Parameters:
        and - A logical operator that 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 the And logical operator. Only one of each filter condition is allowed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • or

        StorageLensGroupFilter.Builder or​(StorageLensGroupOrOperator or)

        A single logical operator that allows multiple filter conditions to be joined. Objects can match any of the listed filter conditions, which are joined by the Or logical operator. Only one of each filter condition is allowed.

        Parameters:
        or - A single logical operator that allows multiple filter conditions to be joined. Objects can match any of the listed filter conditions, which are joined by the Or logical operator. Only one of each filter condition is allowed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.