@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetRecommendationsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetRecommendationsResult() |
Modifier and Type | Method and Description |
---|---|
GetRecommendationsResult |
clone() |
boolean |
equals(Object obj) |
List<PredictedItem> |
getItemList()
A list of recommendations sorted in descending order by prediction score.
|
String |
getRecommendationId()
The ID of the recommendation.
|
int |
hashCode() |
void |
setItemList(Collection<PredictedItem> itemList)
A list of recommendations sorted in descending order by prediction score.
|
void |
setRecommendationId(String recommendationId)
The ID of the recommendation.
|
String |
toString()
Returns a string representation of this object.
|
GetRecommendationsResult |
withItemList(Collection<PredictedItem> itemList)
A list of recommendations sorted in descending order by prediction score.
|
GetRecommendationsResult |
withItemList(PredictedItem... itemList)
A list of recommendations sorted in descending order by prediction score.
|
GetRecommendationsResult |
withRecommendationId(String recommendationId)
The ID of the recommendation.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<PredictedItem> getItemList()
A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500 items in the list.
public void setItemList(Collection<PredictedItem> itemList)
A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500 items in the list.
itemList
- A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500
items in the list.public GetRecommendationsResult withItemList(PredictedItem... itemList)
A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500 items in the list.
NOTE: This method appends the values to the existing list (if any). Use
setItemList(java.util.Collection)
or withItemList(java.util.Collection)
if you want to override
the existing values.
itemList
- A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500
items in the list.public GetRecommendationsResult withItemList(Collection<PredictedItem> itemList)
A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500 items in the list.
itemList
- A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500
items in the list.public void setRecommendationId(String recommendationId)
The ID of the recommendation.
recommendationId
- The ID of the recommendation.public String getRecommendationId()
The ID of the recommendation.
public GetRecommendationsResult withRecommendationId(String recommendationId)
The ID of the recommendation.
recommendationId
- The ID of the recommendation.public String toString()
toString
in class Object
Object.toString()
public GetRecommendationsResult clone()