Package io.awspring.cloud.sns.core.async
Record Class PublishMessageResult<T>
java.lang.Object
java.lang.Record
io.awspring.cloud.sns.core.async.PublishMessageResult<T>
- Type Parameters:
T- the message payload type- Record Components:
message- the original message that was sentmessageId- the SNS message ID returned by AWSsequenceNumber- the sequence number for FIFO topics (null for standard topics)
public record PublishMessageResult<T>(Message<T> message, String messageId, @Nullable String sequenceNumber)
extends Record
Result of an SNS operation.
- Since:
- 4.1.0
- Author:
- Matej Nedic
-
Constructor Summary
ConstructorsConstructorDescriptionPublishMessageResult(Message<T> message, String messageId, @Nullable String sequenceNumber) Creates an instance of aPublishMessageResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of themessageIdrecord component.@Nullable StringReturns the value of thesequenceNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PublishMessageResult
Creates an instance of aPublishMessageResultrecord class.- Parameters:
message- the value for themessagerecord componentmessageId- the value for themessageIdrecord componentsequenceNumber- the value for thesequenceNumberrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
sequenceNumber
Returns the value of thesequenceNumberrecord component.- Returns:
- the value of the
sequenceNumberrecord component
-