Class ImmutableProcessInstanceMigrationRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableProcessInstanceMigrationRecordValue.Builder
- Enclosing class:
ImmutableProcessInstanceMigrationRecordValue
Builds instances of type
ImmutableProcessInstanceMigrationRecordValue.
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 TypeMethodDescriptionaddAllMappingInstructionBuilders(ImmutableProcessInstanceMigrationMappingInstructionValue.Builder... elements) Adds elements tomappingInstructionslist.addAllMappingInstructionBuilders(Iterable<ImmutableProcessInstanceMigrationMappingInstructionValue.Builder> elements) Adds elements tomappingInstructionslist.addAllMappingInstructions(Iterable<? extends ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue> elements) Adds elements tomappingInstructionslist.addMappingInstruction(ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue element) Adds one element tomappingInstructionslist.Adds a new builder to themappingInstructionslist and returns the builder.addMappingInstructions(ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue... elements) Adds elements tomappingInstructionslist.build()Builds a newImmutableProcessInstanceMigrationRecordValue.clear()Clear the builder to the initial state.from(ProcessInstanceMigrationRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceMigrationRecordValueinstance.from(ProcessInstanceRelated instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceRelatedinstance.Gets the builder elements tomappingInstructionslist.withMappingInstructions(Iterable<? extends ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue> elements) Sets or replaces all elements formappingInstructionslist.withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.withTargetProcessDefinitionKey(long targetProcessDefinitionKey) Initializes the value for thetargetProcessDefinitionKeyattribute.
-
Method Details
-
from
public final ImmutableProcessInstanceMigrationRecordValue.Builder from(ProcessInstanceMigrationRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceMigrationRecordValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableProcessInstanceMigrationRecordValue.Builder from(ProcessInstanceRelated instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceRelatedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withProcessInstanceKey
public final ImmutableProcessInstanceMigrationRecordValue.Builder withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.- Parameters:
processInstanceKey- The value for processInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withTargetProcessDefinitionKey
public final ImmutableProcessInstanceMigrationRecordValue.Builder withTargetProcessDefinitionKey(long targetProcessDefinitionKey) Initializes the value for thetargetProcessDefinitionKeyattribute.- Parameters:
targetProcessDefinitionKey- The value for targetProcessDefinitionKey- Returns:
thisbuilder for use in a chained invocation
-
addMappingInstruction
public final ImmutableProcessInstanceMigrationRecordValue.Builder addMappingInstruction(ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue element) Adds one element tomappingInstructionslist.- Parameters:
element- A mappingInstructions element- Returns:
thisbuilder for use in a chained invocation
-
addMappingInstructions
public final ImmutableProcessInstanceMigrationRecordValue.Builder addMappingInstructions(ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue... elements) Adds elements tomappingInstructionslist.- Parameters:
elements- An array of mappingInstructions elements- Returns:
thisbuilder for use in a chained invocation
-
addMappingInstructionBuilder
public final ImmutableProcessInstanceMigrationMappingInstructionValue.Builder addMappingInstructionBuilder()Adds a new builder to themappingInstructionslist and returns the builder. -
addAllMappingInstructionBuilders
public final ImmutableProcessInstanceMigrationRecordValue.Builder addAllMappingInstructionBuilders(ImmutableProcessInstanceMigrationMappingInstructionValue.Builder... elements) Adds elements tomappingInstructionslist.- Parameters:
elements- An array of mappingInstructions builder elements- Returns:
thisbuilder for use in a chained invocation
-
mappingInstructionBuilders
public final List<ImmutableProcessInstanceMigrationMappingInstructionValue.Builder> mappingInstructionBuilders()Gets the builder elements tomappingInstructionslist.- Returns:
thisunmodifiable list of modifiable builders.
-
withMappingInstructions
public final ImmutableProcessInstanceMigrationRecordValue.Builder withMappingInstructions(Iterable<? extends ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue> elements) Sets or replaces all elements formappingInstructionslist.- Parameters:
elements- An iterable of mappingInstructions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllMappingInstructions
public final ImmutableProcessInstanceMigrationRecordValue.Builder addAllMappingInstructions(Iterable<? extends ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue> elements) Adds elements tomappingInstructionslist.- Parameters:
elements- An iterable of mappingInstructions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllMappingInstructionBuilders
public final ImmutableProcessInstanceMigrationRecordValue.Builder addAllMappingInstructionBuilders(Iterable<ImmutableProcessInstanceMigrationMappingInstructionValue.Builder> elements) Adds elements tomappingInstructionslist.- Parameters:
elements- An iterable of mappingInstructions builder elements- 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 newImmutableProcessInstanceMigrationRecordValue.- Returns:
- An immutable instance of ProcessInstanceMigrationRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-