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 operationsubType- the operation sub-type which also determines the operation type
public record OperationIdentifier(String operationId, String name, OperationSubType subType)
extends Record
Identifies a durable operation by its unique ID, human-readable name, type and sub-type.
-
Constructor Summary
ConstructorsConstructorDescriptionOperationIdentifier(String operationId, String name, 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, OperationSubType subType) Creates an identifier with the given sub-type.Returns the value of theoperationIdrecord component.software.amazon.awssdk.services.lambda.model.OperationTypeReturns the operation type derived from the sub-type.subType()Returns the value of thesubTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OperationIdentifier
Creates an instance of aOperationIdentifierrecord class.- Parameters:
operationId- the value for theoperationIdrecord componentname- the value for thenamerecord componentsubType- the value for thesubTyperecord component
-
-
Method Details
-
operationType
public software.amazon.awssdk.services.lambda.model.OperationType operationType()Returns the operation type derived from the sub-type. -
of
Creates an identifier with the given 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
-
subType
Returns the value of thesubTyperecord component.- Returns:
- the value of the
subTyperecord component
-