/* * 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 APNs (Apple Push Notification service) channel. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class APNSPushNotificationTemplate 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 URL of an image or video to display in push notifications that are based on the message template. *

*/ private String mediaUrl; /** *

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

*/ private String rawContent; /** *

* The key for the sound to play when the recipient receives a push notification that's based on the message * template. The value for this key is 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 the 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:

*