Record Class OperationIdentifier
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.model.OperationIdentifier
- Record Components:
operationId- unique sequential identifier for the operation within an executionname- human-readable name for the operationoperationType- the kind of operation (STEP, WAIT, CALLBACK, etc.)subType- optional sub-type for operations that need further classification (e.g. child contexts)
public record OperationIdentifier(String operationId, String name, software.amazon.awssdk.services.lambda.model.OperationType operationType, OperationSubType subType)
extends Record
Identifies a durable operation by its unique ID, human-readable name, type, and optional sub-type.
-
Constructor Summary
ConstructorsConstructorDescriptionOperationIdentifier(String operationId, String name, software.amazon.awssdk.services.lambda.model.OperationType operationType, OperationSubType subType) Creates an instance of aOperationIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.static OperationIdentifierof(String operationId, String name, software.amazon.awssdk.services.lambda.model.OperationType type) Creates an identifier without a sub-type.static OperationIdentifierof(String operationId, String name, software.amazon.awssdk.services.lambda.model.OperationType type, OperationSubType subType) Creates an identifier with a sub-type.Returns the value of theoperationIdrecord component.software.amazon.awssdk.services.lambda.model.OperationTypeReturns the value of theoperationTyperecord component.subType()Returns the value of thesubTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OperationIdentifier
public OperationIdentifier(String operationId, String name, software.amazon.awssdk.services.lambda.model.OperationType operationType, OperationSubType subType) Creates an instance of aOperationIdentifierrecord class.- Parameters:
operationId- the value for theoperationIdrecord componentname- the value for thenamerecord componentoperationType- the value for theoperationTyperecord componentsubType- the value for thesubTyperecord component
-
-
Method Details
-
of
public static OperationIdentifier of(String operationId, String name, software.amazon.awssdk.services.lambda.model.OperationType type) Creates an identifier without a sub-type. -
of
public static OperationIdentifier of(String operationId, String name, software.amazon.awssdk.services.lambda.model.OperationType type, OperationSubType subType) Creates an identifier with a sub-type. -
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). -
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
operationType
public software.amazon.awssdk.services.lambda.model.OperationType operationType()Returns the value of theoperationTyperecord component.- Returns:
- the value of the
operationTyperecord component
-
subType
Returns the value of thesubTyperecord component.- Returns:
- the value of the
subTyperecord component
-