Package io.awspring.cloud.sns.core.batch
Record Class BatchResult.SnsError
java.lang.Object
java.lang.Record
io.awspring.cloud.sns.core.batch.BatchResult.SnsError
- Record Components:
batchId- The identifier used in the batch request to correlate the errorcode- The error code indicating the type of failuremessage- A human-readable description of the errorsenderFault- Indicates whether the error was caused by the sender (true) or the service (false)
- Enclosing class:
- BatchResult
public static record BatchResult.SnsError(String batchId, String code, String message, boolean senderFault)
extends Record
Represents a failed message in a batch operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchId()Returns the value of thebatchIdrecord component.code()Returns the value of thecoderecord component.final 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.booleanReturns the value of thesenderFaultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SnsError
Creates an instance of aSnsErrorrecord class.- Parameters:
batchId- the value for thebatchIdrecord componentcode- the value for thecoderecord componentmessage- the value for themessagerecord componentsenderFault- the value for thesenderFaultrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
batchId
Returns the value of thebatchIdrecord component.- Returns:
- the value of the
batchIdrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
senderFault
public boolean senderFault()Returns the value of thesenderFaultrecord component.- Returns:
- the value of the
senderFaultrecord component
-