Interface ListInstancesRequest.Builder

    • Method Detail

      • filters

        ListInstancesRequest.Builder filters​(Collection<Filter> filters)

        An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify.

        Parameters:
        filters - An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        ListInstancesRequest.Builder filters​(Filter... filters)

        An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify.

        Parameters:
        filters - An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        ListInstancesRequest.Builder filters​(Consumer<Filter.Builder>... filters)

        An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify.

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

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

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

        ListInstancesRequest.Builder maxResults​(Integer maxResults)

        Maximum number of results to return in a single call.

        Parameters:
        maxResults - Maximum number of results to return in a single call.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        ListInstancesRequest.Builder nextToken​(String nextToken)

        Token for the next set of results.

        Parameters:
        nextToken - Token for the next set of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.