Class ImmutableProcessInstanceModificationActivateInstructionValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableProcessInstanceModificationActivateInstructionValue.Builder
- Enclosing class:
- ImmutableProcessInstanceModificationActivateInstructionValue
@NotThreadSafe
public static final class ImmutableProcessInstanceModificationActivateInstructionValue.Builder
extends Object
Builds instances of type
ImmutableProcessInstanceModificationActivateInstructionValue.
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 TypeMethodDescriptionaddAllAncestorScopeKeys(Iterable<? extends Long> elements) Adds elements toancestorScopeKeysset.addAllVariableInstructionBuilders(ImmutableProcessInstanceModificationVariableInstructionValue.Builder... elements) Adds elements tovariableInstructionslist.addAllVariableInstructionBuilders(Iterable<ImmutableProcessInstanceModificationVariableInstructionValue.Builder> elements) Adds elements tovariableInstructionslist.addAllVariableInstructions(Iterable<? extends ProcessInstanceModificationRecordValue.ProcessInstanceModificationVariableInstructionValue> elements) Adds elements tovariableInstructionslist.addAncestorScopeKey(Long element) Adds one element toancestorScopeKeysset.addAncestorScopeKeys(Long... elements) Adds elements toancestorScopeKeysset.addVariableInstruction(ProcessInstanceModificationRecordValue.ProcessInstanceModificationVariableInstructionValue element) Adds one element tovariableInstructionslist.Adds a new builder to thevariableInstructionslist and returns the builder.addVariableInstructions(ProcessInstanceModificationRecordValue.ProcessInstanceModificationVariableInstructionValue... elements) Adds elements tovariableInstructionslist.build()clear()Clear the builder to the initial state.from(ProcessInstanceModificationRecordValue.ProcessInstanceModificationActivateInstructionValue instance) Fill a builder with attribute values from the providedProcessInstanceModificationActivateInstructionValueinstance.Gets the builder elements tovariableInstructionslist.withAncestorScopeKey(long ancestorScopeKey) Initializes the value for theancestorScopeKeyattribute.withAncestorScopeKeys(Iterable<? extends Long> elements) Sets or replaces all elements forancestorScopeKeysset.withElementId(String elementId) Initializes the value for theelementIdattribute.withVariableInstructions(Iterable<? extends ProcessInstanceModificationRecordValue.ProcessInstanceModificationVariableInstructionValue> elements) Sets or replaces all elements forvariableInstructionslist.
-
Method Details
-
from
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder from(ProcessInstanceModificationRecordValue.ProcessInstanceModificationActivateInstructionValue instance) Fill a builder with attribute values from the providedProcessInstanceModificationActivateInstructionValueinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withElementId
public final ImmutableProcessInstanceModificationActivateInstructionValue.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
-
withAncestorScopeKey
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder withAncestorScopeKey(long ancestorScopeKey) Initializes the value for theancestorScopeKeyattribute.- Parameters:
ancestorScopeKey- The value for ancestorScopeKey- Returns:
thisbuilder for use in a chained invocation
-
addVariableInstruction
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder addVariableInstruction(@Nullable ProcessInstanceModificationRecordValue.ProcessInstanceModificationVariableInstructionValue element) Adds one element tovariableInstructionslist.- Parameters:
element- A variableInstructions element- Returns:
thisbuilder for use in a chained invocation
-
addVariableInstructions
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder addVariableInstructions(ProcessInstanceModificationRecordValue.ProcessInstanceModificationVariableInstructionValue... elements) Adds elements tovariableInstructionslist.- Parameters:
elements- An array of variableInstructions elements- Returns:
thisbuilder for use in a chained invocation
-
addVariableInstructionBuilder
public final ImmutableProcessInstanceModificationVariableInstructionValue.Builder addVariableInstructionBuilder()Adds a new builder to thevariableInstructionslist and returns the builder. -
addAllVariableInstructionBuilders
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder addAllVariableInstructionBuilders(ImmutableProcessInstanceModificationVariableInstructionValue.Builder... elements) Adds elements tovariableInstructionslist.- Parameters:
elements- An array of variableInstructions builder elements- Returns:
thisbuilder for use in a chained invocation
-
variableInstructionBuilders
public final List<ImmutableProcessInstanceModificationVariableInstructionValue.Builder> variableInstructionBuilders()Gets the builder elements tovariableInstructionslist.- Returns:
thisunmodifiable list of modifiable builders.
-
withVariableInstructions
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder withVariableInstructions(Iterable<? extends ProcessInstanceModificationRecordValue.ProcessInstanceModificationVariableInstructionValue> elements) Sets or replaces all elements forvariableInstructionslist.- Parameters:
elements- An iterable of variableInstructions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllVariableInstructions
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder addAllVariableInstructions(Iterable<? extends ProcessInstanceModificationRecordValue.ProcessInstanceModificationVariableInstructionValue> elements) Adds elements tovariableInstructionslist.- Parameters:
elements- An iterable of variableInstructions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllVariableInstructionBuilders
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder addAllVariableInstructionBuilders(Iterable<ImmutableProcessInstanceModificationVariableInstructionValue.Builder> elements) Adds elements tovariableInstructionslist.- Parameters:
elements- An iterable of variableInstructions builder elements- Returns:
thisbuilder for use in a chained invocation
-
addAncestorScopeKey
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder addAncestorScopeKey(@Nullable Long element) Adds one element toancestorScopeKeysset.- Parameters:
element- A ancestorScopeKeys element- Returns:
thisbuilder for use in a chained invocation
-
addAncestorScopeKeys
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder addAncestorScopeKeys(Long... elements) Adds elements toancestorScopeKeysset.- Parameters:
elements- An array of ancestorScopeKeys elements- Returns:
thisbuilder for use in a chained invocation
-
withAncestorScopeKeys
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder withAncestorScopeKeys(Iterable<? extends Long> elements) Sets or replaces all elements forancestorScopeKeysset.- Parameters:
elements- An iterable of ancestorScopeKeys elements- Returns:
thisbuilder for use in a chained invocation
-
addAllAncestorScopeKeys
public final ImmutableProcessInstanceModificationActivateInstructionValue.Builder addAllAncestorScopeKeys(Iterable<? extends Long> elements) Adds elements toancestorScopeKeysset.- Parameters:
elements- An iterable of ancestorScopeKeys 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
- Returns:
- An immutable instance of ProcessInstanceModificationActivateInstructionValue
- Throws:
IllegalStateException- if any required attributes are missing
-