Interface OfferInformation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OfferInformation.Builder,,OfferInformation> SdkBuilder<OfferInformation.Builder,,OfferInformation> SdkPojo
- Enclosing class:
OfferInformation
@Mutable
@NotThreadSafe
public static interface OfferInformation.Builder
extends SdkPojo, CopyableBuilder<OfferInformation.Builder,OfferInformation>
-
Method Summary
Modifier and TypeMethodDescriptionThe unique identifier of the offer.The display name of the offer.default OfferInformation.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.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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.
-
offerName
The display name of the offer.
- Parameters:
offerName- The display name of the 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.
- 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:
-