Interface ListSessionsResponse.Builder

  • Method Details

    • sessions

      The sessions that match the request.

      Parameters:
      sessions - The sessions that match the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessions

      The sessions that match the request.

      Parameters:
      sessions - The sessions that match the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessions

      The sessions that match the request.

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

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

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

      ListSessionsResponse.Builder nextToken(String nextToken)

      A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.

      Parameters:
      nextToken - A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.