Interface ListSessionsResponse.Builder

  • Method Details

    • nextToken

      ListSessionsResponse.Builder nextToken(String nextToken)

      If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

      Parameters:
      nextToken - If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionSummaries

      ListSessionsResponse.Builder sessionSummaries(Collection<SessionSummary> sessionSummaries)

      A list of summaries for each session in your Amazon Web Services account.

      Parameters:
      sessionSummaries - A list of summaries for each session in your Amazon Web Services account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionSummaries

      ListSessionsResponse.Builder sessionSummaries(SessionSummary... sessionSummaries)

      A list of summaries for each session in your Amazon Web Services account.

      Parameters:
      sessionSummaries - A list of summaries for each session in your Amazon Web Services account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionSummaries

      ListSessionsResponse.Builder sessionSummaries(Consumer<SessionSummary.Builder>... sessionSummaries)

      A list of summaries for each session in your Amazon Web Services account.

      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 sessionSummaries(List<SessionSummary>).

      Parameters:
      sessionSummaries - 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: