/* * 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 channel-specific content and settings for a message template that can be used in push notifications that * are sent through the ADM (Amazon Device Messaging), Baidu (Baidu Cloud Push), or GCM (Firebase Cloud Messaging, * formerly Google Cloud Messaging) channel. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AndroidPushNotificationTemplate implements Serializable, Cloneable, StructuredPojo { /** *

* The action to occur if a recipient taps a push notification that's based on the message template. Valid values * are: *

* */ private String action; /** *

* The message body to use in a push notification that's based on the message template. *

*/ private String body; /** *

* The URL of the large icon image to display in the content view of a push notification that's based on the message * template. *

*/ private String imageIconUrl; /** *

* The URL of an image to display in a push notification that's based on the message template. *

*/ private String imageUrl; /** *

* The raw, JSON-formatted string to use as the payload for a push notification that's based on the message * template. If specified, this value overrides all other content for the message template. *

*/ private String rawContent; /** *

* The URL of the small icon image to display in the status bar and the content view of a push notification that's * based on the message template. *

*/ private String smallImageIconUrl; /** *

* The sound to play when a recipient receives a push notification that's based on the message template. You can use * the default stream or specify the file name of a sound resource that's bundled in your app. On an Android * platform, the sound file must reside in /res/raw/. *

*/ private String sound; /** *

* The title to use in a push notification that's based on the message template. This title appears above the * notification message on a recipient's device. *

*/ private String title; /** *

* The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on * the message template and the value of the Action property is URL. *

*/ private String url; /** *

* The action to occur if a recipient taps a push notification that's based on the message template. Valid values * are: *

* * * @param action * The action to occur if a recipient taps a push notification that's based on the message template. Valid * values are:

*