Interface GetOfferResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetOfferResponse.Builder,,GetOfferResponse> MarketplaceDiscoveryResponse.Builder,SdkBuilder<GetOfferResponse.Builder,,GetOfferResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetOfferResponse
-
Method Summary
Modifier and TypeMethodDescriptionagreementProposalId(String agreementProposalId) An encoded string to be passed by the acceptor of the terms when creating an agreement.associatedEntities(Collection<OfferAssociatedEntity> associatedEntities) The products and offer sets associated with this offer.associatedEntities(Consumer<OfferAssociatedEntity.Builder>... associatedEntities) The products and offer sets associated with this offer.associatedEntities(OfferAssociatedEntity... associatedEntities) The products and offer sets associated with this offer.availableFromTime(Instant availableFromTime) The date and time when the offer became available to the buyer.badges(Collection<PurchaseOptionBadge> badges) Badges indicating special attributes of the offer, such as private pricing, future dated, or replacement offer.badges(Consumer<PurchaseOptionBadge.Builder>... badges) Badges indicating special attributes of the offer, such as private pricing, future dated, or replacement offer.badges(PurchaseOptionBadge... badges) Badges indicating special attributes of the offer, such as private pricing, future dated, or replacement offer.The name of the catalog that the offer belongs to.expirationTime(Instant expirationTime) The date and time until when the offer can be procured.The unique identifier of the offer.The display name of the offer.default GetOfferResponse.BuilderpricingModel(Consumer<PricingModel.Builder> pricingModel) The pricing model that determines how buyers are charged, such as usage-based, contract, BYOL, or free.pricingModel(PricingModel pricingModel) The pricing model that determines how buyers are charged, such as usage-based, contract, BYOL, or free.replacementAgreementId(String replacementAgreementId) The identifier of the existing agreement that this offer would replace.default GetOfferResponse.BuildersellerOfRecord(Consumer<SellerInformation.Builder> sellerOfRecord) The entity responsible for selling the product under this offer.sellerOfRecord(SellerInformation sellerOfRecord) The entity responsible for selling the product under this 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
-
offerId
The unique identifier of the offer.
- Parameters:
offerId- The unique identifier of the offer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalog
The name of the catalog that the offer belongs to.
- Parameters:
catalog- The name of the catalog that the offer belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offerName
The display name of the offer. This is free-form text provided by the seller.
- Parameters:
offerName- The display name of the offer. This is free-form text provided by the seller.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agreementProposalId
An encoded string to be passed by the acceptor of the terms when creating an agreement.
- Parameters:
agreementProposalId- An encoded string to be passed by the acceptor of the terms when creating an agreement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expirationTime
The date and time until when the offer can be procured. This value is null for offers that never expire.
- Parameters:
expirationTime- The date and time until when the offer can be procured. This value is null for offers that never expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableFromTime
The date and time when the offer became available to the buyer.
- Parameters:
availableFromTime- The date and time when the offer became available to the buyer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sellerOfRecord
The entity responsible for selling the product under this offer.
- Parameters:
sellerOfRecord- The entity responsible for selling the product under this offer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sellerOfRecord
The entity responsible for selling the product under this offer.
This is a convenience method that creates an instance of theSellerInformation.Builderavoiding the need to create one manually viaSellerInformation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosellerOfRecord(SellerInformation).- Parameters:
sellerOfRecord- a consumer that will call methods onSellerInformation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
replacementAgreementId
The identifier of the existing agreement that this offer would replace. Enables agreement-based offer functionality.
- Parameters:
replacementAgreementId- The identifier of the existing agreement that this offer would replace. Enables agreement-based offer functionality.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pricingModel
The pricing model that determines how buyers are charged, such as usage-based, contract, BYOL, or free.
- Parameters:
pricingModel- The pricing model that determines how buyers are charged, such as usage-based, contract, BYOL, or free.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pricingModel
The pricing model that determines how buyers are charged, such as usage-based, contract, BYOL, or free.
This is a convenience method that creates an instance of thePricingModel.Builderavoiding the need to create one manually viaPricingModel.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topricingModel(PricingModel).- Parameters:
pricingModel- a consumer that will call methods onPricingModel.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
badges
Badges indicating special attributes of the offer, such as private pricing, future dated, or replacement offer.
- Parameters:
badges- Badges indicating special attributes of the offer, such as private pricing, future dated, or replacement offer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
badges
Badges indicating special attributes of the offer, such as private pricing, future dated, or replacement offer.
- Parameters:
badges- Badges indicating special attributes of the offer, such as private pricing, future dated, or replacement offer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
badges
Badges indicating special attributes of the offer, such as private pricing, future dated, or replacement offer.
This is a convenience method that creates an instance of thePurchaseOptionBadge.Builderavoiding the need to create one manually viaPurchaseOptionBadge.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobadges(List<PurchaseOptionBadge>).- Parameters:
badges- a consumer that will call methods onPurchaseOptionBadge.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
associatedEntities
The products and offer sets associated with this offer.
- Parameters:
associatedEntities- The products and offer sets associated with this offer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedEntities
The products and offer sets associated with this offer.
- Parameters:
associatedEntities- The products and offer sets associated with this offer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedEntities
GetOfferResponse.Builder associatedEntities(Consumer<OfferAssociatedEntity.Builder>... associatedEntities) The products and offer sets associated with this offer.
This is a convenience method that creates an instance of theOfferAssociatedEntity.Builderavoiding the need to create one manually viaOfferAssociatedEntity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassociatedEntities(List<OfferAssociatedEntity>).- Parameters:
associatedEntities- a consumer that will call methods onOfferAssociatedEntity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-