Class ImmutableProcessInstanceCreationStartInstructionValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableProcessInstanceCreationStartInstructionValue
- All Implemented Interfaces:
ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue
public final class ImmutableProcessInstanceCreationStartInstructionValue
extends Object
implements ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue
Immutable implementation of
ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue.
Use the builder to create immutable instances:
ImmutableProcessInstanceCreationStartInstructionValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableProcessInstanceCreationStartInstructionValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableProcessInstanceCreationStartInstructionValue.Creates an immutable copy of aProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValuevalue.booleanThis instance is equal to all instances ofImmutableProcessInstanceCreationStartInstructionValuethat have equal attribute values.inthashCode()Returns a lazily computed hash code from attributes:elementId.toString()Prints the immutable valueProcessInstanceCreationStartInstructionValuewith attribute values.withElementId(String value) Copy the current immutable object by setting a value for theelementIdattribute.
-
Method Details
-
getElementId
- Specified by:
getElementIdin interfaceProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue- Returns:
- The value of the
elementIdattribute
-
withElementId
Copy the current immutable object by setting a value for theelementIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for elementId (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableProcessInstanceCreationStartInstructionValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:elementId. -
toString
Prints the immutable valueProcessInstanceCreationStartInstructionValuewith attribute values. -
copyOf
public static ImmutableProcessInstanceCreationStartInstructionValue copyOf(ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue instance) Creates an immutable copy of aProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValuevalue. 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 ProcessInstanceCreationStartInstructionValue instance
-
builder
Creates a builder forImmutableProcessInstanceCreationStartInstructionValue.ImmutableProcessInstanceCreationStartInstructionValue.builder() .withElementId(String | null) // nullableelementId.build();- Returns:
- A new ImmutableProcessInstanceCreationStartInstructionValue builder
-