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 execution
name - human-readable name for the operation
operationType - 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 Details

    • OperationIdentifier

      public OperationIdentifier(String operationId, String name, software.amazon.awssdk.services.lambda.model.OperationType operationType, OperationSubType subType)
      Creates an instance of a OperationIdentifier record class.
      Parameters:
      operationId - the value for the operationId record component
      name - the value for the name record component
      operationType - the value for the operationType record component
      subType - the value for the subType record 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • operationId

      public String operationId()
      Returns the value of the operationId record component.
      Returns:
      the value of the operationId record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • operationType

      public software.amazon.awssdk.services.lambda.model.OperationType operationType()
      Returns the value of the operationType record component.
      Returns:
      the value of the operationType record component
    • subType

      public OperationSubType subType()
      Returns the value of the subType record component.
      Returns:
      the value of the subType record component