Interface ListWorkspacesResponse.Builder

All Superinterfaces:
AmpResponse.Builder, AwsResponse.Builder, Buildable, CopyableBuilder<ListWorkspacesResponse.Builder,ListWorkspacesResponse>, SdkBuilder<ListWorkspacesResponse.Builder,ListWorkspacesResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
ListWorkspacesResponse

public static interface ListWorkspacesResponse.Builder extends AmpResponse.Builder, SdkPojo, CopyableBuilder<ListWorkspacesResponse.Builder,ListWorkspacesResponse>
  • Method Details

    • nextToken

      ListWorkspacesResponse.Builder nextToken(String nextToken)

      A token indicating that there are more results to retrieve. You can use this token as part of your next ListWorkspaces request to retrieve those results.

      Parameters:
      nextToken - A token indicating that there are more results to retrieve. You can use this token as part of your next ListWorkspaces request to retrieve those results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workspaces

      An array of WorkspaceSummary structures containing information about the workspaces requested.

      Parameters:
      workspaces - An array of WorkspaceSummary structures containing information about the workspaces requested.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workspaces

      An array of WorkspaceSummary structures containing information about the workspaces requested.

      Parameters:
      workspaces - An array of WorkspaceSummary structures containing information about the workspaces requested.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workspaces

      An array of WorkspaceSummary structures containing information about the workspaces requested.

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

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

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