Interface CreateReservedInstancesListingResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateReservedInstancesListingResponse.Builder,,CreateReservedInstancesListingResponse> Ec2Response.Builder,SdkBuilder<CreateReservedInstancesListingResponse.Builder,,CreateReservedInstancesListingResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateReservedInstancesListingResponse
@Mutable
@NotThreadSafe
public static interface CreateReservedInstancesListingResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateReservedInstancesListingResponse.Builder,CreateReservedInstancesListingResponse>
-
Method Summary
Modifier and TypeMethodDescriptionreservedInstancesListings(Collection<ReservedInstancesListing> reservedInstancesListings) Information about the Standard Reserved Instance listing.reservedInstancesListings(Consumer<ReservedInstancesListing.Builder>... reservedInstancesListings) Information about the Standard Reserved Instance listing.reservedInstancesListings(ReservedInstancesListing... reservedInstancesListings) Information about the Standard Reserved Instance listing.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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
reservedInstancesListings
CreateReservedInstancesListingResponse.Builder reservedInstancesListings(Collection<ReservedInstancesListing> reservedInstancesListings) Information about the Standard Reserved Instance listing.
- Parameters:
reservedInstancesListings- Information about the Standard Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstancesListings
CreateReservedInstancesListingResponse.Builder reservedInstancesListings(ReservedInstancesListing... reservedInstancesListings) Information about the Standard Reserved Instance listing.
- Parameters:
reservedInstancesListings- Information about the Standard Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstancesListings
CreateReservedInstancesListingResponse.Builder reservedInstancesListings(Consumer<ReservedInstancesListing.Builder>... reservedInstancesListings) Information about the Standard Reserved Instance listing.
This is a convenience method that creates an instance of theReservedInstancesListing.Builderavoiding the need to create one manually viaReservedInstancesListing.builder().When the
Consumercompletes,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:
-