Record Class DeserializedOperationResult<T>
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.model.DeserializedOperationResult<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDeserializedOperationResult(software.amazon.awssdk.services.lambda.model.OperationStatus status, T result, Throwable throwable) Creates an instance of aDeserializedOperationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static <T> DeserializedOperationResult<T>get()final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.software.amazon.awssdk.services.lambda.model.OperationStatusstatus()Returns the value of thestatusrecord component.static <T> DeserializedOperationResult<T>succeeded(T result) Returns the value of thethrowablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeserializedOperationResult
public DeserializedOperationResult(software.amazon.awssdk.services.lambda.model.OperationStatus status, T result, Throwable throwable) Creates an instance of aDeserializedOperationResultrecord class.- Parameters:
status- the value for thestatusrecord componentresult- the value for theresultrecord componentthrowable- the value for thethrowablerecord component
-
-
Method Details
-
succeeded
-
failed
-
get
-
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). -
status
public software.amazon.awssdk.services.lambda.model.OperationStatus status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
throwable
Returns the value of thethrowablerecord component.- Returns:
- the value of the
throwablerecord component
-