Interface SearchResponse.Builder

    • Method Detail

      • count

        SearchResponse.Builder count​(ResourceCount count)

        The number of resources that match the query.

        Parameters:
        count - The number of resources that match the query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        SearchResponse.Builder nextToken​(String nextToken)

        If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours.

        Parameters:
        nextToken - If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resources

        SearchResponse.Builder resources​(Collection<Resource> resources)

        The list of structures that describe the resources that match the query.

        Parameters:
        resources - The list of structures that describe the resources that match the query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resources

        SearchResponse.Builder resources​(Resource... resources)

        The list of structures that describe the resources that match the query.

        Parameters:
        resources - The list of structures that describe the resources that match the query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resources

        SearchResponse.Builder resources​(Consumer<Resource.Builder>... resources)

        The list of structures that describe the resources that match the query.

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

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

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