Interface ListWorldsResponse.Builder

  • Method Details

    • worldSummaries

      ListWorldsResponse.Builder worldSummaries(Collection<WorldSummary> worldSummaries)

      Summary information for worlds.

      Parameters:
      worldSummaries - Summary information for worlds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • worldSummaries

      ListWorldsResponse.Builder worldSummaries(WorldSummary... worldSummaries)

      Summary information for worlds.

      Parameters:
      worldSummaries - Summary information for worlds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • worldSummaries

      ListWorldsResponse.Builder worldSummaries(Consumer<WorldSummary.Builder>... worldSummaries)

      Summary information for worlds.

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

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

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

      ListWorldsResponse.Builder nextToken(String nextToken)

      If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListWorlds again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

      Parameters:
      nextToken - If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListWorlds again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
      Returns:
      Returns a reference to this object so that method calls can be chained together.