/* * 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 the content, including message variables and attributes, to use in a message that's sent directly to an * endpoint. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EndpointSendConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The body of the message. If specified, this value overrides the default message body. *
*/ private String bodyOverride; /** ** A map of custom attributes to attach to the message for the address. Attribute names are case sensitive. *
** For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this * payload is added to email/SMS delivery receipt event attributes. *
*/ private java.util.Map* The raw, JSON-formatted string to use as the payload for the message. If specified, this value overrides all * other values for the message. *
*/ private String rawContent; /** ** A map of the message variables to merge with the variables specified for the default message * (DefaultMessage.Substitutions). The variables specified in this map take precedence over all other variables. *
*/ private java.util.Map* The title or subject line of the message. If specified, this value overrides the default message title or subject * line. *
*/ private String titleOverride; /** ** The body of the message. If specified, this value overrides the default message body. *
* * @param bodyOverride * The body of the message. If specified, this value overrides the default message body. */ public void setBodyOverride(String bodyOverride) { this.bodyOverride = bodyOverride; } /** ** The body of the message. If specified, this value overrides the default message body. *
* * @return The body of the message. If specified, this value overrides the default message body. */ public String getBodyOverride() { return this.bodyOverride; } /** ** The body of the message. If specified, this value overrides the default message body. *
* * @param bodyOverride * The body of the message. If specified, this value overrides the default message body. * @return Returns a reference to this object so that method calls can be chained together. */ public EndpointSendConfiguration withBodyOverride(String bodyOverride) { setBodyOverride(bodyOverride); return this; } /** ** A map of custom attributes to attach to the message for the address. Attribute names are case sensitive. *
** For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this * payload is added to email/SMS delivery receipt event attributes. *
* * @return A map of custom attributes to attach to the message for the address. Attribute names are case * sensitive. *
* For a push notification, this payload is added to the data.pinpoint object. For an email or text message,
* this payload is added to email/SMS delivery receipt event attributes.
*/
public java.util.Map
* A map of custom attributes to attach to the message for the address. Attribute names are case sensitive.
*
* For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this
* payload is added to email/SMS delivery receipt event attributes.
*
* For a push notification, this payload is added to the data.pinpoint object. For an email or text message,
* this payload is added to email/SMS delivery receipt event attributes.
*/
public void setContext(java.util.Map
* A map of custom attributes to attach to the message for the address. Attribute names are case sensitive.
*
* For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this
* payload is added to email/SMS delivery receipt event attributes.
*
* For a push notification, this payload is added to the data.pinpoint object. For an email or text message,
* this payload is added to email/SMS delivery receipt event attributes.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EndpointSendConfiguration withContext(java.util.Map
* The raw, JSON-formatted string to use as the payload for the message. If specified, this value overrides all
* other values for the message.
*
* The raw, JSON-formatted string to use as the payload for the message. If specified, this value overrides all
* other values for the message.
*
* The raw, JSON-formatted string to use as the payload for the message. If specified, this value overrides all
* other values for the message.
*
* A map of the message variables to merge with the variables specified for the default message
* (DefaultMessage.Substitutions). The variables specified in this map take precedence over all other variables.
*
* A map of the message variables to merge with the variables specified for the default message
* (DefaultMessage.Substitutions). The variables specified in this map take precedence over all other variables.
*
* A map of the message variables to merge with the variables specified for the default message
* (DefaultMessage.Substitutions). The variables specified in this map take precedence over all other variables.
*
* The title or subject line of the message. If specified, this value overrides the default message title or subject
* line.
*
* The title or subject line of the message. If specified, this value overrides the default message title or subject
* line.
*
* The title or subject line of the message. If specified, this value overrides the default message title or subject
* line.
*