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

      ListSessionsResponse.Builder sessions(Session... 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 Session.Builder avoiding the need to create one manually via Session.builder().

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

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

      ListSessionsResponse.Builder nextToken(String nextToken)

      The pagination token to use in a subsequent ListSessions call to retrieve the next page of results. This field is absent when there are no more results.

      Parameters:
      nextToken - The pagination token to use in a subsequent ListSessions call to retrieve the next page of results. This field is absent when there are no more results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.