/* * 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 push notification that's sent directly to an endpoint. *

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

* The default action to occur if a recipient taps the push notification. Valid values are: *

* */ private String action; /** *

* The default body of the notification message. *

*/ private String body; /** *

* The JSON data payload to use for the default push notification, if the notification is a silent push * notification. This payload is added to the data.pinpoint.jsonBody object of the notification. *

*/ private java.util.Map data; /** *

* Specifies whether the default notification is a silent push notification, which is a push notification that * doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an * app's configuration or delivering messages to an in-app notification center. *

*/ private Boolean silentPush; /** *

* The default message variables to use in the notification message. You can override the default variables with * individual address variables. *

*/ private java.util.Map> substitutions; /** *

* The default title to display above the notification message on a recipient's device. *

*/ private String title; /** *

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

*/ private String url; /** *

* The default action to occur if a recipient taps the push notification. Valid values are: *

* * * @param action * The default action to occur if a recipient taps the push notification. Valid values are:

*