Interface ListWorkGroupsResponse.Builder
-
- All Superinterfaces:
AthenaResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<ListWorkGroupsResponse.Builder,ListWorkGroupsResponse>
,SdkBuilder<ListWorkGroupsResponse.Builder,ListWorkGroupsResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- ListWorkGroupsResponse
public static interface ListWorkGroupsResponse.Builder extends AthenaResponse.Builder, SdkPojo, CopyableBuilder<ListWorkGroupsResponse.Builder,ListWorkGroupsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListWorkGroupsResponse.Builder
nextToken(String nextToken)
A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated.ListWorkGroupsResponse.Builder
workGroups(Collection<WorkGroupSummary> workGroups)
A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.ListWorkGroupsResponse.Builder
workGroups(Consumer<WorkGroupSummary.Builder>... workGroups)
A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.ListWorkGroupsResponse.Builder
workGroups(WorkGroupSummary... workGroups)
A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.-
Methods inherited from interface software.amazon.awssdk.services.athena.model.AthenaResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
workGroups
ListWorkGroupsResponse.Builder workGroups(Collection<WorkGroupSummary> workGroups)
A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.
- Parameters:
workGroups
- A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workGroups
ListWorkGroupsResponse.Builder workGroups(WorkGroupSummary... workGroups)
A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.
- Parameters:
workGroups
- A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workGroups
ListWorkGroupsResponse.Builder workGroups(Consumer<WorkGroupSummary.Builder>... workGroups)
A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.
This is a convenience method that creates an instance of theWorkGroupSummary.Builder
avoiding the need to create one manually viaWorkGroupSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#workGroups(List
.) - Parameters:
workGroups
- a consumer that will call methods onWorkGroupSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#workGroups(java.util.Collection
)
-
nextToken
ListWorkGroupsResponse.Builder nextToken(String nextToken)
A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextToken
from the response object of the previous page call.- Parameters:
nextToken
- A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in theNextToken
from the response object of the previous page call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-