@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetActionRecommendationsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetActionRecommendationsRequest() |
Modifier and Type | Method and Description |
---|---|
GetActionRecommendationsRequest |
addFilterValuesEntry(String key,
String value)
Add a single FilterValues entry
|
GetActionRecommendationsRequest |
clearFilterValuesEntries()
Removes all the entries added into FilterValues.
|
GetActionRecommendationsRequest |
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 getting action recommendations.
|
String |
getFilterArn()
The ARN of the filter to apply to the returned recommendations.
|
Map<String,String> |
getFilterValues()
The values to use when filtering recommendations.
|
Integer |
getNumResults()
The number of results to return.
|
String |
getUserId()
The user ID of the user to provide action recommendations for.
|
int |
hashCode() |
void |
setCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for getting action recommendations.
|
void |
setFilterArn(String filterArn)
The ARN of the filter to apply to the returned recommendations.
|
void |
setFilterValues(Map<String,String> filterValues)
The values to use when filtering recommendations.
|
void |
setNumResults(Integer numResults)
The number of results to return.
|
void |
setUserId(String userId)
The user ID of the user to provide action recommendations for.
|
String |
toString()
Returns a string representation of this object.
|
GetActionRecommendationsRequest |
withCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for getting action recommendations.
|
GetActionRecommendationsRequest |
withFilterArn(String filterArn)
The ARN of the filter to apply to the returned recommendations.
|
GetActionRecommendationsRequest |
withFilterValues(Map<String,String> filterValues)
The values to use when filtering recommendations.
|
GetActionRecommendationsRequest |
withNumResults(Integer numResults)
The number of results to return.
|
GetActionRecommendationsRequest |
withUserId(String userId)
The user ID of the user to provide action recommendations for.
|
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 getting action recommendations. This campaign must deploy a solution version trained with a PERSONALIZED_ACTIONS recipe.
campaignArn
- The Amazon Resource Name (ARN) of the campaign to use for getting action recommendations. This campaign
must deploy a solution version trained with a PERSONALIZED_ACTIONS recipe.public String getCampaignArn()
The Amazon Resource Name (ARN) of the campaign to use for getting action recommendations. This campaign must deploy a solution version trained with a PERSONALIZED_ACTIONS recipe.
public GetActionRecommendationsRequest withCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for getting action recommendations. This campaign must deploy a solution version trained with a PERSONALIZED_ACTIONS recipe.
campaignArn
- The Amazon Resource Name (ARN) of the campaign to use for getting action recommendations. This campaign
must deploy a solution version trained with a PERSONALIZED_ACTIONS recipe.public void setUserId(String userId)
The user ID of the user to provide action recommendations for.
userId
- The user ID of the user to provide action recommendations for.public String getUserId()
The user ID of the user to provide action recommendations for.
public GetActionRecommendationsRequest withUserId(String userId)
The user ID of the user to provide action recommendations for.
userId
- The user ID of the user to provide action recommendations for.public void setNumResults(Integer numResults)
The number of results to return. The default is 5. The maximum is 100.
numResults
- The number of results to return. The default is 5. The maximum is 100.public Integer getNumResults()
The number of results to return. The default is 5. The maximum is 100.
public GetActionRecommendationsRequest withNumResults(Integer numResults)
The number of results to return. The default is 5. The maximum is 100.
numResults
- The number of results to return. The default is 5. The maximum is 100.public void setFilterArn(String filterArn)
The ARN of the filter to apply to the returned recommendations. For more information, see Filtering Recommendations.
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 Filtering Recommendations.
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 Filtering Recommendations.
When using this parameter, be sure the filter resource is ACTIVE
.
When using this parameter, be sure the filter resource is ACTIVE
.
public GetActionRecommendationsRequest withFilterArn(String filterArn)
The ARN of the filter to apply to the returned recommendations. For more information, see Filtering Recommendations.
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 Filtering Recommendations.
When using this parameter, be sure the filter resource is ACTIVE
.
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 actions, you must provide values for
all parameters that are defined in the expression. For filters with expressions that use an EXCLUDE
element to exclude actions, 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 and user segments.
For filter expressions that use an INCLUDE
element to include actions, you must provide
values for all parameters that are defined in the expression. For filters with expressions that use an
EXCLUDE
element to exclude actions, 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 and user segments.
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 actions, you must provide values for
all parameters that are defined in the expression. For filters with expressions that use an EXCLUDE
element to exclude actions, 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 and user segments.
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 actions, you must provide
values for all parameters that are defined in the expression. For filters with expressions that use an
EXCLUDE
element to exclude actions, 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 and user segments.
public GetActionRecommendationsRequest 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 actions, you must provide values for
all parameters that are defined in the expression. For filters with expressions that use an EXCLUDE
element to exclude actions, 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 and user segments.
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 actions, you must provide
values for all parameters that are defined in the expression. For filters with expressions that use an
EXCLUDE
element to exclude actions, 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 and user segments.
public GetActionRecommendationsRequest addFilterValuesEntry(String key, String value)
public GetActionRecommendationsRequest clearFilterValuesEntries()
public String toString()
toString
in class Object
Object.toString()
public GetActionRecommendationsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()