Record Class OperationResult
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.testing.OperationResult
public record OperationResult(software.amazon.awssdk.services.lambda.model.OperationStatus operationStatus, String result, software.amazon.awssdk.services.lambda.model.ErrorObject error)
extends Record
The operation status and result/error from Step, Context, Callback and ChainedInvoke operations
-
Constructor Summary
ConstructorsConstructorDescriptionOperationResult(software.amazon.awssdk.services.lambda.model.OperationStatus operationStatus, String result, software.amazon.awssdk.services.lambda.model.ErrorObject error) Creates an instance of aOperationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.software.amazon.awssdk.services.lambda.model.ErrorObjecterror()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.software.amazon.awssdk.services.lambda.model.OperationStatusReturns the value of theoperationStatusrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OperationResult
public OperationResult(software.amazon.awssdk.services.lambda.model.OperationStatus operationStatus, String result, software.amazon.awssdk.services.lambda.model.ErrorObject error) Creates an instance of aOperationResultrecord class.- Parameters:
operationStatus- the value for theoperationStatusrecord componentresult- the value for theresultrecord componenterror- the value for theerrorrecord 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). -
operationStatus
public software.amazon.awssdk.services.lambda.model.OperationStatus operationStatus()Returns the value of theoperationStatusrecord component.- Returns:
- the value of the
operationStatusrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
error
public software.amazon.awssdk.services.lambda.model.ErrorObject error()Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-