Record Class PayloadStepDefinition
java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.dsl.api.PayloadStepDefinition
- Record Components:
primitiveMetadata- metadata of the primitivemodification- payload modification
public record PayloadStepDefinition(PrimitiveMetadata primitiveMetadata, PayloadModification modification)
extends Record
Specification for modifying of payload within a workflow.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Constructor Summary
ConstructorsConstructorDescriptionPayloadStepDefinition(PrimitiveMetadata primitiveMetadata, PayloadModification modification) Creates an instance of aPayloadStepDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.eventNameCustomizer(EventNameCustomizer eventNameCustomizer) Returns a copy of this definition with the provided event name customizer.final inthashCode()Returns a hash code value for this object.Returns the value of themodificationrecord component.modification(PayloadModification modification) Returns a copy of this definition with the provided payload modification.Returns the value of theprimitiveMetadatarecord component.primitiveMetadata(PrimitiveMetadata primitiveMetadata) Returns a copy of this definition with the provided primitive metadata.Returns a copy of this definition with the provided step name.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PayloadStepDefinition
Creates an instance of aPayloadStepDefinitionrecord class.- Parameters:
primitiveMetadata- the value for theprimitiveMetadatarecord componentmodification- the value for themodificationrecord component
-
-
Method Details
-
primitiveMetadata
Returns a copy of this definition with the provided primitive metadata.- Parameters:
primitiveMetadata- metadata of the primitive- Returns:
- copied step definition with updated metadata
-
stepName
Returns a copy of this definition with the provided step name.- Parameters:
stepName- logical step name- Returns:
- copied step definition with updated step name
-
eventNameCustomizer
Returns a copy of this definition with the provided event name customizer.- Parameters:
eventNameCustomizer- customizer for published event names- Returns:
- copied step definition with updated event naming
-
modification
Returns a copy of this definition with the provided payload modification.- Parameters:
modification- payload modification- Returns:
- copied step definition with updated payload modification
-
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). -
primitiveMetadata
Returns the value of theprimitiveMetadatarecord component.- Returns:
- the value of the
primitiveMetadatarecord component
-
modification
Returns the value of themodificationrecord component.- Returns:
- the value of the
modificationrecord component
-