Interface GetOfferTermsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetOfferTermsResponse.Builder,,GetOfferTermsResponse> MarketplaceDiscoveryResponse.Builder,SdkBuilder<GetOfferTermsResponse.Builder,,GetOfferTermsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetOfferTermsResponse
@Mutable
@NotThreadSafe
public static interface GetOfferTermsResponse.Builder
extends MarketplaceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<GetOfferTermsResponse.Builder,GetOfferTermsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIfnextTokenis returned, there are more results available.offerTerms(Collection<OfferTerm> offerTerms) The terms attached to the offer.offerTerms(Consumer<OfferTerm.Builder>... offerTerms) The terms attached to the offer.offerTerms(OfferTerm... offerTerms) The terms attached to the offer.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
-
offerTerms
The terms attached to the offer. Each element contains exactly one term type.
- Parameters:
offerTerms- The terms attached to the offer. Each element contains exactly one term type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offerTerms
The terms attached to the offer. Each element contains exactly one term type.
- Parameters:
offerTerms- The terms attached to the offer. Each element contains exactly one term type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offerTerms
The terms attached to the offer. Each element contains exactly one term type.
This is a convenience method that creates an instance of theOfferTerm.Builderavoiding the need to create one manually viaOfferTerm.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toofferTerms(List<OfferTerm>).- Parameters:
offerTerms- a consumer that will call methods onOfferTerm.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.
-