|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.sns.model.PublishRequest
public class PublishRequest
Publish Request
Constructor Summary | |
---|---|
PublishRequest()
Default constructor for a new PublishRequest object. |
|
PublishRequest(String topicArn,
String message)
Constructs a new PublishRequest object and initializes the specified object members. |
Method Summary | |
---|---|
String |
getMessage()
The message you want to send to the topic. |
String |
getSubject()
Optional parameter to be used as the "Subject" line of when the message is delivered to e-mail endpoints. |
String |
getTopicArn()
The topic you want to publish to. |
void |
setMessage(String message)
The message you want to send to the topic. |
void |
setSubject(String subject)
Optional parameter to be used as the "Subject" line of when the message is delivered to e-mail endpoints. |
void |
setTopicArn(String topicArn)
The topic you want to publish to. |
String |
toString()
|
PublishRequest |
withMessage(String message)
The message you want to send to the topic. |
PublishRequest |
withSubject(String subject)
Optional parameter to be used as the "Subject" line of when the message is delivered to e-mail endpoints. |
PublishRequest |
withTopicArn(String topicArn)
The topic you want to publish to. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PublishRequest()
public PublishRequest(String topicArn, String message)
topicArn
- The topic you want to publish to.message
- The message you want to send to the topic.
Constraints: Messages must be UTF-8 encoded strings at most 8 KB in size (8192 bytes, not 8192 characters).
Method Detail |
---|
public String getTopicArn()
public void setTopicArn(String topicArn)
topicArn
- The topic you want to publish to.public PublishRequest withTopicArn(String topicArn)
Returns a reference to this object so that method calls can be chained together.
topicArn
- The topic you want to publish to.
public String getMessage()
Constraints: Messages must be UTF-8 encoded strings at most 8 KB in size (8192 bytes, not 8192 characters).
Constraints: Messages must be UTF-8 encoded strings at most 8 KB in size (8192 bytes, not 8192 characters).
public void setMessage(String message)
Constraints: Messages must be UTF-8 encoded strings at most 8 KB in size (8192 bytes, not 8192 characters).
message
- The message you want to send to the topic. Constraints: Messages must be UTF-8 encoded strings at most 8 KB in size (8192 bytes, not 8192 characters).
public PublishRequest withMessage(String message)
Constraints: Messages must be UTF-8 encoded strings at most 8 KB in size (8192 bytes, not 8192 characters).
Returns a reference to this object so that method calls can be chained together.
message
- The message you want to send to the topic. Constraints: Messages must be UTF-8 encoded strings at most 8 KB in size (8192 bytes, not 8192 characters).
public String getSubject()
Constraints: Subjects must be ASCII text that begins with a letter, number or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long.
Constraints: Subjects must be ASCII text that begins with a letter, number or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long.
public void setSubject(String subject)
Constraints: Subjects must be ASCII text that begins with a letter, number or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long.
subject
- Optional parameter to be used as the "Subject" line of when the
message is delivered to e-mail endpoints. This field will also be
included, if present, in the standard JSON messages delivered to other
endpoints. Constraints: Subjects must be ASCII text that begins with a letter, number or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long.
public PublishRequest withSubject(String subject)
Constraints: Subjects must be ASCII text that begins with a letter, number or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long.
Returns a reference to this object so that method calls can be chained together.
subject
- Optional parameter to be used as the "Subject" line of when the
message is delivered to e-mail endpoints. This field will also be
included, if present, in the standard JSON messages delivered to other
endpoints. Constraints: Subjects must be ASCII text that begins with a letter, number or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |