/* * 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 default settings and content for a message template that can be used in messages that are sent through * a push notification channel. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DefaultPushNotificationTemplate 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 push notifications that are based on the message template. *

*/ private String body; /** *

* 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/. *

*

* For an iOS platform, this value is the key for the name of a sound file in your app's main bundle or the * Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for * the value, the system plays the default alert sound. *

*/ private String sound; /** *

* The title to use in push notifications that are 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:

*