Class Offer.Builder
-
- All Implemented Interfaces:
public class Offer.BuilderOfferBuilder.
-
-
Constructor Summary
Constructors Constructor Description Offer.Builder(String id, OfferType type, String content)Builder constructor with required Offerattributes as parameters.
-
Method Summary
Modifier and Type Method Description Offer.BuildersetEtag(String etag)Sets the etag for this Offer.Offer.BuildersetScore(double score)Sets the score for this Offer.Offer.BuildersetSchema(String schema)Sets the schema for this Offer.Offer.BuildersetMeta(Map<String, Object> meta)Sets the metadata for this Offer.Offer.BuildersetLanguage(List<String> language)Sets the language for this Offer.Offer.BuildersetCharacteristics(Map<String, String> characteristics)Sets the characteristics for this Offer.Offerbuild()Builds and returns the Offerobject.-
-
Method Detail
-
setEtag
Offer.Builder setEtag(String etag)
Sets the etag for this
Offer.
-
setScore
Offer.Builder setScore(double score)
Sets the score for this
Offer.
-
setSchema
Offer.Builder setSchema(String schema)
Sets the schema for this
Offer.
-
setMeta
Offer.Builder setMeta(Map<String, Object> meta)
Sets the metadata for this
Offer.
-
setLanguage
Offer.Builder setLanguage(List<String> language)
Sets the language for this
Offer.
-
setCharacteristics
Offer.Builder setCharacteristics(Map<String, String> characteristics)
Sets the characteristics for this
Offer.
-
-
-
-