Interface ListInstanceGroupsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListInstanceGroupsResponse.Builder,
,ListInstanceGroupsResponse> EmrResponse.Builder
,SdkBuilder<ListInstanceGroupsResponse.Builder,
,ListInstanceGroupsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListInstanceGroupsResponse
public static interface ListInstanceGroupsResponse.Builder
extends EmrResponse.Builder, SdkPojo, CopyableBuilder<ListInstanceGroupsResponse.Builder,ListInstanceGroupsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioninstanceGroups
(Collection<InstanceGroup> instanceGroups) The list of instance groups for the cluster and given filters.instanceGroups
(Consumer<InstanceGroup.Builder>... instanceGroups) The list of instance groups for the cluster and given filters.instanceGroups
(InstanceGroup... instanceGroups) The list of instance groups for the cluster and given filters.The pagination token that indicates the next set of results to retrieve.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.emr.model.EmrResponse.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 Details
-
instanceGroups
The list of instance groups for the cluster and given filters.
- Parameters:
instanceGroups
- The list of instance groups for the cluster and given filters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGroups
The list of instance groups for the cluster and given filters.
- Parameters:
instanceGroups
- The list of instance groups for the cluster and given filters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGroups
ListInstanceGroupsResponse.Builder instanceGroups(Consumer<InstanceGroup.Builder>... instanceGroups) The list of instance groups for the cluster and given filters.
This is a convenience method that creates an instance of theInstanceGroup.Builder
avoiding the need to create one manually viaInstanceGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceGroups(List<InstanceGroup>)
.- Parameters:
instanceGroups
- a consumer that will call methods onInstanceGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
marker
The pagination token that indicates the next set of results to retrieve.
- Parameters:
marker
- The pagination token that indicates the next set of results to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-