Class ImmutableProcessInstanceCreationRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableProcessInstanceCreationRecordValue.Builder
- Enclosing class:
ImmutableProcessInstanceCreationRecordValue
Builds instances of type
ImmutableProcessInstanceCreationRecordValue.
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 TypeMethodDescriptionaddAllStartInstructionBuilders(ImmutableProcessInstanceCreationStartInstructionValue.Builder... elements) Adds elements tostartInstructionslist.addAllStartInstructionBuilders(Iterable<ImmutableProcessInstanceCreationStartInstructionValue.Builder> elements) Adds elements tostartInstructionslist.addAllStartInstructions(Iterable<? extends ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue> elements) Adds elements tostartInstructionslist.addStartInstruction(ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue element) Adds one element tostartInstructionslist.Adds a new builder to thestartInstructionslist and returns the builder.addStartInstructions(ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue... elements) Adds elements tostartInstructionslist.build()Builds a newImmutableProcessInstanceCreationRecordValue.clear()Clear the builder to the initial state.from(RecordValueWithVariables instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.RecordValueWithVariablesinstance.from(ProcessInstanceCreationRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceCreationRecordValueinstance.from(ProcessInstanceRelated instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceRelatedinstance.from(TenantOwned instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TenantOwnedinstance.putAllVariables(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tovariablesmap.putVariable(String key, Object value) Put one entry to thevariablesmap.putVariable(Map.Entry<String, ? extends Object> entry) Put one entry to thevariablesmap.Gets the builder elements tostartInstructionslist.withBpmnProcessId(String bpmnProcessId) Initializes the value for thebpmnProcessIdattribute.withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.withStartInstructions(Iterable<? extends ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue> elements) Sets or replaces all elements forstartInstructionslist.withTenantId(String tenantId) Initializes the value for thetenantIdattribute.withVariables(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thevariablesmap.withVersion(int version) Initializes the value for theversionattribute.
-
Method Details
-
from
public final ImmutableProcessInstanceCreationRecordValue.Builder from(ProcessInstanceCreationRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceCreationRecordValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableProcessInstanceCreationRecordValue.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
-
from
Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TenantOwnedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableProcessInstanceCreationRecordValue.Builder from(RecordValueWithVariables instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.RecordValueWithVariablesinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
putVariable
public final ImmutableProcessInstanceCreationRecordValue.Builder putVariable(String key, Object value) Put one entry to thevariablesmap.- Parameters:
key- The key in the variables mapvalue- The associated value in the variables map- Returns:
thisbuilder for use in a chained invocation
-
putVariable
public final ImmutableProcessInstanceCreationRecordValue.Builder putVariable(Map.Entry<String, ? extends Object> entry) Put one entry to thevariablesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
withVariables
public final ImmutableProcessInstanceCreationRecordValue.Builder withVariables(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thevariablesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the variables map- Returns:
thisbuilder for use in a chained invocation
-
putAllVariables
public final ImmutableProcessInstanceCreationRecordValue.Builder putAllVariables(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tovariablesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the variables map- Returns:
thisbuilder for use in a chained invocation
-
withProcessInstanceKey
public final ImmutableProcessInstanceCreationRecordValue.Builder withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.- Parameters:
processInstanceKey- The value for processInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withTenantId
Initializes the value for thetenantIdattribute.- Parameters:
tenantId- The value for tenantId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withBpmnProcessId
public final ImmutableProcessInstanceCreationRecordValue.Builder withBpmnProcessId(String bpmnProcessId) Initializes the value for thebpmnProcessIdattribute.- Parameters:
bpmnProcessId- The value for bpmnProcessId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withVersion
Initializes the value for theversionattribute.- Parameters:
version- The value for version- Returns:
thisbuilder for use in a chained invocation
-
withProcessDefinitionKey
public final ImmutableProcessInstanceCreationRecordValue.Builder withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.- Parameters:
processDefinitionKey- The value for processDefinitionKey- Returns:
thisbuilder for use in a chained invocation
-
addStartInstruction
public final ImmutableProcessInstanceCreationRecordValue.Builder addStartInstruction(ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue element) Adds one element tostartInstructionslist.- Parameters:
element- A startInstructions element- Returns:
thisbuilder for use in a chained invocation
-
addStartInstructions
public final ImmutableProcessInstanceCreationRecordValue.Builder addStartInstructions(ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue... elements) Adds elements tostartInstructionslist.- Parameters:
elements- An array of startInstructions elements- Returns:
thisbuilder for use in a chained invocation
-
addStartInstructionBuilder
public final ImmutableProcessInstanceCreationStartInstructionValue.Builder addStartInstructionBuilder()Adds a new builder to thestartInstructionslist and returns the builder. -
addAllStartInstructionBuilders
public final ImmutableProcessInstanceCreationRecordValue.Builder addAllStartInstructionBuilders(ImmutableProcessInstanceCreationStartInstructionValue.Builder... elements) Adds elements tostartInstructionslist.- Parameters:
elements- An array of startInstructions builder elements- Returns:
thisbuilder for use in a chained invocation
-
startInstructionBuilders
public final List<ImmutableProcessInstanceCreationStartInstructionValue.Builder> startInstructionBuilders()Gets the builder elements tostartInstructionslist.- Returns:
thisunmodifiable list of modifiable builders.
-
withStartInstructions
public final ImmutableProcessInstanceCreationRecordValue.Builder withStartInstructions(Iterable<? extends ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue> elements) Sets or replaces all elements forstartInstructionslist.- Parameters:
elements- An iterable of startInstructions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllStartInstructions
public final ImmutableProcessInstanceCreationRecordValue.Builder addAllStartInstructions(Iterable<? extends ProcessInstanceCreationRecordValue.ProcessInstanceCreationStartInstructionValue> elements) Adds elements tostartInstructionslist.- Parameters:
elements- An iterable of startInstructions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllStartInstructionBuilders
public final ImmutableProcessInstanceCreationRecordValue.Builder addAllStartInstructionBuilders(Iterable<ImmutableProcessInstanceCreationStartInstructionValue.Builder> elements) Adds elements tostartInstructionslist.- Parameters:
elements- An iterable of startInstructions 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 newImmutableProcessInstanceCreationRecordValue.- Returns:
- An immutable instance of ProcessInstanceCreationRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-