public class PushNotification extends Object
AWSCredentials
Regions
BulkDispatcher
Constructor and Description |
---|
PushNotification(String reg,
com.amazonaws.auth.BasicAWSCredentials awsCredentials,
PlatformDetails platformDetails,
PlatformMessageDeliveryAttributes arnAccess) |
Modifier and Type | Method and Description |
---|---|
com.amazonaws.auth.AWSCredentials |
getAwsCredentials()
Credentials required to init a
AmazonSNSClient |
PlatformDetails |
getPlatformDetails()
Details generated from Platform to which the Push Notification is to be published
|
com.amazonaws.regions.Regions |
getRegion()
Enumeration of region names
make sure that the operation to be performed is supported in the region
|
com.amazonaws.services.sns.AmazonSNS |
getSnsClient()
Client for accessing Amazon SNS.
|
void |
init()
Initialize the Amazon SNS Client using
AWSCredentials
Regions
|
void |
pushAndroidNoitification(PushNotificationMessage notification)
Send Notification to a Android Device using FCM via Amazon SNS
|
void |
setAwsCredentials(com.amazonaws.auth.AWSCredentials awsCredentials)
Credentials required to init a
AmazonSNSClient |
void |
setPlatformDetails(PlatformDetails platformDetails)
Details generated from Platform to which the Push Notification is to be published
|
void |
setRegion(com.amazonaws.regions.Regions region)
Enumeration of region names
make sure that the operation to be performed is supported in the region
|
void |
setSnsClient(com.amazonaws.services.sns.AmazonSNS snsClient)
Client for accessing Amazon SNS.
|
public PushNotification(String reg, com.amazonaws.auth.BasicAWSCredentials awsCredentials, PlatformDetails platformDetails, PlatformMessageDeliveryAttributes arnAccess)
snsCl
- : Client for accessing Amazon SNS.reg
- : Region to be used for the sms
@PostConstruct public void init()
AWSCredentials
Regions
public void pushAndroidNoitification(PushNotificationMessage notification)
notification
- : notification detailspublic com.amazonaws.auth.AWSCredentials getAwsCredentials()
AmazonSNSClient
AWSCredentials
public void setAwsCredentials(com.amazonaws.auth.AWSCredentials awsCredentials)
AmazonSNSClient
AWSCredentials
public com.amazonaws.services.sns.AmazonSNS getSnsClient()
public void setSnsClient(com.amazonaws.services.sns.AmazonSNS snsClient)
public com.amazonaws.regions.Regions getRegion()
public void setRegion(com.amazonaws.regions.Regions region)
public PlatformDetails getPlatformDetails()
public void setPlatformDetails(PlatformDetails platformDetails)
Copyright © 2018. All rights reserved.