Interface ListWorkgroupsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListWorkgroupsResponse.Builder,ListWorkgroupsResponse>,RedshiftServerlessResponse.Builder,SdkBuilder<ListWorkgroupsResponse.Builder,ListWorkgroupsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListWorkgroupsResponse
public static interface ListWorkgroupsResponse.Builder extends RedshiftServerlessResponse.Builder, SdkPojo, CopyableBuilder<ListWorkgroupsResponse.Builder,ListWorkgroupsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListWorkgroupsResponse.BuildernextToken(String nextToken)IfnextTokenis returned, there are more results available.ListWorkgroupsResponse.Builderworkgroups(Collection<Workgroup> workgroups)The returned array of workgroups.ListWorkgroupsResponse.Builderworkgroups(Consumer<Workgroup.Builder>... workgroups)The returned array of workgroups.ListWorkgroupsResponse.Builderworkgroups(Workgroup... workgroups)The returned array of workgroups.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.redshiftserverless.model.RedshiftServerlessResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
nextToken
ListWorkgroupsResponse.Builder nextToken(String nextToken)
If
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. To retrieve the next page, make the call again using the returned token.- Parameters:
nextToken- IfnextTokenis returned, there are more results available. The value ofnextTokenis 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
ListWorkgroupsResponse.Builder workgroups(Collection<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
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
ListWorkgroupsResponse.Builder workgroups(Consumer<Workgroup.Builder>... workgroups)
The returned array of workgroups.
This is a convenience method that creates an instance of theWorkgroup.Builderavoiding the need to create one manually viaWorkgroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#workgroups(List.) - Parameters:
workgroups- a consumer that will call methods onWorkgroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#workgroups(java.util.Collection)
-
-