Class Offer.Builder
java.lang.Object
com.adobe.marketing.mobile.optimize.Offer.Builder
- Enclosing class:
- Offer
Offer Builder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns theOfferobject.setCharacteristics(Map<String, String> characteristics) Sets the characteristics for thisOffer.Sets the etag for thisOffer.setLanguage(List<String> language) Sets the language for thisOffer.Sets the metadata for thisOffer.Sets the schema for thisOffer.setScore(int score) Sets the score for thisOffer.
-
Constructor Details
-
Method Details
-
setEtag
Sets the etag for thisOffer.- Parameters:
etag-StringcontainingOfferetag.- Returns:
- this Offer
Offer.Builder - Throws:
UnsupportedOperationException- if this method is invoked afterbuild().
-
setScore
Sets the score for thisOffer.- Parameters:
score-intcontainingOfferscore.- Returns:
- this Offer
Offer.Builder - Throws:
UnsupportedOperationException- if this method is invoked afterbuild().
-
setSchema
Sets the schema for thisOffer.- Parameters:
schema-StringcontainingOfferschema.- Returns:
- this Offer
Offer.Builder - Throws:
UnsupportedOperationException- if this method is invoked afterbuild().
-
setMeta
Sets the metadata for thisOffer.- Parameters:
meta-Map<String, Object>containingOffermetadata.- Returns:
- this Offer
Offer.Builder - Throws:
UnsupportedOperationException- if this method is invoked afterbuild().
-
setLanguage
Sets the language for thisOffer.- Parameters:
language-List<String>containing supportedOfferlanguage.- Returns:
- this Offer
Offer.Builder - Throws:
UnsupportedOperationException- if this method is invoked afterbuild().
-
setCharacteristics
Sets the characteristics for thisOffer.- Parameters:
characteristics-Map<String, String>containingOffercharacteristics.- Returns:
- this Offer
Offer.Builder - Throws:
UnsupportedOperationException- if this method is invoked afterbuild().
-
build
Builds and returns theOfferobject.- Returns:
Offerobject or null.
-