Interface ListWorkgroupsResponse.Builder

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

  • Method Details

    • nextToken

      ListWorkgroupsResponse.Builder nextToken(String nextToken)

      If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token.

      Parameters:
      nextToken - If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workgroups

      The returned array of workgroups.

      Parameters:
      workgroups - The returned array of workgroups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workgroups

      ListWorkgroupsResponse.Builder workgroups(Workgroup... workgroups)

      The returned array of workgroups.

      Parameters:
      workgroups - The returned array of workgroups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workgroups

      The returned array of workgroups.

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

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

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