Interface InventoryAggregateResult.Builder

  • Method Details

    • aggregate

      The aggregate this result reports.

      Parameters:
      aggregate - The aggregate this result reports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • aggregate

      The aggregate this result reports.

      Parameters:
      aggregate - The aggregate this result reports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      COMPLETE results include Groups; FAILED results omit them.

      Parameters:
      status - COMPLETE results include Groups; FAILED results omit them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      COMPLETE results include Groups; FAILED results omit them.

      Parameters:
      status - COMPLETE results include Groups; FAILED results omit them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • updatedAt

      When this aggregate's counts were last recomputed, in UTC. EXPIRY_WINDOW measures days remaining from this time. Absent when Status is FAILED, or when the organization's counts have not been computed yet.

      Parameters:
      updatedAt - When this aggregate's counts were last recomputed, in UTC. EXPIRY_WINDOW measures days remaining from this time. Absent when Status is FAILED, or when the organization's counts have not been computed yet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groups

      Present only when Status is COMPLETE. Can be empty for a ranked aggregate.

      Parameters:
      groups - Present only when Status is COMPLETE. Can be empty for a ranked aggregate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groups

      Present only when Status is COMPLETE. Can be empty for a ranked aggregate.

      Parameters:
      groups - Present only when Status is COMPLETE. Can be empty for a ranked aggregate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groups

      Present only when Status is COMPLETE. Can be empty for a ranked aggregate.

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

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

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

      InventoryAggregateResult.Builder otherCount(Long otherCount)

      The total count of certificates in ranked groups beyond the 100 returned. Absent when every group was returned.

      Parameters:
      otherCount - The total count of certificates in ranked groups beyond the 100 returned. Absent when every group was returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificateTypeGroups

      InventoryAggregateResult.Builder certificateTypeGroups(Collection<InventoryCertificateTypeGroup> certificateTypeGroups)

      The severity groups of each certificate type. Present only on a COMPLETE HIGHEST_FINDING_SEVERITY result requested with GroupBy CERTIFICATE_TYPE. Groups still holds the severity groups of all certificate types. A certificate type with no certificates is omitted. The rest are ordered alphabetically by CertificateType value.

      Parameters:
      certificateTypeGroups - The severity groups of each certificate type. Present only on a COMPLETE HIGHEST_FINDING_SEVERITY result requested with GroupBy CERTIFICATE_TYPE. Groups still holds the severity groups of all certificate types. A certificate type with no certificates is omitted. The rest are ordered alphabetically by CertificateType value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificateTypeGroups

      InventoryAggregateResult.Builder certificateTypeGroups(InventoryCertificateTypeGroup... certificateTypeGroups)

      The severity groups of each certificate type. Present only on a COMPLETE HIGHEST_FINDING_SEVERITY result requested with GroupBy CERTIFICATE_TYPE. Groups still holds the severity groups of all certificate types. A certificate type with no certificates is omitted. The rest are ordered alphabetically by CertificateType value.

      Parameters:
      certificateTypeGroups - The severity groups of each certificate type. Present only on a COMPLETE HIGHEST_FINDING_SEVERITY result requested with GroupBy CERTIFICATE_TYPE. Groups still holds the severity groups of all certificate types. A certificate type with no certificates is omitted. The rest are ordered alphabetically by CertificateType value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificateTypeGroups

      InventoryAggregateResult.Builder certificateTypeGroups(Consumer<InventoryCertificateTypeGroup.Builder>... certificateTypeGroups)

      The severity groups of each certificate type. Present only on a COMPLETE HIGHEST_FINDING_SEVERITY result requested with GroupBy CERTIFICATE_TYPE. Groups still holds the severity groups of all certificate types. A certificate type with no certificates is omitted. The rest are ordered alphabetically by CertificateType value.

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

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

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