Package io.awspring.cloud.sns.core.batch
Record Class BatchResult.SnsResult
java.lang.Object
java.lang.Record
io.awspring.cloud.sns.core.batch.BatchResult.SnsResult
- Record Components:
messageId- The unique identifier assigned by SNS to the published messagebatchId- The identifier used in the batch request to correlate the resultsequenceNumber- Sequence number of message sent. Only for FIFO.
- Enclosing class:
- BatchResult
public static record BatchResult.SnsResult(String messageId, String batchId, String sequenceNumber)
extends Record
Represents a successfully published message in a batch operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchId()Returns the value of thebatchIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.Returns the value of thesequenceNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SnsResult
Creates an instance of aSnsResultrecord class.- Parameters:
messageId- the value for themessageIdrecord componentbatchId- the value for thebatchIdrecord 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). -
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
batchId
Returns the value of thebatchIdrecord component.- Returns:
- the value of the
batchIdrecord component
-
sequenceNumber
Returns the value of thesequenceNumberrecord component.- Returns:
- the value of the
sequenceNumberrecord component
-