@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JourneyPushMessage extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the message configuration for a push notification that's sent to participants in a journey.
Constructor and Description |
---|
JourneyPushMessage() |
Modifier and Type | Method and Description |
---|---|
JourneyPushMessage |
clone() |
boolean |
equals(Object obj) |
String |
getTimeToLive()
The number of seconds that the push notification service should keep the message, if the service is unable to
deliver the notification the first time.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTimeToLive(String timeToLive)
The number of seconds that the push notification service should keep the message, if the service is unable to
deliver the notification the first time.
|
String |
toString()
Returns a string representation of this object.
|
JourneyPushMessage |
withTimeToLive(String timeToLive)
The number of seconds that the push notification service should keep the message, if the service is unable to
deliver the notification the first time.
|
public void setTimeToLive(String timeToLive)
The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.
This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.
timeToLive
- The number of seconds that the push notification service should keep the message, if the service is unable
to deliver the notification the first time. This value is converted to an expiration value when it's sent
to a push-notification service. If this value is 0, the service treats the notification as if it expires
immediately and the service doesn't store or try to deliver the notification again.
This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.
public String getTimeToLive()
The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.
This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.
This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.
public JourneyPushMessage withTimeToLive(String timeToLive)
The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.
This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.
timeToLive
- The number of seconds that the push notification service should keep the message, if the service is unable
to deliver the notification the first time. This value is converted to an expiration value when it's sent
to a push-notification service. If this value is 0, the service treats the notification as if it expires
immediately and the service doesn't store or try to deliver the notification again.
This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.
public String toString()
toString
in class Object
Object.toString()
public JourneyPushMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.