Interface DescribeReservedInstancesListingsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeReservedInstancesListingsResponse.Builder,
,DescribeReservedInstancesListingsResponse> Ec2Response.Builder
,SdkBuilder<DescribeReservedInstancesListingsResponse.Builder,
,DescribeReservedInstancesListingsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeReservedInstancesListingsResponse
public static interface DescribeReservedInstancesListingsResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeReservedInstancesListingsResponse.Builder,DescribeReservedInstancesListingsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionreservedInstancesListings
(Collection<ReservedInstancesListing> reservedInstancesListings) Information about the Reserved Instance listing.reservedInstancesListings
(Consumer<ReservedInstancesListing.Builder>... reservedInstancesListings) Information about the Reserved Instance listing.reservedInstancesListings
(ReservedInstancesListing... reservedInstancesListings) Information about the Reserved Instance listing.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
-
reservedInstancesListings
DescribeReservedInstancesListingsResponse.Builder reservedInstancesListings(Collection<ReservedInstancesListing> reservedInstancesListings) Information about the Reserved Instance listing.
- Parameters:
reservedInstancesListings
- Information about the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstancesListings
DescribeReservedInstancesListingsResponse.Builder reservedInstancesListings(ReservedInstancesListing... reservedInstancesListings) Information about the Reserved Instance listing.
- Parameters:
reservedInstancesListings
- Information about the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstancesListings
DescribeReservedInstancesListingsResponse.Builder reservedInstancesListings(Consumer<ReservedInstancesListing.Builder>... reservedInstancesListings) Information about the Reserved Instance listing.
This is a convenience method that creates an instance of theReservedInstancesListing.Builder
avoiding the need to create one manually viaReservedInstancesListing.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreservedInstancesListings(List<ReservedInstancesListing>)
.- Parameters:
reservedInstancesListings
- a consumer that will call methods onReservedInstancesListing.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-