public class PublishResult
extends java.lang.Object
implements java.io.Serializable
Response for Publish action.
Constructor and Description |
---|
PublishResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessageId()
Unique identifier assigned to the published message.
|
java.lang.String |
getSequenceNumber()
This response element applies only to FIFO (first-in-first-out) topics.
|
int |
hashCode() |
void |
setMessageId(java.lang.String messageId)
Unique identifier assigned to the published message.
|
void |
setSequenceNumber(java.lang.String sequenceNumber)
This response element applies only to FIFO (first-in-first-out) topics.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PublishResult |
withMessageId(java.lang.String messageId)
Unique identifier assigned to the published message.
|
PublishResult |
withSequenceNumber(java.lang.String sequenceNumber)
This response element applies only to FIFO (first-in-first-out) topics.
|
public java.lang.String getMessageId()
Unique identifier assigned to the published message.
Length Constraint: Maximum 100 characters
Unique identifier assigned to the published message.
Length Constraint: Maximum 100 characters
public void setMessageId(java.lang.String messageId)
Unique identifier assigned to the published message.
Length Constraint: Maximum 100 characters
messageId
- Unique identifier assigned to the published message.
Length Constraint: Maximum 100 characters
public PublishResult withMessageId(java.lang.String messageId)
Unique identifier assigned to the published message.
Length Constraint: Maximum 100 characters
Returns a reference to this object so that method calls can be chained together.
messageId
- Unique identifier assigned to the published message.
Length Constraint: Maximum 100 characters
public java.lang.String getSequenceNumber()
This response element applies only to FIFO (first-in-first-out) topics.
The sequence number is a large, non-consecutive number that Amazon SNS
assigns to each message. The length of SequenceNumber
is 128
bits. SequenceNumber
continues to increase for each
MessageGroupId
.
This response element applies only to FIFO (first-in-first-out) topics.
The sequence number is a large, non-consecutive number that
Amazon SNS assigns to each message. The length of
SequenceNumber
is 128 bits.
SequenceNumber
continues to increase for each
MessageGroupId
.
public void setSequenceNumber(java.lang.String sequenceNumber)
This response element applies only to FIFO (first-in-first-out) topics.
The sequence number is a large, non-consecutive number that Amazon SNS
assigns to each message. The length of SequenceNumber
is 128
bits. SequenceNumber
continues to increase for each
MessageGroupId
.
sequenceNumber
- This response element applies only to FIFO (first-in-first-out) topics.
The sequence number is a large, non-consecutive number that
Amazon SNS assigns to each message. The length of
SequenceNumber
is 128 bits.
SequenceNumber
continues to increase for each
MessageGroupId
.
public PublishResult withSequenceNumber(java.lang.String sequenceNumber)
This response element applies only to FIFO (first-in-first-out) topics.
The sequence number is a large, non-consecutive number that Amazon SNS
assigns to each message. The length of SequenceNumber
is 128
bits. SequenceNumber
continues to increase for each
MessageGroupId
.
Returns a reference to this object so that method calls can be chained together.
sequenceNumber
- This response element applies only to FIFO (first-in-first-out) topics.
The sequence number is a large, non-consecutive number that
Amazon SNS assigns to each message. The length of
SequenceNumber
is 128 bits.
SequenceNumber
continues to increase for each
MessageGroupId
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.