Interface Offer.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Offer.Builder,,Offer> SdkBuilder<Offer.Builder,,Offer> SdkPojo
- Enclosing class:
Offer
@Mutable
@NotThreadSafe
public static interface Offer.Builder
extends SdkPojo, CopyableBuilder<Offer.Builder,Offer>
-
Method Summary
Modifier and TypeMethodDescriptionOffer Id for a model offer.offerToken(String offerToken) Offer token.default Offer.BuildertermDetails(Consumer<TermDetails.Builder> termDetails) Details about the terms of the offer.termDetails(TermDetails termDetails) Details about the terms of the 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
Offer Id for a model offer.
- Parameters:
offerId- Offer Id for a model offer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offerToken
Offer token.
- Parameters:
offerToken- Offer token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
termDetails
Details about the terms of the offer.
- Parameters:
termDetails- Details about the terms of the offer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
termDetails
Details about the terms of the offer.
This is a convenience method that creates an instance of theTermDetails.Builderavoiding the need to create one manually viaTermDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totermDetails(TermDetails).- Parameters:
termDetails- a consumer that will call methods onTermDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-