@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PushNotificationPreferences extends Object implements Serializable, Cloneable, StructuredPojo
The channel membership preferences for push notification.
| Constructor and Description |
|---|
PushNotificationPreferences() |
| Modifier and Type | Method and Description |
|---|---|
PushNotificationPreferences |
clone() |
boolean |
equals(Object obj) |
String |
getAllowNotifications()
Enum value that indicates which push notifications to send to the requested member of a channel.
|
String |
getFilterRule()
The simple JSON object used to send a subset of a push notification to the requested member.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAllowNotifications(String allowNotifications)
Enum value that indicates which push notifications to send to the requested member of a channel.
|
void |
setFilterRule(String filterRule)
The simple JSON object used to send a subset of a push notification to the requested member.
|
String |
toString()
Returns a string representation of this object.
|
PushNotificationPreferences |
withAllowNotifications(AllowNotifications allowNotifications)
Enum value that indicates which push notifications to send to the requested member of a channel.
|
PushNotificationPreferences |
withAllowNotifications(String allowNotifications)
Enum value that indicates which push notifications to send to the requested member of a channel.
|
PushNotificationPreferences |
withFilterRule(String filterRule)
The simple JSON object used to send a subset of a push notification to the requested member.
|
public void setAllowNotifications(String allowNotifications)
Enum value that indicates which push notifications to send to the requested member of a channel. ALL
sends all push notifications, NONE sends no push notifications, FILTERED sends only
filtered push notifications.
allowNotifications - Enum value that indicates which push notifications to send to the requested member of a channel.
ALL sends all push notifications, NONE sends no push notifications,
FILTERED sends only filtered push notifications.AllowNotificationspublic String getAllowNotifications()
Enum value that indicates which push notifications to send to the requested member of a channel. ALL
sends all push notifications, NONE sends no push notifications, FILTERED sends only
filtered push notifications.
ALL sends all push notifications, NONE sends no push notifications,
FILTERED sends only filtered push notifications.AllowNotificationspublic PushNotificationPreferences withAllowNotifications(String allowNotifications)
Enum value that indicates which push notifications to send to the requested member of a channel. ALL
sends all push notifications, NONE sends no push notifications, FILTERED sends only
filtered push notifications.
allowNotifications - Enum value that indicates which push notifications to send to the requested member of a channel.
ALL sends all push notifications, NONE sends no push notifications,
FILTERED sends only filtered push notifications.AllowNotificationspublic PushNotificationPreferences withAllowNotifications(AllowNotifications allowNotifications)
Enum value that indicates which push notifications to send to the requested member of a channel. ALL
sends all push notifications, NONE sends no push notifications, FILTERED sends only
filtered push notifications.
allowNotifications - Enum value that indicates which push notifications to send to the requested member of a channel.
ALL sends all push notifications, NONE sends no push notifications,
FILTERED sends only filtered push notifications.AllowNotificationspublic void setFilterRule(String filterRule)
The simple JSON object used to send a subset of a push notification to the requested member.
filterRule - The simple JSON object used to send a subset of a push notification to the requested member.public String getFilterRule()
The simple JSON object used to send a subset of a push notification to the requested member.
public PushNotificationPreferences withFilterRule(String filterRule)
The simple JSON object used to send a subset of a push notification to the requested member.
filterRule - The simple JSON object used to send a subset of a push notification to the requested member.public String toString()
toString in class ObjectObject.toString()public PushNotificationPreferences clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.