@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 |
clone() |
boolean |
equals(Object obj) |
String |
getItemId()
The recommended item ID.
|
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 |
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 |
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 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.