Interface GetGroupsForCapacityReservationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetGroupsForCapacityReservationResponse.Builder,
,GetGroupsForCapacityReservationResponse> Ec2Response.Builder
,SdkBuilder<GetGroupsForCapacityReservationResponse.Builder,
,GetGroupsForCapacityReservationResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetGroupsForCapacityReservationResponse
public static interface GetGroupsForCapacityReservationResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<GetGroupsForCapacityReservationResponse.Builder,GetGroupsForCapacityReservationResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncapacityReservationGroups
(Collection<CapacityReservationGroup> capacityReservationGroups) Information about the resource groups to which the Capacity Reservation has been added.capacityReservationGroups
(Consumer<CapacityReservationGroup.Builder>... capacityReservationGroups) Information about the resource groups to which the Capacity Reservation has been added.capacityReservationGroups
(CapacityReservationGroup... capacityReservationGroups) Information about the resource groups to which the Capacity Reservation has been added.The token to use to retrieve the next page of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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
-
nextToken
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.- Parameters:
nextToken
- The token to use to retrieve the next page of results. This value isnull
when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationGroups
GetGroupsForCapacityReservationResponse.Builder capacityReservationGroups(Collection<CapacityReservationGroup> capacityReservationGroups) Information about the resource groups to which the Capacity Reservation has been added.
- Parameters:
capacityReservationGroups
- Information about the resource groups to which the Capacity Reservation has been added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationGroups
GetGroupsForCapacityReservationResponse.Builder capacityReservationGroups(CapacityReservationGroup... capacityReservationGroups) Information about the resource groups to which the Capacity Reservation has been added.
- Parameters:
capacityReservationGroups
- Information about the resource groups to which the Capacity Reservation has been added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationGroups
GetGroupsForCapacityReservationResponse.Builder capacityReservationGroups(Consumer<CapacityReservationGroup.Builder>... capacityReservationGroups) Information about the resource groups to which the Capacity Reservation has been added.
This is a convenience method that creates an instance of theCapacityReservationGroup.Builder
avoiding the need to create one manually viaCapacityReservationGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityReservationGroups(List<CapacityReservationGroup>)
.- Parameters:
capacityReservationGroups
- a consumer that will call methods onCapacityReservationGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-