Interface SearchResourcesResponse.Builder

  • Method Details

    • matchingResources

      SearchResourcesResponse.Builder matchingResources(Collection<MatchingResource> matchingResources)

      An array of objects, one for each resource that matches the filter criteria specified in the request.

      Parameters:
      matchingResources - An array of objects, one for each resource that matches the filter criteria specified in the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchingResources

      SearchResourcesResponse.Builder matchingResources(MatchingResource... matchingResources)

      An array of objects, one for each resource that matches the filter criteria specified in the request.

      Parameters:
      matchingResources - An array of objects, one for each resource that matches the filter criteria specified in the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchingResources

      SearchResourcesResponse.Builder matchingResources(Consumer<MatchingResource.Builder>... matchingResources)

      An array of objects, one for each resource that matches the filter criteria specified in the request.

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

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

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

      The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

      Parameters:
      nextToken - The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.