@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetRecommendationsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
GetRecommendationsRequest() |
| Modifier and Type | Method and Description |
|---|---|
GetRecommendationsRequest |
addContextEntry(String key,
String value)
Add a single Context entry
|
GetRecommendationsRequest |
clearContextEntries()
Removes all the entries added into Context.
|
GetRecommendationsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getCampaignArn()
The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.
|
Map<String,String> |
getContext()
The contextual metadata to use when getting recommendations.
|
String |
getFilterArn()
The ARN of the filter to apply to the returned recommendations.
|
String |
getItemId()
The item ID to provide recommendations for.
|
Integer |
getNumResults()
The number of results to return.
|
String |
getUserId()
The user ID to provide recommendations for.
|
int |
hashCode() |
void |
setCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.
|
void |
setContext(Map<String,String> context)
The contextual metadata to use when getting recommendations.
|
void |
setFilterArn(String filterArn)
The ARN of the filter to apply to the returned recommendations.
|
void |
setItemId(String itemId)
The item ID to provide recommendations for.
|
void |
setNumResults(Integer numResults)
The number of results to return.
|
void |
setUserId(String userId)
The user ID to provide recommendations for.
|
String |
toString()
Returns a string representation of this object.
|
GetRecommendationsRequest |
withCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.
|
GetRecommendationsRequest |
withContext(Map<String,String> context)
The contextual metadata to use when getting recommendations.
|
GetRecommendationsRequest |
withFilterArn(String filterArn)
The ARN of the filter to apply to the returned recommendations.
|
GetRecommendationsRequest |
withItemId(String itemId)
The item ID to provide recommendations for.
|
GetRecommendationsRequest |
withNumResults(Integer numResults)
The number of results to return.
|
GetRecommendationsRequest |
withUserId(String userId)
The user ID to provide recommendations for.
|
addHandlerContext, copyBaseTo, 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, withSdkRequestTimeoutpublic void setCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.
campaignArn - The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.public String getCampaignArn()
The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.
public GetRecommendationsRequest withCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.
campaignArn - The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.public void setItemId(String itemId)
The item ID to provide recommendations for.
Required for RELATED_ITEMS recipe type.
itemId - The item ID to provide recommendations for.
Required for RELATED_ITEMS recipe type.
public String getItemId()
The item ID to provide recommendations for.
Required for RELATED_ITEMS recipe type.
Required for RELATED_ITEMS recipe type.
public GetRecommendationsRequest withItemId(String itemId)
The item ID to provide recommendations for.
Required for RELATED_ITEMS recipe type.
itemId - The item ID to provide recommendations for.
Required for RELATED_ITEMS recipe type.
public void setUserId(String userId)
The user ID to provide recommendations for.
Required for USER_PERSONALIZATION recipe type.
userId - The user ID to provide recommendations for.
Required for USER_PERSONALIZATION recipe type.
public String getUserId()
The user ID to provide recommendations for.
Required for USER_PERSONALIZATION recipe type.
Required for USER_PERSONALIZATION recipe type.
public GetRecommendationsRequest withUserId(String userId)
The user ID to provide recommendations for.
Required for USER_PERSONALIZATION recipe type.
userId - The user ID to provide recommendations for.
Required for USER_PERSONALIZATION recipe type.
public void setNumResults(Integer numResults)
The number of results to return. The default is 25. The maximum is 500.
numResults - The number of results to return. The default is 25. The maximum is 500.public Integer getNumResults()
The number of results to return. The default is 25. The maximum is 500.
public GetRecommendationsRequest withNumResults(Integer numResults)
The number of results to return. The default is 25. The maximum is 500.
numResults - The number of results to return. The default is 25. The maximum is 500.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.
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.
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.public GetRecommendationsRequest 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.
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.public GetRecommendationsRequest addContextEntry(String key, String value)
public GetRecommendationsRequest clearContextEntries()
public void setFilterArn(String filterArn)
The ARN of the filter to apply to the returned recommendations. For more information, see Using Filters with Amazon Personalize.
When using this parameter, be sure the filter resource is ACTIVE.
filterArn - The ARN of the filter to apply to the returned recommendations. For more information, see Using Filters with Amazon
Personalize.
When using this parameter, be sure the filter resource is ACTIVE.
public String getFilterArn()
The ARN of the filter to apply to the returned recommendations. For more information, see Using Filters with Amazon Personalize.
When using this parameter, be sure the filter resource is ACTIVE.
When using this parameter, be sure the filter resource is ACTIVE.
public GetRecommendationsRequest withFilterArn(String filterArn)
The ARN of the filter to apply to the returned recommendations. For more information, see Using Filters with Amazon Personalize.
When using this parameter, be sure the filter resource is ACTIVE.
filterArn - The ARN of the filter to apply to the returned recommendations. For more information, see Using Filters with Amazon
Personalize.
When using this parameter, be sure the filter resource is ACTIVE.
public String toString()
toString in class ObjectObject.toString()public GetRecommendationsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2020. All rights reserved.