@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetPersonalizedRankingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetPersonalizedRankingRequest() |
Modifier and Type | Method and Description |
---|---|
GetPersonalizedRankingRequest |
addContextEntry(String key,
String value) |
GetPersonalizedRankingRequest |
clearContextEntries()
Removes all the entries added into Context.
|
GetPersonalizedRankingRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCampaignArn()
The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.
|
Map<String,String> |
getContext()
The contextual metadata to use when getting recommendations.
|
List<String> |
getInputList()
A list of items (itemId's) to rank.
|
String |
getUserId()
The user for which you want the campaign to provide a personalized ranking.
|
int |
hashCode() |
void |
setCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.
|
void |
setContext(Map<String,String> context)
The contextual metadata to use when getting recommendations.
|
void |
setInputList(Collection<String> inputList)
A list of items (itemId's) to rank.
|
void |
setUserId(String userId)
The user for which you want the campaign to provide a personalized ranking.
|
String |
toString()
Returns a string representation of this object.
|
GetPersonalizedRankingRequest |
withCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.
|
GetPersonalizedRankingRequest |
withContext(Map<String,String> context)
The contextual metadata to use when getting recommendations.
|
GetPersonalizedRankingRequest |
withInputList(Collection<String> inputList)
A list of items (itemId's) to rank.
|
GetPersonalizedRankingRequest |
withInputList(String... inputList)
A list of items (itemId's) to rank.
|
GetPersonalizedRankingRequest |
withUserId(String userId)
The user for which you want the campaign to provide a personalized ranking.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.
campaignArn
- The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.public String getCampaignArn()
The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.
public GetPersonalizedRankingRequest withCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.
campaignArn
- The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.public List<String> getInputList()
A list of items (itemId's) to rank. If an item was not included in the training dataset, the item is appended to the end of the reranked list. The maximum is 500.
public void setInputList(Collection<String> inputList)
A list of items (itemId's) to rank. If an item was not included in the training dataset, the item is appended to the end of the reranked list. The maximum is 500.
inputList
- A list of items (itemId's) to rank. If an item was not included in the training dataset, the item is
appended to the end of the reranked list. The maximum is 500.public GetPersonalizedRankingRequest withInputList(String... inputList)
A list of items (itemId's) to rank. If an item was not included in the training dataset, the item is appended to the end of the reranked list. The maximum is 500.
NOTE: This method appends the values to the existing list (if any). Use
setInputList(java.util.Collection)
or withInputList(java.util.Collection)
if you want to
override the existing values.
inputList
- A list of items (itemId's) to rank. If an item was not included in the training dataset, the item is
appended to the end of the reranked list. The maximum is 500.public GetPersonalizedRankingRequest withInputList(Collection<String> inputList)
A list of items (itemId's) to rank. If an item was not included in the training dataset, the item is appended to the end of the reranked list. The maximum is 500.
inputList
- A list of items (itemId's) to rank. If an item was not included in the training dataset, the item is
appended to the end of the reranked list. The maximum is 500.public void setUserId(String userId)
The user for which you want the campaign to provide a personalized ranking.
userId
- The user for which you want the campaign to provide a personalized ranking.public String getUserId()
The user for which you want the campaign to provide a personalized ranking.
public GetPersonalizedRankingRequest withUserId(String userId)
The user for which you want the campaign to provide a personalized ranking.
userId
- The user for which you want the campaign to provide a personalized ranking.public Map<String,String> getContext()
The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type. For more information, see Contextual Metadata.
public void setContext(Map<String,String> context)
The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type. For more information, see Contextual Metadata.
context
- The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction
information that might be relevant when getting a user's recommendations, such as the user's current
location or device type. For more information, see Contextual Metadata.public GetPersonalizedRankingRequest withContext(Map<String,String> context)
The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type. For more information, see Contextual Metadata.
context
- The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction
information that might be relevant when getting a user's recommendations, such as the user's current
location or device type. For more information, see Contextual Metadata.public GetPersonalizedRankingRequest addContextEntry(String key, String value)
public GetPersonalizedRankingRequest clearContextEntries()
public String toString()
toString
in class Object
Object.toString()
public GetPersonalizedRankingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.