/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.pinpoint.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies Amazon Pinpoint configuration settings for retrieving and processing recommendation data from a recommender * model. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateRecommenderConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** A map of key-value pairs that defines 1-10 custom endpoint or user attributes, depending on the value for the * RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item that's * retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute * can be used as a message variable in a message template. *
** In the map, the key is the name of a custom attribute and the value is a custom display name for that attribute. * The display name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. * The following restrictions apply to these names: *
** An attribute name must start with a letter or number and it can contain up to 50 characters. The characters can * be letters, numbers, underscores (_), or hyphens (-). Attribute names are case sensitive and must be unique. *
** An attribute display name must start with a letter or number and it can contain up to 25 characters. The * characters can be letters, numbers, spaces, underscores (_), or hyphens (-). *
** This object is required if the configuration invokes an AWS Lambda function (RecommendationTransformerUri) to * process recommendation data. Otherwise, don't include this object in your request. *
*/ private java.util.Map* A custom description of the configuration for the recommender model. The description can contain up to 128 * characters. The characters can be letters, numbers, spaces, or the following symbols: _ ; () , ‐. *
*/ private String description; /** ** A custom name of the configuration for the recommender model. The name must start with a letter or number and it * can contain up to 128 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens * (-). *
*/ private String name; /** ** The type of Amazon Pinpoint ID to associate with unique user IDs in the recommender model. This value enables the * model to use attribute and event data that’s specific to a particular endpoint or user in an Amazon Pinpoint * application. Valid values are: *
** PINPOINT_ENDPOINT_ID - Associate each user in the model with a particular endpoint in Amazon Pinpoint. The data * is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value. *
** PINPOINT_USER_ID - Associate each user in the model with a particular user and endpoint in Amazon Pinpoint. The * data is correlated based on user IDs in Amazon Pinpoint. If you specify this value, an endpoint definition in * Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint ID. Otherwise, messages won’t be sent to * the user's endpoint. *
** The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to retrieve recommendation data from the recommender model. *
*/ private String recommendationProviderRoleArn; /** ** The Amazon Resource Name (ARN) of the recommender model to retrieve recommendation data from. This value must * match the ARN of an Amazon Personalize campaign. *
*/ private String recommendationProviderUri; /** ** The name or Amazon Resource Name (ARN) of the AWS Lambda function to invoke for additional processing of * recommendation data that's retrieved from the recommender model. *
*/ private String recommendationTransformerUri; /** ** A custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily stores * recommended items for each endpoint or user, depending on the value for the RecommendationProviderIdType * property. This value is required if the configuration doesn't invoke an AWS Lambda function * (RecommendationTransformerUri) to perform additional processing of recommendation data. *
** This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. The name * can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-). * These restrictions don't apply to attribute values. *
*/ private String recommendationsDisplayName; /** ** The number of recommended items to retrieve from the model for each endpoint or user, depending on the value for * the RecommendationProviderIdType property. This number determines how many recommended items are available for * use in message variables. The minimum value is 1. The maximum value is 5. The default value is 5. *
** To use multiple recommended items and custom attributes with message variables, you have to use an AWS Lambda * function (RecommendationTransformerUri) to perform additional processing of recommendation data. *
*/ private Integer recommendationsPerMessage; /** ** A map of key-value pairs that defines 1-10 custom endpoint or user attributes, depending on the value for the * RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item that's * retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute * can be used as a message variable in a message template. *
** In the map, the key is the name of a custom attribute and the value is a custom display name for that attribute. * The display name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. * The following restrictions apply to these names: *
** An attribute name must start with a letter or number and it can contain up to 50 characters. The characters can * be letters, numbers, underscores (_), or hyphens (-). Attribute names are case sensitive and must be unique. *
** An attribute display name must start with a letter or number and it can contain up to 25 characters. The * characters can be letters, numbers, spaces, underscores (_), or hyphens (-). *
** This object is required if the configuration invokes an AWS Lambda function (RecommendationTransformerUri) to * process recommendation data. Otherwise, don't include this object in your request. *
* * @return A map of key-value pairs that defines 1-10 custom endpoint or user attributes, depending on the value for * the RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item * that's retrieved from the recommender model and sent to an AWS Lambda function for additional processing. * Each attribute can be used as a message variable in a message template. ** In the map, the key is the name of a custom attribute and the value is a custom display name for that * attribute. The display name appears in the Attribute finder of the template editor on the Amazon * Pinpoint console. The following restrictions apply to these names: *
** An attribute name must start with a letter or number and it can contain up to 50 characters. The * characters can be letters, numbers, underscores (_), or hyphens (-). Attribute names are case sensitive * and must be unique. *
** An attribute display name must start with a letter or number and it can contain up to 25 characters. The * characters can be letters, numbers, spaces, underscores (_), or hyphens (-). *
*
* This object is required if the configuration invokes an AWS Lambda function
* (RecommendationTransformerUri) to process recommendation data. Otherwise, don't include this object in
* your request.
*/
public java.util.Map
* A map of key-value pairs that defines 1-10 custom endpoint or user attributes, depending on the value for the
* RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item that's
* retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute
* can be used as a message variable in a message template.
*
* In the map, the key is the name of a custom attribute and the value is a custom display name for that attribute.
* The display name appears in the Attribute finder of the template editor on the Amazon Pinpoint console.
* The following restrictions apply to these names:
*
* An attribute name must start with a letter or number and it can contain up to 50 characters. The characters can
* be letters, numbers, underscores (_), or hyphens (-). Attribute names are case sensitive and must be unique.
*
* An attribute display name must start with a letter or number and it can contain up to 25 characters. The
* characters can be letters, numbers, spaces, underscores (_), or hyphens (-).
*
* This object is required if the configuration invokes an AWS Lambda function (RecommendationTransformerUri) to
* process recommendation data. Otherwise, don't include this object in your request.
*
*
*
* In the map, the key is the name of a custom attribute and the value is a custom display name for that * attribute. The display name appears in the Attribute finder of the template editor on the Amazon * Pinpoint console. The following restrictions apply to these names: *
** An attribute name must start with a letter or number and it can contain up to 50 characters. The * characters can be letters, numbers, underscores (_), or hyphens (-). Attribute names are case sensitive * and must be unique. *
** An attribute display name must start with a letter or number and it can contain up to 25 characters. The * characters can be letters, numbers, spaces, underscores (_), or hyphens (-). *
*
* This object is required if the configuration invokes an AWS Lambda function (RecommendationTransformerUri)
* to process recommendation data. Otherwise, don't include this object in your request.
*/
public void setAttributes(java.util.Map
* A map of key-value pairs that defines 1-10 custom endpoint or user attributes, depending on the value for the
* RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item that's
* retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute
* can be used as a message variable in a message template.
*
* In the map, the key is the name of a custom attribute and the value is a custom display name for that attribute.
* The display name appears in the Attribute finder of the template editor on the Amazon Pinpoint console.
* The following restrictions apply to these names:
*
* An attribute name must start with a letter or number and it can contain up to 50 characters. The characters can
* be letters, numbers, underscores (_), or hyphens (-). Attribute names are case sensitive and must be unique.
*
* An attribute display name must start with a letter or number and it can contain up to 25 characters. The
* characters can be letters, numbers, spaces, underscores (_), or hyphens (-).
*
* This object is required if the configuration invokes an AWS Lambda function (RecommendationTransformerUri) to
* process recommendation data. Otherwise, don't include this object in your request.
*
*
*
* In the map, the key is the name of a custom attribute and the value is a custom display name for that * attribute. The display name appears in the Attribute finder of the template editor on the Amazon * Pinpoint console. The following restrictions apply to these names: *
** An attribute name must start with a letter or number and it can contain up to 50 characters. The * characters can be letters, numbers, underscores (_), or hyphens (-). Attribute names are case sensitive * and must be unique. *
** An attribute display name must start with a letter or number and it can contain up to 25 characters. The * characters can be letters, numbers, spaces, underscores (_), or hyphens (-). *
*
* This object is required if the configuration invokes an AWS Lambda function (RecommendationTransformerUri)
* to process recommendation data. Otherwise, don't include this object in your request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRecommenderConfiguration withAttributes(java.util.Map
* A custom description of the configuration for the recommender model. The description can contain up to 128
* characters. The characters can be letters, numbers, spaces, or the following symbols: _ ; () , ‐.
*
* A custom description of the configuration for the recommender model. The description can contain up to 128
* characters. The characters can be letters, numbers, spaces, or the following symbols: _ ; () , ‐.
*
* A custom description of the configuration for the recommender model. The description can contain up to 128
* characters. The characters can be letters, numbers, spaces, or the following symbols: _ ; () , ‐.
*
* A custom name of the configuration for the recommender model. The name must start with a letter or number and it
* can contain up to 128 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens
* (-).
*
* A custom name of the configuration for the recommender model. The name must start with a letter or number and it
* can contain up to 128 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens
* (-).
*
* A custom name of the configuration for the recommender model. The name must start with a letter or number and it
* can contain up to 128 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens
* (-).
*
* The type of Amazon Pinpoint ID to associate with unique user IDs in the recommender model. This value enables the
* model to use attribute and event data that’s specific to a particular endpoint or user in an Amazon Pinpoint
* application. Valid values are:
*
* PINPOINT_ENDPOINT_ID - Associate each user in the model with a particular endpoint in Amazon Pinpoint. The data
* is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value.
*
* PINPOINT_USER_ID - Associate each user in the model with a particular user and endpoint in Amazon Pinpoint. The
* data is correlated based on user IDs in Amazon Pinpoint. If you specify this value, an endpoint definition in
* Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint ID. Otherwise, messages won’t be sent to
* the user's endpoint.
*
*
*
* @param recommendationProviderIdType
* The type of Amazon Pinpoint ID to associate with unique user IDs in the recommender model. This value
* enables the model to use attribute and event data that’s specific to a particular endpoint or user in an
* Amazon Pinpoint application. Valid values are:
* PINPOINT_ENDPOINT_ID - Associate each user in the model with a particular endpoint in Amazon Pinpoint. The * data is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value. *
** PINPOINT_USER_ID - Associate each user in the model with a particular user and endpoint in Amazon * Pinpoint. The data is correlated based on user IDs in Amazon Pinpoint. If you specify this value, an * endpoint definition in Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint ID. * Otherwise, messages won’t be sent to the user's endpoint. *
** The type of Amazon Pinpoint ID to associate with unique user IDs in the recommender model. This value enables the * model to use attribute and event data that’s specific to a particular endpoint or user in an Amazon Pinpoint * application. Valid values are: *
** PINPOINT_ENDPOINT_ID - Associate each user in the model with a particular endpoint in Amazon Pinpoint. The data * is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value. *
** PINPOINT_USER_ID - Associate each user in the model with a particular user and endpoint in Amazon Pinpoint. The * data is correlated based on user IDs in Amazon Pinpoint. If you specify this value, an endpoint definition in * Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint ID. Otherwise, messages won’t be sent to * the user's endpoint. *
** PINPOINT_ENDPOINT_ID - Associate each user in the model with a particular endpoint in Amazon Pinpoint. * The data is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value. *
** PINPOINT_USER_ID - Associate each user in the model with a particular user and endpoint in Amazon * Pinpoint. The data is correlated based on user IDs in Amazon Pinpoint. If you specify this value, an * endpoint definition in Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint ID. * Otherwise, messages won’t be sent to the user's endpoint. *
** The type of Amazon Pinpoint ID to associate with unique user IDs in the recommender model. This value enables the * model to use attribute and event data that’s specific to a particular endpoint or user in an Amazon Pinpoint * application. Valid values are: *
** PINPOINT_ENDPOINT_ID - Associate each user in the model with a particular endpoint in Amazon Pinpoint. The data * is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value. *
** PINPOINT_USER_ID - Associate each user in the model with a particular user and endpoint in Amazon Pinpoint. The * data is correlated based on user IDs in Amazon Pinpoint. If you specify this value, an endpoint definition in * Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint ID. Otherwise, messages won’t be sent to * the user's endpoint. *
** PINPOINT_ENDPOINT_ID - Associate each user in the model with a particular endpoint in Amazon Pinpoint. The * data is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value. *
** PINPOINT_USER_ID - Associate each user in the model with a particular user and endpoint in Amazon * Pinpoint. The data is correlated based on user IDs in Amazon Pinpoint. If you specify this value, an * endpoint definition in Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint ID. * Otherwise, messages won’t be sent to the user's endpoint. *
** The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to retrieve recommendation data from the recommender model. *
* * @param recommendationProviderRoleArn * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to retrieve recommendation data from the recommender model. */ public void setRecommendationProviderRoleArn(String recommendationProviderRoleArn) { this.recommendationProviderRoleArn = recommendationProviderRoleArn; } /** ** The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to retrieve recommendation data from the recommender model. *
* * @return The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes * Amazon Pinpoint to retrieve recommendation data from the recommender model. */ public String getRecommendationProviderRoleArn() { return this.recommendationProviderRoleArn; } /** ** The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to retrieve recommendation data from the recommender model. *
* * @param recommendationProviderRoleArn * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to retrieve recommendation data from the recommender model. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommenderConfiguration withRecommendationProviderRoleArn(String recommendationProviderRoleArn) { setRecommendationProviderRoleArn(recommendationProviderRoleArn); return this; } /** ** The Amazon Resource Name (ARN) of the recommender model to retrieve recommendation data from. This value must * match the ARN of an Amazon Personalize campaign. *
* * @param recommendationProviderUri * The Amazon Resource Name (ARN) of the recommender model to retrieve recommendation data from. This value * must match the ARN of an Amazon Personalize campaign. */ public void setRecommendationProviderUri(String recommendationProviderUri) { this.recommendationProviderUri = recommendationProviderUri; } /** ** The Amazon Resource Name (ARN) of the recommender model to retrieve recommendation data from. This value must * match the ARN of an Amazon Personalize campaign. *
* * @return The Amazon Resource Name (ARN) of the recommender model to retrieve recommendation data from. This value * must match the ARN of an Amazon Personalize campaign. */ public String getRecommendationProviderUri() { return this.recommendationProviderUri; } /** ** The Amazon Resource Name (ARN) of the recommender model to retrieve recommendation data from. This value must * match the ARN of an Amazon Personalize campaign. *
* * @param recommendationProviderUri * The Amazon Resource Name (ARN) of the recommender model to retrieve recommendation data from. This value * must match the ARN of an Amazon Personalize campaign. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommenderConfiguration withRecommendationProviderUri(String recommendationProviderUri) { setRecommendationProviderUri(recommendationProviderUri); return this; } /** ** The name or Amazon Resource Name (ARN) of the AWS Lambda function to invoke for additional processing of * recommendation data that's retrieved from the recommender model. *
* * @param recommendationTransformerUri * The name or Amazon Resource Name (ARN) of the AWS Lambda function to invoke for additional processing of * recommendation data that's retrieved from the recommender model. */ public void setRecommendationTransformerUri(String recommendationTransformerUri) { this.recommendationTransformerUri = recommendationTransformerUri; } /** ** The name or Amazon Resource Name (ARN) of the AWS Lambda function to invoke for additional processing of * recommendation data that's retrieved from the recommender model. *
* * @return The name or Amazon Resource Name (ARN) of the AWS Lambda function to invoke for additional processing of * recommendation data that's retrieved from the recommender model. */ public String getRecommendationTransformerUri() { return this.recommendationTransformerUri; } /** ** The name or Amazon Resource Name (ARN) of the AWS Lambda function to invoke for additional processing of * recommendation data that's retrieved from the recommender model. *
* * @param recommendationTransformerUri * The name or Amazon Resource Name (ARN) of the AWS Lambda function to invoke for additional processing of * recommendation data that's retrieved from the recommender model. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommenderConfiguration withRecommendationTransformerUri(String recommendationTransformerUri) { setRecommendationTransformerUri(recommendationTransformerUri); return this; } /** ** A custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily stores * recommended items for each endpoint or user, depending on the value for the RecommendationProviderIdType * property. This value is required if the configuration doesn't invoke an AWS Lambda function * (RecommendationTransformerUri) to perform additional processing of recommendation data. *
** This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. The name * can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-). * These restrictions don't apply to attribute values. *
* * @param recommendationsDisplayName * A custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily * stores recommended items for each endpoint or user, depending on the value for the * RecommendationProviderIdType property. This value is required if the configuration doesn't invoke an AWS * Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation * data. ** This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. * The name can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), * or hyphens (-). These restrictions don't apply to attribute values. */ public void setRecommendationsDisplayName(String recommendationsDisplayName) { this.recommendationsDisplayName = recommendationsDisplayName; } /** *
* A custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily stores * recommended items for each endpoint or user, depending on the value for the RecommendationProviderIdType * property. This value is required if the configuration doesn't invoke an AWS Lambda function * (RecommendationTransformerUri) to perform additional processing of recommendation data. *
** This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. The name * can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-). * These restrictions don't apply to attribute values. *
* * @return A custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily * stores recommended items for each endpoint or user, depending on the value for the * RecommendationProviderIdType property. This value is required if the configuration doesn't invoke an AWS * Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation * data. ** This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. * The name can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores * (_), or hyphens (-). These restrictions don't apply to attribute values. */ public String getRecommendationsDisplayName() { return this.recommendationsDisplayName; } /** *
* A custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily stores * recommended items for each endpoint or user, depending on the value for the RecommendationProviderIdType * property. This value is required if the configuration doesn't invoke an AWS Lambda function * (RecommendationTransformerUri) to perform additional processing of recommendation data. *
** This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. The name * can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-). * These restrictions don't apply to attribute values. *
* * @param recommendationsDisplayName * A custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily * stores recommended items for each endpoint or user, depending on the value for the * RecommendationProviderIdType property. This value is required if the configuration doesn't invoke an AWS * Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation * data. ** This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. * The name can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), * or hyphens (-). These restrictions don't apply to attribute values. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommenderConfiguration withRecommendationsDisplayName(String recommendationsDisplayName) { setRecommendationsDisplayName(recommendationsDisplayName); return this; } /** *
* The number of recommended items to retrieve from the model for each endpoint or user, depending on the value for * the RecommendationProviderIdType property. This number determines how many recommended items are available for * use in message variables. The minimum value is 1. The maximum value is 5. The default value is 5. *
** To use multiple recommended items and custom attributes with message variables, you have to use an AWS Lambda * function (RecommendationTransformerUri) to perform additional processing of recommendation data. *
* * @param recommendationsPerMessage * The number of recommended items to retrieve from the model for each endpoint or user, depending on the * value for the RecommendationProviderIdType property. This number determines how many recommended items are * available for use in message variables. The minimum value is 1. The maximum value is 5. The default value * is 5. ** To use multiple recommended items and custom attributes with message variables, you have to use an AWS * Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data. */ public void setRecommendationsPerMessage(Integer recommendationsPerMessage) { this.recommendationsPerMessage = recommendationsPerMessage; } /** *
* The number of recommended items to retrieve from the model for each endpoint or user, depending on the value for * the RecommendationProviderIdType property. This number determines how many recommended items are available for * use in message variables. The minimum value is 1. The maximum value is 5. The default value is 5. *
** To use multiple recommended items and custom attributes with message variables, you have to use an AWS Lambda * function (RecommendationTransformerUri) to perform additional processing of recommendation data. *
* * @return The number of recommended items to retrieve from the model for each endpoint or user, depending on the * value for the RecommendationProviderIdType property. This number determines how many recommended items * are available for use in message variables. The minimum value is 1. The maximum value is 5. The default * value is 5. ** To use multiple recommended items and custom attributes with message variables, you have to use an AWS * Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data. */ public Integer getRecommendationsPerMessage() { return this.recommendationsPerMessage; } /** *
* The number of recommended items to retrieve from the model for each endpoint or user, depending on the value for * the RecommendationProviderIdType property. This number determines how many recommended items are available for * use in message variables. The minimum value is 1. The maximum value is 5. The default value is 5. *
** To use multiple recommended items and custom attributes with message variables, you have to use an AWS Lambda * function (RecommendationTransformerUri) to perform additional processing of recommendation data. *
* * @param recommendationsPerMessage * The number of recommended items to retrieve from the model for each endpoint or user, depending on the * value for the RecommendationProviderIdType property. This number determines how many recommended items are * available for use in message variables. The minimum value is 1. The maximum value is 5. The default value * is 5. ** To use multiple recommended items and custom attributes with message variables, you have to use an AWS * Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRecommenderConfiguration withRecommendationsPerMessage(Integer recommendationsPerMessage) { setRecommendationsPerMessage(recommendationsPerMessage); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRecommendationProviderIdType() != null) sb.append("RecommendationProviderIdType: ").append(getRecommendationProviderIdType()).append(","); if (getRecommendationProviderRoleArn() != null) sb.append("RecommendationProviderRoleArn: ").append(getRecommendationProviderRoleArn()).append(","); if (getRecommendationProviderUri() != null) sb.append("RecommendationProviderUri: ").append(getRecommendationProviderUri()).append(","); if (getRecommendationTransformerUri() != null) sb.append("RecommendationTransformerUri: ").append(getRecommendationTransformerUri()).append(","); if (getRecommendationsDisplayName() != null) sb.append("RecommendationsDisplayName: ").append(getRecommendationsDisplayName()).append(","); if (getRecommendationsPerMessage() != null) sb.append("RecommendationsPerMessage: ").append(getRecommendationsPerMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateRecommenderConfiguration == false) return false; CreateRecommenderConfiguration other = (CreateRecommenderConfiguration) obj; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getRecommendationProviderIdType() == null ^ this.getRecommendationProviderIdType() == null) return false; if (other.getRecommendationProviderIdType() != null && other.getRecommendationProviderIdType().equals(this.getRecommendationProviderIdType()) == false) return false; if (other.getRecommendationProviderRoleArn() == null ^ this.getRecommendationProviderRoleArn() == null) return false; if (other.getRecommendationProviderRoleArn() != null && other.getRecommendationProviderRoleArn().equals(this.getRecommendationProviderRoleArn()) == false) return false; if (other.getRecommendationProviderUri() == null ^ this.getRecommendationProviderUri() == null) return false; if (other.getRecommendationProviderUri() != null && other.getRecommendationProviderUri().equals(this.getRecommendationProviderUri()) == false) return false; if (other.getRecommendationTransformerUri() == null ^ this.getRecommendationTransformerUri() == null) return false; if (other.getRecommendationTransformerUri() != null && other.getRecommendationTransformerUri().equals(this.getRecommendationTransformerUri()) == false) return false; if (other.getRecommendationsDisplayName() == null ^ this.getRecommendationsDisplayName() == null) return false; if (other.getRecommendationsDisplayName() != null && other.getRecommendationsDisplayName().equals(this.getRecommendationsDisplayName()) == false) return false; if (other.getRecommendationsPerMessage() == null ^ this.getRecommendationsPerMessage() == null) return false; if (other.getRecommendationsPerMessage() != null && other.getRecommendationsPerMessage().equals(this.getRecommendationsPerMessage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRecommendationProviderIdType() == null) ? 0 : getRecommendationProviderIdType().hashCode()); hashCode = prime * hashCode + ((getRecommendationProviderRoleArn() == null) ? 0 : getRecommendationProviderRoleArn().hashCode()); hashCode = prime * hashCode + ((getRecommendationProviderUri() == null) ? 0 : getRecommendationProviderUri().hashCode()); hashCode = prime * hashCode + ((getRecommendationTransformerUri() == null) ? 0 : getRecommendationTransformerUri().hashCode()); hashCode = prime * hashCode + ((getRecommendationsDisplayName() == null) ? 0 : getRecommendationsDisplayName().hashCode()); hashCode = prime * hashCode + ((getRecommendationsPerMessage() == null) ? 0 : getRecommendationsPerMessage().hashCode()); return hashCode; } @Override public CreateRecommenderConfiguration clone() { try { return (CreateRecommenderConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.pinpoint.model.transform.CreateRecommenderConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }