public SendUsersMessageRequest withContext ( java . util . Map < String , String > context ) { setContext ( context ) ; return this ; }
A map of custom attribute - value pairs . Amazon Pinpoint adds these attributes to the data . pinpoint object in the body of the push notification payload . Amazon Pinpoint also provides these attributes in the events that it generates for users - messages deliveries .