Class Offer.Builder
- java.lang.Object
-
- com.adobe.marketing.mobile.optimize.Offer.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Offerbuild()Builds and returns theOfferobject.Offer.BuildersetCharacteristics(Map<String,String> characteristics)Sets the characteristics for thisOffer.Offer.BuildersetEtag(String etag)Sets the etag for thisOffer.Offer.BuildersetLanguage(List<String> language)Sets the language for thisOffer.Offer.BuildersetMeta(Map<String,Object> meta)Sets the metadata for thisOffer.Offer.BuildersetSchema(String schema)Sets the schema for thisOffer.Offer.BuildersetScore(int score)Sets the score for thisOffer.
-
-
-
Method Detail
-
setEtag
public Offer.Builder setEtag(String etag)
Sets the etag for thisOffer.- Parameters:
etag-StringcontainingOfferetag.- Returns:
- this Offer
Offer.Builder - Throws:
UnsupportedOperationException- if this method is invoked afterbuild().
-
setScore
public Offer.Builder setScore(int score)
Sets the score for thisOffer.- Parameters:
score-intcontainingOfferscore.- Returns:
- this Offer
Offer.Builder - Throws:
UnsupportedOperationException- if this method is invoked afterbuild().
-
setSchema
public Offer.Builder setSchema(String schema)
Sets the schema for thisOffer.- Parameters:
schema-StringcontainingOfferschema.- Returns:
- this Offer
Offer.Builder - Throws:
UnsupportedOperationException- if this method is invoked afterbuild().
-
setMeta
public Offer.Builder setMeta(Map<String,Object> meta)
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
public Offer.Builder setLanguage(List<String> language)
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
public Offer.Builder setCharacteristics(Map<String,String> characteristics)
Sets the characteristics for thisOffer.- Parameters:
characteristics-Map<String, String>containingOffercharacteristics.- Returns:
- this Offer
Offer.Builder - Throws:
UnsupportedOperationException- if this method is invoked afterbuild().
-
-