AWS SDK for .NET Documentation
PublishRequest Class
AmazonAmazon.SimpleNotificationService.ModelPublishRequest Did this page help you?   Yes   No    Tell us about it...
Sends a message to all of a topic's subscribed endpoints.
Declaration Syntax
C#
public class PublishRequest : SNSRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
PublishRequest()()()()
Initializes a new instance of the PublishRequest class

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
IsSetMessage()()()()
Checks if Message property is set

IsSetMessageStructure()()()()
Checks if MessageStructure property is set

IsSetSubject()()()()
Checks if Subject property is set

IsSetTopicArn()()()()
Checks if TopicArn property is set

Message
The message you want to send to the topic.

MessageStructure
The structure of the message. Optional parameter. It can have only one valid value: "json".

Subject
Subject of the message.

TopicArn
The ARN of the topic you want to publish to.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithMessage(String)
Sets the message you want to send to the topic.

WithMessageStructure(String)
Sets the structure of the message. Valid values: "json"

WithSubject(String)
Sets the subject of the message.

WithTopicArn(String)
Sets the ARN of the topic you want to publish to.

Remarks
When a messageId is returned, the message has been saved and Amazon SNS will attempt to deliver it to the topic's subscribers shortly. The format of the outgoing message to each subscribed endpoint depends on the notification protocol selected.
Inheritance Hierarchy
Object
SNSRequest
 PublishRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.20.0 (1.5.20.0)