Java com.amazonaws.services.sns.model PublishRequest fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws.services.sns.model PublishRequest fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws.services.sns.model PublishRequest.

The text is from its open source code.

Constructor

PublishRequest()
Default constructor for PublishRequest object.
PublishRequest(String topicArn, String message, String subject)
Constructs a new PublishRequest object.
PublishRequest(String topicArn, String message)
Constructs a new PublishRequest object.

Method

PublishRequestaddMessageAttributesEntry(String key, MessageAttributeValue value)
StringgetMessage()

The message you want to send.

java.util.MapgetMessageAttributes()

Message attributes for Publish action.

StringgetPhoneNumber()

The phone number to which you want to deliver an SMS message.

StringgetSubject()

Optional parameter to be used as the "Subject" line when the message is delivered to email endpoints.

StringgetTopicArn()

The topic you want to publish to.

voidsetMessage(String message)

The message you want to send.

voidsetMessageAttributes(java.util.Map messageAttributes)

Message attributes for Publish action.

voidsetMessageStructure(String messageStructure)

Set MessageStructure to json if you want to send a different message for each protocol.

voidsetSubject(String subject)

Optional parameter to be used as the "Subject" line when the message is delivered to email endpoints.

voidsetTargetArn(String targetArn)

If you don't specify a value for the TargetArn parameter, you must specify a value for the PhoneNumber or TopicArn parameters.

voidsetTopicArn(String topicArn)

The topic you want to publish to.

PublishRequestwithMessageAttributes(java.util.Map messageAttributes)

Message attributes for Publish action.

PublishRequestwithMessageStructure(String messageStructure)

Set MessageStructure to json if you want to send a different message for each protocol.