Class ImmutableProcessInstanceCreationStartInstructionValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableProcessInstanceCreationStartInstructionValue.Builder
- Enclosing class:
- ImmutableProcessInstanceCreationStartInstructionValue
@NotThreadSafe
public static final class ImmutableProcessInstanceCreationStartInstructionValue.Builder
extends Object
Builds instances of type
ImmutableProcessInstanceCreationStartInstructionValue.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableProcessInstanceCreationStartInstructionValue.clear()Clear the builder to the initial state.Fill a builder with attribute values from the providedProcessInstanceCreationStartInstructionValueinstance.withElementId(String elementId) Initializes the value for theelementIdattribute.
-
Method Details
-
from
public final ImmutableProcessInstanceCreationStartInstructionValue.Builder from(ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue instance) Fill a builder with attribute values from the providedProcessInstanceCreationStartInstructionValueinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withElementId
public final ImmutableProcessInstanceCreationStartInstructionValue.Builder withElementId(String elementId) Initializes the value for theelementIdattribute.- Parameters:
elementId- The value for elementId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
clear
Clear the builder to the initial state.- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableProcessInstanceCreationStartInstructionValue.- Returns:
- An immutable instance of ProcessInstanceCreationStartInstructionValue
- Throws:
IllegalStateException- if any required attributes are missing
-