/* * 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 address-based configuration settings for a message that's sent directly to an endpoint. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AddressConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The message body to use instead of the default message body. This value overrides the default message body. *
*/ private String bodyOverride; /** ** The channel to use when sending the message. *
*/ private String channelType; /** ** An object that maps custom attributes to attributes for the address and is attached to the message. 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 by properties of the DefaultMessage object. * The variables specified in this map take precedence over all other variables. *
*/ private java.util.Map* The message title to use instead of the default message title. This value overrides the default message title. *
*/ private String titleOverride; /** ** The message body to use instead of the default message body. This value overrides the default message body. *
* * @param bodyOverride * The message body to use instead of the default message body. This value overrides the default message * body. */ public void setBodyOverride(String bodyOverride) { this.bodyOverride = bodyOverride; } /** ** The message body to use instead of the default message body. This value overrides the default message body. *
* * @return The message body to use instead of the default message body. This value overrides the default message * body. */ public String getBodyOverride() { return this.bodyOverride; } /** ** The message body to use instead of the default message body. This value overrides the default message body. *
* * @param bodyOverride * The message body to use instead of the default message body. This value overrides the default message * body. * @return Returns a reference to this object so that method calls can be chained together. */ public AddressConfiguration withBodyOverride(String bodyOverride) { setBodyOverride(bodyOverride); return this; } /** ** The channel to use when sending the message. *
* * @param channelType * The channel to use when sending the message. * @see ChannelType */ public void setChannelType(String channelType) { this.channelType = channelType; } /** ** The channel to use when sending the message. *
* * @return The channel to use when sending the message. * @see ChannelType */ public String getChannelType() { return this.channelType; } /** ** The channel to use when sending the message. *
* * @param channelType * The channel to use when sending the message. * @return Returns a reference to this object so that method calls can be chained together. * @see ChannelType */ public AddressConfiguration withChannelType(String channelType) { setChannelType(channelType); return this; } /** ** The channel to use when sending the message. *
* * @param channelType * The channel to use when sending the message. * @see ChannelType */ public void setChannelType(ChannelType channelType) { withChannelType(channelType); } /** ** The channel to use when sending the message. *
* * @param channelType * The channel to use when sending the message. * @return Returns a reference to this object so that method calls can be chained together. * @see ChannelType */ public AddressConfiguration withChannelType(ChannelType channelType) { this.channelType = channelType.toString(); return this; } /** ** An object that maps custom attributes to attributes for the address and is attached to the message. 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 An object that maps custom attributes to attributes for the address and is attached to the message. * 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
* An object that maps custom attributes to attributes for the address and is attached to the message. 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
* An object that maps custom attributes to attributes for the address and is attached to the message. 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 AddressConfiguration 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 by properties of the DefaultMessage object.
* The variables specified in this map take precedence over all other variables.
*
* A map of the message variables to merge with the variables specified by properties of the DefaultMessage object.
* The variables specified in this map take precedence over all other variables.
*
* A map of the message variables to merge with the variables specified by properties of the DefaultMessage object.
* The variables specified in this map take precedence over all other variables.
*
* The message title to use instead of the default message title. This value overrides the default message title.
*
* The message title to use instead of the default message title. This value overrides the default message title.
*
* The message title to use instead of the default message title. This value overrides the default message title.
*