Interface ListSessionsResponse.Builder

  • Method Details

    • sessions

      The output lists information about the specified sessions.

      Parameters:
      sessions - The output lists information about the specified sessions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessions

      The output lists information about the specified sessions.

      Parameters:
      sessions - The output lists information about the specified sessions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessions

      The output lists information about the specified sessions.

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

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

      Parameters:
      sessions - a consumer that will call methods on SessionSummary.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 output displays the token for the next set of session results. This is required for pagination and is available as a response of the previous request.

      Parameters:
      nextToken - The output displays the token for the next set of session results. This is required for pagination and is available as a response of the previous request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.