Interface ResourceCount.Builder

  • Method Details

    • complete

      ResourceCount.Builder complete(Boolean complete)

      Indicates whether the TotalResources value represents an exhaustive count of search results.

      • If True, it indicates that the search was exhaustive. Every resource that matches the query was counted.

      • If False, then the search reached the limit of 1,000 matching results, and stopped counting.

      Parameters:
      complete - Indicates whether the TotalResources value represents an exhaustive count of search results.

      • If True, it indicates that the search was exhaustive. Every resource that matches the query was counted.

      • If False, then the search reached the limit of 1,000 matching results, and stopped counting.

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

      ResourceCount.Builder totalResources(Long totalResources)

      The number of resources that match the search query. This value can't exceed 1,000. If there are more than 1,000 resources that match the query, then only 1,000 are counted and the Complete field is set to false. We recommend that you refine your query to return a smaller number of results.

      Parameters:
      totalResources - The number of resources that match the search query. This value can't exceed 1,000. If there are more than 1,000 resources that match the query, then only 1,000 are counted and the Complete field is set to false. We recommend that you refine your query to return a smaller number of results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.