Interface ListInstancesRequest.Builder

    • Method Detail

      • filters

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

        You can use the following filters to streamline results:

        • Status

        • InstanceId

        Parameters:
        filters - You can use the following filters to streamline results:

        • Status

        • InstanceId

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

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

        You can use the following filters to streamline results:

        • Status

        • InstanceId

        Parameters:
        filters - You can use the following filters to streamline results:

        • Status

        • InstanceId

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

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

        You can use the following filters to streamline results:

        • Status

        • InstanceId

        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)

        The maximum number of results to return from a single request.

        Parameters:
        maxResults - The maximum number of results to return from a single request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        ListInstancesRequest.Builder nextToken​(String nextToken)

        A token to specify where to start paginating. This is the nextToken from a previously truncated response.

        Parameters:
        nextToken - A token to specify where to start paginating. This is the nextToken from a previously truncated response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.