@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)
Add a single Context entry
|
GetPersonalizedRankingRequest |
addFilterValuesEntry(String key,
String value)
Add a single FilterValues entry
|
GetPersonalizedRankingRequest |
addMetadataColumnsEntry(String key,
List<String> value)
Add a single MetadataColumns entry
|
GetPersonalizedRankingRequest |
clearContextEntries()
Removes all the entries added into Context.
|
GetPersonalizedRankingRequest |
clearFilterValuesEntries()
Removes all the entries added into FilterValues.
|
GetPersonalizedRankingRequest |
clearMetadataColumnsEntries()
Removes all the entries added into MetadataColumns.
|
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.
|
String |
getFilterArn()
The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for
a given user.
|
Map<String,String> |
getFilterValues()
The values to use when filtering recommendations.
|
List<String> |
getInputList()
A list of items (by
itemId ) to rank. |
Map<String,List<String>> |
getMetadataColumns()
If you enabled metadata in recommendations when you created or updated the campaign, specify metadata columns
from your Items dataset to include in the personalized ranking.
|
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 |
setFilterArn(String filterArn)
The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for
a given user.
|
void |
setFilterValues(Map<String,String> filterValues)
The values to use when filtering recommendations.
|
void |
setInputList(Collection<String> inputList)
A list of items (by
itemId ) to rank. |
void |
setMetadataColumns(Map<String,List<String>> metadataColumns)
If you enabled metadata in recommendations when you created or updated the campaign, specify metadata columns
from your Items dataset to include in the personalized ranking.
|
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 |
withFilterArn(String filterArn)
The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for
a given user.
|
GetPersonalizedRankingRequest |
withFilterValues(Map<String,String> filterValues)
The values to use when filtering recommendations.
|
GetPersonalizedRankingRequest |
withInputList(Collection<String> inputList)
A list of items (by
itemId ) to rank. |
GetPersonalizedRankingRequest |
withInputList(String... inputList)
A list of items (by
itemId ) to rank. |
GetPersonalizedRankingRequest |
withMetadataColumns(Map<String,List<String>> metadataColumns)
If you enabled metadata in recommendations when you created or updated the campaign, specify metadata columns
from your Items dataset to include in the personalized ranking.
|
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 (by itemId
) to rank. If an item was not included in the training dataset, the item
is appended to the end of the reranked list. If you are including metadata in recommendations, the maximum is 50.
Otherwise, the maximum is 500.
itemId
) to rank. If an item was not included in the training dataset,
the item is appended to the end of the reranked list. If you are including metadata in recommendations,
the maximum is 50. Otherwise, the maximum is 500.public void setInputList(Collection<String> inputList)
A list of items (by itemId
) to rank. If an item was not included in the training dataset, the item
is appended to the end of the reranked list. If you are including metadata in recommendations, the maximum is 50.
Otherwise, the maximum is 500.
inputList
- A list of items (by itemId
) to rank. If an item was not included in the training dataset, the
item is appended to the end of the reranked list. If you are including metadata in recommendations, the
maximum is 50. Otherwise, the maximum is 500.public GetPersonalizedRankingRequest withInputList(String... inputList)
A list of items (by itemId
) to rank. If an item was not included in the training dataset, the item
is appended to the end of the reranked list. If you are including metadata in recommendations, the maximum is 50.
Otherwise, 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 (by itemId
) to rank. If an item was not included in the training dataset, the
item is appended to the end of the reranked list. If you are including metadata in recommendations, the
maximum is 50. Otherwise, the maximum is 500.public GetPersonalizedRankingRequest withInputList(Collection<String> inputList)
A list of items (by itemId
) to rank. If an item was not included in the training dataset, the item
is appended to the end of the reranked list. If you are including metadata in recommendations, the maximum is 50.
Otherwise, the maximum is 500.
inputList
- A list of items (by itemId
) to rank. If an item was not included in the training dataset, the
item is appended to the end of the reranked list. If you are including metadata in recommendations, the
maximum is 50. Otherwise, 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.
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 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.
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 GetPersonalizedRankingRequest addContextEntry(String key, String value)
public GetPersonalizedRankingRequest clearContextEntries()
public void setFilterArn(String filterArn)
The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for a given user. For more information, see Filtering Recommendations.
filterArn
- The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from
recommendations for a given user. For more information, see Filtering Recommendations.public String getFilterArn()
The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for a given user. For more information, see Filtering Recommendations.
public GetPersonalizedRankingRequest withFilterArn(String filterArn)
The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for a given user. For more information, see Filtering Recommendations.
filterArn
- The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from
recommendations for a given user. For more information, see Filtering Recommendations.public Map<String,String> getFilterValues()
The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
For filter expressions that use an INCLUDE
element to include items, you must provide values for all
parameters that are defined in the expression. For filters with expressions that use an EXCLUDE
element to exclude items, you can omit the filter-values
.In this case, Amazon Personalize doesn't
use that portion of the expression to filter recommendations.
For more information, see Filtering Recommendations.
For filter expressions that use an INCLUDE
element to include items, you must provide values
for all parameters that are defined in the expression. For filters with expressions that use an
EXCLUDE
element to exclude items, you can omit the filter-values
.In this case,
Amazon Personalize doesn't use that portion of the expression to filter recommendations.
For more information, see Filtering Recommendations.
public void setFilterValues(Map<String,String> filterValues)
The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
For filter expressions that use an INCLUDE
element to include items, you must provide values for all
parameters that are defined in the expression. For filters with expressions that use an EXCLUDE
element to exclude items, you can omit the filter-values
.In this case, Amazon Personalize doesn't
use that portion of the expression to filter recommendations.
For more information, see Filtering Recommendations.
filterValues
- The values to use when filtering recommendations. For each placeholder parameter in your filter
expression, provide the parameter name (in matching case) as a key and the filter value(s) as the
corresponding value. Separate multiple values for one parameter with a comma.
For filter expressions that use an INCLUDE
element to include items, you must provide values
for all parameters that are defined in the expression. For filters with expressions that use an
EXCLUDE
element to exclude items, you can omit the filter-values
.In this case,
Amazon Personalize doesn't use that portion of the expression to filter recommendations.
For more information, see Filtering Recommendations.
public GetPersonalizedRankingRequest withFilterValues(Map<String,String> filterValues)
The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
For filter expressions that use an INCLUDE
element to include items, you must provide values for all
parameters that are defined in the expression. For filters with expressions that use an EXCLUDE
element to exclude items, you can omit the filter-values
.In this case, Amazon Personalize doesn't
use that portion of the expression to filter recommendations.
For more information, see Filtering Recommendations.
filterValues
- The values to use when filtering recommendations. For each placeholder parameter in your filter
expression, provide the parameter name (in matching case) as a key and the filter value(s) as the
corresponding value. Separate multiple values for one parameter with a comma.
For filter expressions that use an INCLUDE
element to include items, you must provide values
for all parameters that are defined in the expression. For filters with expressions that use an
EXCLUDE
element to exclude items, you can omit the filter-values
.In this case,
Amazon Personalize doesn't use that portion of the expression to filter recommendations.
For more information, see Filtering Recommendations.
public GetPersonalizedRankingRequest addFilterValuesEntry(String key, String value)
public GetPersonalizedRankingRequest clearFilterValuesEntries()
public Map<String,List<String>> getMetadataColumns()
If you enabled metadata in recommendations when you created or updated the campaign, specify metadata columns
from your Items dataset to include in the personalized ranking. The map key is ITEMS
and the value
is a list of column names from your Items dataset. The maximum number of columns you can provide is 10.
For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
ITEMS
and the value is a list of column names from your Items dataset. The maximum number of columns you can
provide is 10.
For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
public void setMetadataColumns(Map<String,List<String>> metadataColumns)
If you enabled metadata in recommendations when you created or updated the campaign, specify metadata columns
from your Items dataset to include in the personalized ranking. The map key is ITEMS
and the value
is a list of column names from your Items dataset. The maximum number of columns you can provide is 10.
For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
metadataColumns
- If you enabled metadata in recommendations when you created or updated the campaign, specify metadata
columns from your Items dataset to include in the personalized ranking. The map key is ITEMS
and the value is a list of column names from your Items dataset. The maximum number of columns you can
provide is 10.
For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
public GetPersonalizedRankingRequest withMetadataColumns(Map<String,List<String>> metadataColumns)
If you enabled metadata in recommendations when you created or updated the campaign, specify metadata columns
from your Items dataset to include in the personalized ranking. The map key is ITEMS
and the value
is a list of column names from your Items dataset. The maximum number of columns you can provide is 10.
For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
metadataColumns
- If you enabled metadata in recommendations when you created or updated the campaign, specify metadata
columns from your Items dataset to include in the personalized ranking. The map key is ITEMS
and the value is a list of column names from your Items dataset. The maximum number of columns you can
provide is 10.
For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
public GetPersonalizedRankingRequest addMetadataColumnsEntry(String key, List<String> value)
public GetPersonalizedRankingRequest clearMetadataColumnsEntries()
public String toString()
toString
in class Object
Object.toString()
public GetPersonalizedRankingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()