@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PushNotificationConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The push notification configuration of the message.
Constructor and Description |
---|
PushNotificationConfiguration() |
Modifier and Type | Method and Description |
---|---|
PushNotificationConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The body of the push notification.
|
String |
getTitle()
The title of the push notification.
|
String |
getType()
Enum value that indicates the type of the push notification for a message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBody(String body)
The body of the push notification.
|
void |
setTitle(String title)
The title of the push notification.
|
void |
setType(String type)
Enum value that indicates the type of the push notification for a message.
|
String |
toString()
Returns a string representation of this object.
|
PushNotificationConfiguration |
withBody(String body)
The body of the push notification.
|
PushNotificationConfiguration |
withTitle(String title)
The title of the push notification.
|
PushNotificationConfiguration |
withType(PushNotificationType type)
Enum value that indicates the type of the push notification for a message.
|
PushNotificationConfiguration |
withType(String type)
Enum value that indicates the type of the push notification for a message.
|
public void setTitle(String title)
The title of the push notification.
title
- The title of the push notification.public String getTitle()
The title of the push notification.
public PushNotificationConfiguration withTitle(String title)
The title of the push notification.
title
- The title of the push notification.public void setBody(String body)
The body of the push notification.
body
- The body of the push notification.public String getBody()
The body of the push notification.
public PushNotificationConfiguration withBody(String body)
The body of the push notification.
body
- The body of the push notification.public void setType(String type)
Enum value that indicates the type of the push notification for a message. DEFAULT
: Normal mobile
push notification. VOIP
: VOIP mobile push notification.
type
- Enum value that indicates the type of the push notification for a message. DEFAULT
: Normal
mobile push notification. VOIP
: VOIP mobile push notification.PushNotificationType
public String getType()
Enum value that indicates the type of the push notification for a message. DEFAULT
: Normal mobile
push notification. VOIP
: VOIP mobile push notification.
DEFAULT
: Normal
mobile push notification. VOIP
: VOIP mobile push notification.PushNotificationType
public PushNotificationConfiguration withType(String type)
Enum value that indicates the type of the push notification for a message. DEFAULT
: Normal mobile
push notification. VOIP
: VOIP mobile push notification.
type
- Enum value that indicates the type of the push notification for a message. DEFAULT
: Normal
mobile push notification. VOIP
: VOIP mobile push notification.PushNotificationType
public PushNotificationConfiguration withType(PushNotificationType type)
Enum value that indicates the type of the push notification for a message. DEFAULT
: Normal mobile
push notification. VOIP
: VOIP mobile push notification.
type
- Enum value that indicates the type of the push notification for a message. DEFAULT
: Normal
mobile push notification. VOIP
: VOIP mobile push notification.PushNotificationType
public String toString()
toString
in class Object
Object.toString()
public PushNotificationConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.