Interface FindingStatistics.Builder

    • Method Detail

      • countBySeverity

        @Deprecated
        FindingStatistics.Builder countBySeverity​(Map<String,​Integer> countBySeverity)
        Deprecated.
        This parameter is deprecated. Please set GroupBy to 'SEVERITY' to return GroupedBySeverity instead.

        Represents a list of map of severity to count statistics for a set of findings.

        Parameters:
        countBySeverity - Represents a list of map of severity to count statistics for a set of findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupedByAccount

        FindingStatistics.Builder groupedByAccount​(Collection<AccountStatistics> groupedByAccount)

        Represents a list of map of accounts with a findings count associated with each account.

        Parameters:
        groupedByAccount - Represents a list of map of accounts with a findings count associated with each account.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupedByAccount

        FindingStatistics.Builder groupedByAccount​(AccountStatistics... groupedByAccount)

        Represents a list of map of accounts with a findings count associated with each account.

        Parameters:
        groupedByAccount - Represents a list of map of accounts with a findings count associated with each account.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupedByDate

        FindingStatistics.Builder groupedByDate​(Collection<DateStatistics> groupedByDate)

        Represents a list of map of dates with a count of total findings generated on each date per severity level.

        Parameters:
        groupedByDate - Represents a list of map of dates with a count of total findings generated on each date per severity level.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupedByDate

        FindingStatistics.Builder groupedByDate​(DateStatistics... groupedByDate)

        Represents a list of map of dates with a count of total findings generated on each date per severity level.

        Parameters:
        groupedByDate - Represents a list of map of dates with a count of total findings generated on each date per severity level.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupedByFindingType

        FindingStatistics.Builder groupedByFindingType​(Collection<FindingTypeStatistics> groupedByFindingType)

        Represents a list of map of finding types with a count of total findings generated for each type.

        Based on the orderBy parameter, this request returns either the most occurring finding types or the least occurring finding types. If the orderBy parameter is ASC, this will represent the least occurring finding types in your account; otherwise, this will represent the most occurring finding types. The default value of orderBy is DESC.

        Parameters:
        groupedByFindingType - Represents a list of map of finding types with a count of total findings generated for each type.

        Based on the orderBy parameter, this request returns either the most occurring finding types or the least occurring finding types. If the orderBy parameter is ASC, this will represent the least occurring finding types in your account; otherwise, this will represent the most occurring finding types. The default value of orderBy is DESC.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupedByFindingType

        FindingStatistics.Builder groupedByFindingType​(FindingTypeStatistics... groupedByFindingType)

        Represents a list of map of finding types with a count of total findings generated for each type.

        Based on the orderBy parameter, this request returns either the most occurring finding types or the least occurring finding types. If the orderBy parameter is ASC, this will represent the least occurring finding types in your account; otherwise, this will represent the most occurring finding types. The default value of orderBy is DESC.

        Parameters:
        groupedByFindingType - Represents a list of map of finding types with a count of total findings generated for each type.

        Based on the orderBy parameter, this request returns either the most occurring finding types or the least occurring finding types. If the orderBy parameter is ASC, this will represent the least occurring finding types in your account; otherwise, this will represent the most occurring finding types. The default value of orderBy is DESC.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupedByFindingType

        FindingStatistics.Builder groupedByFindingType​(Consumer<FindingTypeStatistics.Builder>... groupedByFindingType)

        Represents a list of map of finding types with a count of total findings generated for each type.

        Based on the orderBy parameter, this request returns either the most occurring finding types or the least occurring finding types. If the orderBy parameter is ASC, this will represent the least occurring finding types in your account; otherwise, this will represent the most occurring finding types. The default value of orderBy is DESC.

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

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

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

        FindingStatistics.Builder groupedByResource​(Collection<ResourceStatistics> groupedByResource)

        Represents a list of map of top resources with a count of total findings.

        Parameters:
        groupedByResource - Represents a list of map of top resources with a count of total findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupedByResource

        FindingStatistics.Builder groupedByResource​(ResourceStatistics... groupedByResource)

        Represents a list of map of top resources with a count of total findings.

        Parameters:
        groupedByResource - Represents a list of map of top resources with a count of total findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupedBySeverity

        FindingStatistics.Builder groupedBySeverity​(Collection<SeverityStatistics> groupedBySeverity)

        Represents a list of map of total findings for each severity level.

        Parameters:
        groupedBySeverity - Represents a list of map of total findings for each severity level.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupedBySeverity

        FindingStatistics.Builder groupedBySeverity​(SeverityStatistics... groupedBySeverity)

        Represents a list of map of total findings for each severity level.

        Parameters:
        groupedBySeverity - Represents a list of map of total findings for each severity level.
        Returns:
        Returns a reference to this object so that method calls can be chained together.