public MessageRequest withContext(java.util.Map<String, String> context) {
        setContext(context);
        return this;
    }
<p>
A map of custom attributes to attach to the message. For a push notification, this payload is added to the
data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event
attributes.
</p>

@param context
       A map of custom attributes to attach to the message. For a push notification, this payload is added to the
       data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt
       event attributes.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/MessageRequest.java