Class ImmutableProcessInstanceModificationTerminateInstructionValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableProcessInstanceModificationTerminateInstructionValue
- All Implemented Interfaces:
ProcessInstanceModificationRecordValue.ProcessInstanceModificationTerminateInstructionValue
public final class ImmutableProcessInstanceModificationTerminateInstructionValue
extends Object
implements ProcessInstanceModificationRecordValue.ProcessInstanceModificationTerminateInstructionValue
Immutable implementation of
ProcessInstanceModificationRecordValue.ProcessInstanceModificationTerminateInstructionValue.
Use the builder to create immutable instances:
ImmutableProcessInstanceModificationTerminateInstructionValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableProcessInstanceModificationTerminateInstructionValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableProcessInstanceModificationTerminateInstructionValue.copyOf(ProcessInstanceModificationRecordValue.ProcessInstanceModificationTerminateInstructionValue instance) Creates an immutable copy of aProcessInstanceModificationRecordValue.ProcessInstanceModificationTerminateInstructionValuevalue.booleanThis instance is equal to all instances ofImmutableProcessInstanceModificationTerminateInstructionValuethat have equal attribute values.longReturns the key of element instance to terminate.inthashCode()Returns a lazily computed hash code from attributes:elementInstanceKey.toString()Prints the immutable valueProcessInstanceModificationTerminateInstructionValuewith attribute values.withElementInstanceKey(long value) Copy the current immutable object by setting a value for theelementInstanceKeyattribute.
-
Method Details
-
getElementInstanceKey
public long getElementInstanceKey()Returns the key of element instance to terminate.- Specified by:
getElementInstanceKeyin interfaceProcessInstanceModificationRecordValue.ProcessInstanceModificationTerminateInstructionValue
-
withElementInstanceKey
public final ImmutableProcessInstanceModificationTerminateInstructionValue withElementInstanceKey(long value) Copy the current immutable object by setting a value for theelementInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for elementInstanceKey- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableProcessInstanceModificationTerminateInstructionValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:elementInstanceKey. -
toString
Prints the immutable valueProcessInstanceModificationTerminateInstructionValuewith attribute values. -
copyOf
public static ImmutableProcessInstanceModificationTerminateInstructionValue copyOf(ProcessInstanceModificationRecordValue.ProcessInstanceModificationTerminateInstructionValue instance) Creates an immutable copy of aProcessInstanceModificationRecordValue.ProcessInstanceModificationTerminateInstructionValuevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ProcessInstanceModificationTerminateInstructionValue instance
-
builder
Creates a builder forImmutableProcessInstanceModificationTerminateInstructionValue.ImmutableProcessInstanceModificationTerminateInstructionValue.builder() .withElementInstanceKey(long) // optionalelementInstanceKey.build();- Returns:
- A new ImmutableProcessInstanceModificationTerminateInstructionValue builder
-