Interface ListPurchaseOptionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListPurchaseOptionsResponse.Builder,,ListPurchaseOptionsResponse> MarketplaceDiscoveryResponse.Builder,SdkBuilder<ListPurchaseOptionsResponse.Builder,,ListPurchaseOptionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListPurchaseOptionsResponse
@Mutable
@NotThreadSafe
public static interface ListPurchaseOptionsResponse.Builder
extends MarketplaceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<ListPurchaseOptionsResponse.Builder,ListPurchaseOptionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIfnextTokenis returned, there are more results available.purchaseOptions(Collection<PurchaseOptionSummary> purchaseOptions) The purchase options available to the buyer.purchaseOptions(Consumer<PurchaseOptionSummary.Builder>... purchaseOptions) The purchase options available to the buyer.purchaseOptions(PurchaseOptionSummary... purchaseOptions) The purchase options available to the buyer.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.marketplacediscovery.model.MarketplaceDiscoveryResponse.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
-
purchaseOptions
ListPurchaseOptionsResponse.Builder purchaseOptions(Collection<PurchaseOptionSummary> purchaseOptions) The purchase options available to the buyer. Each option is either an offer for a single product or an offer set spanning multiple products.
- Parameters:
purchaseOptions- The purchase options available to the buyer. Each option is either an offer for a single product or an offer set spanning multiple products.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purchaseOptions
The purchase options available to the buyer. Each option is either an offer for a single product or an offer set spanning multiple products.
- Parameters:
purchaseOptions- The purchase options available to the buyer. Each option is either an offer for a single product or an offer set spanning multiple products.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purchaseOptions
ListPurchaseOptionsResponse.Builder purchaseOptions(Consumer<PurchaseOptionSummary.Builder>... purchaseOptions) The purchase options available to the buyer. Each option is either an offer for a single product or an offer set spanning multiple products.
This is a convenience method that creates an instance of thePurchaseOptionSummary.Builderavoiding the need to create one manually viaPurchaseOptionSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topurchaseOptions(List<PurchaseOptionSummary>).- Parameters:
purchaseOptions- a consumer that will call methods onPurchaseOptionSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If
nextTokenis returned, there are more results available. Make the call again using the returned token to retrieve the next page.- Parameters:
nextToken- IfnextTokenis returned, there are more results available. Make the call again using the returned token to retrieve the next page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-