Class ImmutableDecisionEvaluationRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableDecisionEvaluationRecordValue.Builder
- Enclosing class:
- ImmutableDecisionEvaluationRecordValue
@NotThreadSafe
public static final class ImmutableDecisionEvaluationRecordValue.Builder
extends Object
Builds instances of type
ImmutableDecisionEvaluationRecordValue.
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 TypeMethodDescriptionAdds elements toevaluatedDecisionslist.Adds elements toevaluatedDecisionslist.addAllEvaluatedDecisions(Iterable<? extends EvaluatedDecisionValue> elements) Adds elements toevaluatedDecisionslist.Adds one element toevaluatedDecisionslist.Adds a new builder to theevaluatedDecisionslist and returns the builder.addEvaluatedDecisions(EvaluatedDecisionValue... elements) Adds elements toevaluatedDecisionslist.build()Builds a newImmutableDecisionEvaluationRecordValue.clear()Clear the builder to the initial state.Gets the builder elements toevaluatedDecisionslist.from(RecordValueWithVariables instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.RecordValueWithVariablesinstance.from(DecisionEvaluationRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.DecisionEvaluationRecordValueinstance.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.withBpmnProcessId(String bpmnProcessId) Initializes the value for thebpmnProcessIdattribute.withDecisionId(String decisionId) Initializes the value for thedecisionIdattribute.withDecisionKey(long decisionKey) Initializes the value for thedecisionKeyattribute.withDecisionName(String decisionName) Initializes the value for thedecisionNameattribute.withDecisionOutput(String decisionOutput) Initializes the value for thedecisionOutputattribute.withDecisionRequirementsId(String decisionRequirementsId) Initializes the value for thedecisionRequirementsIdattribute.withDecisionRequirementsKey(long decisionRequirementsKey) Initializes the value for thedecisionRequirementsKeyattribute.withDecisionVersion(int decisionVersion) Initializes the value for thedecisionVersionattribute.withElementId(String elementId) Initializes the value for theelementIdattribute.withElementInstanceKey(long elementInstanceKey) Initializes the value for theelementInstanceKeyattribute.withEvaluatedDecisions(Iterable<? extends EvaluatedDecisionValue> elements) Sets or replaces all elements forevaluatedDecisionslist.withEvaluationFailureMessage(String evaluationFailureMessage) Initializes the value for theevaluationFailureMessageattribute.withFailedDecisionId(String failedDecisionId) Initializes the value for thefailedDecisionIdattribute.withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.withVariables(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thevariablesmap.
-
Method Details
-
from
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
-
from
public final ImmutableDecisionEvaluationRecordValue.Builder from(DecisionEvaluationRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.DecisionEvaluationRecordValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
putVariable
public final ImmutableDecisionEvaluationRecordValue.Builder putVariable(@Nullable String key, @Nullable 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 ImmutableDecisionEvaluationRecordValue.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 ImmutableDecisionEvaluationRecordValue.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 ImmutableDecisionEvaluationRecordValue.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
-
withDecisionKey
Initializes the value for thedecisionKeyattribute.- Parameters:
decisionKey- The value for decisionKey- Returns:
thisbuilder for use in a chained invocation
-
withDecisionId
Initializes the value for thedecisionIdattribute.- Parameters:
decisionId- The value for decisionId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withDecisionName
Initializes the value for thedecisionNameattribute.- Parameters:
decisionName- The value for decisionName (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withDecisionVersion
public final ImmutableDecisionEvaluationRecordValue.Builder withDecisionVersion(int decisionVersion) Initializes the value for thedecisionVersionattribute.- Parameters:
decisionVersion- The value for decisionVersion- Returns:
thisbuilder for use in a chained invocation
-
withDecisionRequirementsId
public final ImmutableDecisionEvaluationRecordValue.Builder withDecisionRequirementsId(String decisionRequirementsId) Initializes the value for thedecisionRequirementsIdattribute.- Parameters:
decisionRequirementsId- The value for decisionRequirementsId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withDecisionRequirementsKey
public final ImmutableDecisionEvaluationRecordValue.Builder withDecisionRequirementsKey(long decisionRequirementsKey) Initializes the value for thedecisionRequirementsKeyattribute.- Parameters:
decisionRequirementsKey- The value for decisionRequirementsKey- Returns:
thisbuilder for use in a chained invocation
-
withDecisionOutput
public final ImmutableDecisionEvaluationRecordValue.Builder withDecisionOutput(String decisionOutput) Initializes the value for thedecisionOutputattribute.- Parameters:
decisionOutput- The value for decisionOutput (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withBpmnProcessId
Initializes the value for thebpmnProcessIdattribute.- Parameters:
bpmnProcessId- The value for bpmnProcessId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withProcessDefinitionKey
public final ImmutableDecisionEvaluationRecordValue.Builder withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.- Parameters:
processDefinitionKey- The value for processDefinitionKey- Returns:
thisbuilder for use in a chained invocation
-
withProcessInstanceKey
public final ImmutableDecisionEvaluationRecordValue.Builder withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.- Parameters:
processInstanceKey- The value for processInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withElementId
Initializes the value for theelementIdattribute.- Parameters:
elementId- The value for elementId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withElementInstanceKey
public final ImmutableDecisionEvaluationRecordValue.Builder withElementInstanceKey(long elementInstanceKey) Initializes the value for theelementInstanceKeyattribute.- Parameters:
elementInstanceKey- The value for elementInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
addEvaluatedDecision
public final ImmutableDecisionEvaluationRecordValue.Builder addEvaluatedDecision(@Nullable EvaluatedDecisionValue element) Adds one element toevaluatedDecisionslist.- Parameters:
element- A evaluatedDecisions element- Returns:
thisbuilder for use in a chained invocation
-
addEvaluatedDecisions
public final ImmutableDecisionEvaluationRecordValue.Builder addEvaluatedDecisions(EvaluatedDecisionValue... elements) Adds elements toevaluatedDecisionslist.- Parameters:
elements- An array of evaluatedDecisions elements- Returns:
thisbuilder for use in a chained invocation
-
addEvaluatedDecisionBuilder
Adds a new builder to theevaluatedDecisionslist and returns the builder. -
addAllEvaluatedDecisionBuilders
public final ImmutableDecisionEvaluationRecordValue.Builder addAllEvaluatedDecisionBuilders(ImmutableEvaluatedDecisionValue.Builder... elements) Adds elements toevaluatedDecisionslist.- Parameters:
elements- An array of evaluatedDecisions builder elements- Returns:
thisbuilder for use in a chained invocation
-
evaluatedDecisionBuilders
Gets the builder elements toevaluatedDecisionslist.- Returns:
thisunmodifiable list of modifiable builders.
-
withEvaluatedDecisions
public final ImmutableDecisionEvaluationRecordValue.Builder withEvaluatedDecisions(Iterable<? extends EvaluatedDecisionValue> elements) Sets or replaces all elements forevaluatedDecisionslist.- Parameters:
elements- An iterable of evaluatedDecisions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllEvaluatedDecisions
public final ImmutableDecisionEvaluationRecordValue.Builder addAllEvaluatedDecisions(Iterable<? extends EvaluatedDecisionValue> elements) Adds elements toevaluatedDecisionslist.- Parameters:
elements- An iterable of evaluatedDecisions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllEvaluatedDecisionBuilders
public final ImmutableDecisionEvaluationRecordValue.Builder addAllEvaluatedDecisionBuilders(Iterable<ImmutableEvaluatedDecisionValue.Builder> elements) Adds elements toevaluatedDecisionslist.- Parameters:
elements- An iterable of evaluatedDecisions builder elements- Returns:
thisbuilder for use in a chained invocation
-
withEvaluationFailureMessage
public final ImmutableDecisionEvaluationRecordValue.Builder withEvaluationFailureMessage(String evaluationFailureMessage) Initializes the value for theevaluationFailureMessageattribute.- Parameters:
evaluationFailureMessage- The value for evaluationFailureMessage (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withFailedDecisionId
public final ImmutableDecisionEvaluationRecordValue.Builder withFailedDecisionId(String failedDecisionId) Initializes the value for thefailedDecisionIdattribute.- Parameters:
failedDecisionId- The value for failedDecisionId (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 newImmutableDecisionEvaluationRecordValue.- Returns:
- An immutable instance of DecisionEvaluationRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-