Class ImmutableProcessInstanceMigrationMappingInstructionValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableProcessInstanceMigrationMappingInstructionValue.Builder
- Enclosing class:
ImmutableProcessInstanceMigrationMappingInstructionValue
public static final class ImmutableProcessInstanceMigrationMappingInstructionValue.Builder
extends Object
Builds instances of type
ImmutableProcessInstanceMigrationMappingInstructionValue.
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 newImmutableProcessInstanceMigrationMappingInstructionValue.clear()Clear the builder to the initial state.Fill a builder with attribute values from the providedProcessInstanceMigrationMappingInstructionValueinstance.withSourceElementId(String sourceElementId) Initializes the value for thesourceElementIdattribute.withTargetElementId(String targetElementId) Initializes the value for thetargetElementIdattribute.
-
Method Details
-
from
public final ImmutableProcessInstanceMigrationMappingInstructionValue.Builder from(ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue instance) Fill a builder with attribute values from the providedProcessInstanceMigrationMappingInstructionValueinstance. 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
-
withSourceElementId
public final ImmutableProcessInstanceMigrationMappingInstructionValue.Builder withSourceElementId(String sourceElementId) Initializes the value for thesourceElementIdattribute.- Parameters:
sourceElementId- The value for sourceElementId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withTargetElementId
public final ImmutableProcessInstanceMigrationMappingInstructionValue.Builder withTargetElementId(String targetElementId) Initializes the value for thetargetElementIdattribute.- Parameters:
targetElementId- The value for targetElementId (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 newImmutableProcessInstanceMigrationMappingInstructionValue.- Returns:
- An immutable instance of ProcessInstanceMigrationMappingInstructionValue
- Throws:
IllegalStateException- if any required attributes are missing
-