Interface DescribeHostReservationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeHostReservationsResponse.Builder,,DescribeHostReservationsResponse> Ec2Response.Builder,SdkBuilder<DescribeHostReservationsResponse.Builder,,DescribeHostReservationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeHostReservationsResponse
public static interface DescribeHostReservationsResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeHostReservationsResponse.Builder,DescribeHostReservationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionhostReservationSet(Collection<HostReservation> hostReservationSet) Details about the reservation's configuration.hostReservationSet(Consumer<HostReservation.Builder>... hostReservationSet) Details about the reservation's configuration.hostReservationSet(HostReservation... hostReservationSet) Details about the reservation's configuration.The token to use to retrieve the next page of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
hostReservationSet
DescribeHostReservationsResponse.Builder hostReservationSet(Collection<HostReservation> hostReservationSet) Details about the reservation's configuration.
- Parameters:
hostReservationSet- Details about the reservation's configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostReservationSet
Details about the reservation's configuration.
- Parameters:
hostReservationSet- Details about the reservation's configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostReservationSet
DescribeHostReservationsResponse.Builder hostReservationSet(Consumer<HostReservation.Builder>... hostReservationSet) Details about the reservation's configuration.
This is a convenience method that creates an instance of theHostReservation.Builderavoiding the need to create one manually viaHostReservation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohostReservationSet(List<HostReservation>).- Parameters:
hostReservationSet- a consumer that will call methods onHostReservation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to retrieve the next page of results. This value is
nullwhen there are no more results to return.- Parameters:
nextToken- The token to use to retrieve the next page of results. This value isnullwhen there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-