@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PredictedItem extends Object implements Serializable, Cloneable, StructuredPojo
An object that identifies an item.
The and APIs return a list of PredictedItem
s.
Constructor and Description |
---|
PredictedItem() |
Modifier and Type | Method and Description |
---|---|
PredictedItem |
addMetadataEntry(String key,
String value)
Add a single Metadata entry
|
PredictedItem |
clearMetadataEntries()
Removes all the entries added into Metadata.
|
PredictedItem |
clone() |
boolean |
equals(Object obj) |
String |
getItemId()
The recommended item ID.
|
Map<String,String> |
getMetadata()
Metadata about the item from your Items dataset.
|
String |
getPromotionName()
The name of the promotion that included the predicted item.
|
Double |
getScore()
A numeric representation of the model's certainty that the item will be the next user selection.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setItemId(String itemId)
The recommended item ID.
|
void |
setMetadata(Map<String,String> metadata)
Metadata about the item from your Items dataset.
|
void |
setPromotionName(String promotionName)
The name of the promotion that included the predicted item.
|
void |
setScore(Double score)
A numeric representation of the model's certainty that the item will be the next user selection.
|
String |
toString()
Returns a string representation of this object.
|
PredictedItem |
withItemId(String itemId)
The recommended item ID.
|
PredictedItem |
withMetadata(Map<String,String> metadata)
Metadata about the item from your Items dataset.
|
PredictedItem |
withPromotionName(String promotionName)
The name of the promotion that included the predicted item.
|
PredictedItem |
withScore(Double score)
A numeric representation of the model's certainty that the item will be the next user selection.
|
public void setItemId(String itemId)
The recommended item ID.
itemId
- The recommended item ID.public String getItemId()
The recommended item ID.
public PredictedItem withItemId(String itemId)
The recommended item ID.
itemId
- The recommended item ID.public void setScore(Double score)
A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see how-scores-work.
score
- A numeric representation of the model's certainty that the item will be the next user selection. For more
information on scoring logic, see how-scores-work.public Double getScore()
A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see how-scores-work.
public PredictedItem withScore(Double score)
A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see how-scores-work.
score
- A numeric representation of the model's certainty that the item will be the next user selection. For more
information on scoring logic, see how-scores-work.public void setPromotionName(String promotionName)
The name of the promotion that included the predicted item.
promotionName
- The name of the promotion that included the predicted item.public String getPromotionName()
The name of the promotion that included the predicted item.
public PredictedItem withPromotionName(String promotionName)
The name of the promotion that included the predicted item.
promotionName
- The name of the promotion that included the predicted item.public Map<String,String> getMetadata()
Metadata about the item from your Items dataset.
public void setMetadata(Map<String,String> metadata)
Metadata about the item from your Items dataset.
metadata
- Metadata about the item from your Items dataset.public PredictedItem withMetadata(Map<String,String> metadata)
Metadata about the item from your Items dataset.
metadata
- Metadata about the item from your Items dataset.public PredictedItem addMetadataEntry(String key, String value)
public PredictedItem clearMetadataEntries()
public String toString()
toString
in class Object
Object.toString()
public PredictedItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.