Package io.awspring.cloud.sqs.operations
Record Class SendResult.Failed<T>
java.lang.Object
java.lang.Record
io.awspring.cloud.sqs.operations.SendResult.Failed<T>
- Type Parameters:
T- the message payload type.- Record Components:
errorMessage- a message with information on the error.
- Enclosing class:
- SendResult<T>
public static record SendResult.Failed<T>(String errorMessage, String endpoint, Message<T> message, Map<String,Object> additionalInformation)
extends Record
The result of a failed send operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalInformationrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Failed
public Failed(String errorMessage, String endpoint, Message<T> message, Map<String, Object> additionalInformation) Creates an instance of aFailedrecord class.- Parameters:
errorMessage- the value for theerrorMessagerecord componentendpoint- the value for theendpointrecord componentmessage- the value for themessagerecord componentadditionalInformation- the value for theadditionalInformationrecord 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). -
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
additionalInformation
Returns the value of theadditionalInformationrecord component.- Returns:
- the value of the
additionalInformationrecord component
-