Record Class DurableExecutionOutput
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.model.DurableExecutionOutput
public record DurableExecutionOutput(ExecutionStatus status, String result, software.amazon.awssdk.services.lambda.model.ErrorObject error)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDurableExecutionOutput(ExecutionStatus status, String result, software.amazon.awssdk.services.lambda.model.ErrorObject error) Creates an instance of aDurableExecutionOutputrecord 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.static DurableExecutionOutputfailure(software.amazon.awssdk.services.lambda.model.ErrorObject errorObject) final inthashCode()Returns a hash code value for this object.static DurableExecutionOutputpending()result()Returns the value of theresultrecord component.status()Returns the value of thestatusrecord component.static DurableExecutionOutputfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DurableExecutionOutput
public DurableExecutionOutput(ExecutionStatus status, String result, software.amazon.awssdk.services.lambda.model.ErrorObject error) Creates an instance of aDurableExecutionOutputrecord class.- Parameters:
status- the value for thestatusrecord componentresult- the value for theresultrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
success
-
pending
-
failure
public static DurableExecutionOutput failure(software.amazon.awssdk.services.lambda.model.ErrorObject errorObject) -
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
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
-
error
public software.amazon.awssdk.services.lambda.model.ErrorObject error()Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-