Interface FindingStatistics.Builder

  • Method Details

    • 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.
    • groupedByAccount

      FindingStatistics.Builder groupedByAccount(Consumer<AccountStatistics.Builder>... groupedByAccount)

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to groupedByAccount(List<AccountStatistics>).

      Parameters:
      groupedByAccount - a consumer that will call methods on AccountStatistics.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • groupedByDate

      FindingStatistics.Builder groupedByDate(Consumer<DateStatistics.Builder>... groupedByDate)

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to groupedByDate(List<DateStatistics>).

      Parameters:
      groupedByDate - a consumer that will call methods on DateStatistics.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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<FindingTypeStatistics>).

      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:
    • 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.
    • groupedByResource

      FindingStatistics.Builder groupedByResource(Consumer<ResourceStatistics.Builder>... groupedByResource)

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to groupedByResource(List<ResourceStatistics>).

      Parameters:
      groupedByResource - a consumer that will call methods on ResourceStatistics.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • groupedBySeverity

      FindingStatistics.Builder groupedBySeverity(Consumer<SeverityStatistics.Builder>... groupedBySeverity)

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to groupedBySeverity(List<SeverityStatistics>).

      Parameters:
      groupedBySeverity - a consumer that will call methods on SeverityStatistics.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: