Class ImmutableEvaluatedDecisionValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableEvaluatedDecisionValue.Builder
- Enclosing class:
- ImmutableEvaluatedDecisionValue
Builds instances of type
ImmutableEvaluatedDecisionValue.
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 toevaluatedInputslist.Adds elements toevaluatedInputslist.addAllEvaluatedInputs(Iterable<? extends EvaluatedInputValue> elements) Adds elements toevaluatedInputslist.Adds elements tomatchedRuleslist.Adds elements tomatchedRuleslist.addAllMatchedRules(Iterable<? extends MatchedRuleValue> elements) Adds elements tomatchedRuleslist.addEvaluatedInput(EvaluatedInputValue element) Adds one element toevaluatedInputslist.Adds a new builder to theevaluatedInputslist and returns the builder.addEvaluatedInputs(EvaluatedInputValue... elements) Adds elements toevaluatedInputslist.addMatchedRule(MatchedRuleValue element) Adds one element tomatchedRuleslist.Adds a new builder to thematchedRuleslist and returns the builder.addMatchedRules(MatchedRuleValue... elements) Adds elements tomatchedRuleslist.build()Builds a newImmutableEvaluatedDecisionValue.clear()Clear the builder to the initial state.Gets the builder elements toevaluatedInputslist.from(EvaluatedDecisionValue instance) Fill a builder with attribute values from the providedEvaluatedDecisionValueinstance.Gets the builder elements tomatchedRuleslist.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.withDecisionType(String decisionType) Initializes the value for thedecisionTypeattribute.withDecisionVersion(int decisionVersion) Initializes the value for thedecisionVersionattribute.withEvaluatedInputs(Iterable<? extends EvaluatedInputValue> elements) Sets or replaces all elements forevaluatedInputslist.withMatchedRules(Iterable<? extends MatchedRuleValue> elements) Sets or replaces all elements formatchedRuleslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedEvaluatedDecisionValueinstance. 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
-
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
-
withDecisionKey
Initializes the value for thedecisionKeyattribute.- Parameters:
decisionKey- The value for decisionKey- Returns:
thisbuilder for use in a chained invocation
-
withDecisionVersion
Initializes the value for thedecisionVersionattribute.- Parameters:
decisionVersion- The value for decisionVersion- Returns:
thisbuilder for use in a chained invocation
-
withDecisionType
Initializes the value for thedecisionTypeattribute.- Parameters:
decisionType- The value for decisionType (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withDecisionOutput
Initializes the value for thedecisionOutputattribute.- Parameters:
decisionOutput- The value for decisionOutput (can benull)- Returns:
thisbuilder for use in a chained invocation
-
addEvaluatedInput
public final ImmutableEvaluatedDecisionValue.Builder addEvaluatedInput(@Nullable EvaluatedInputValue element) Adds one element toevaluatedInputslist.- Parameters:
element- A evaluatedInputs element- Returns:
thisbuilder for use in a chained invocation
-
addEvaluatedInputs
public final ImmutableEvaluatedDecisionValue.Builder addEvaluatedInputs(EvaluatedInputValue... elements) Adds elements toevaluatedInputslist.- Parameters:
elements- An array of evaluatedInputs elements- Returns:
thisbuilder for use in a chained invocation
-
addEvaluatedInputBuilder
Adds a new builder to theevaluatedInputslist and returns the builder. -
addAllEvaluatedInputBuilders
public final ImmutableEvaluatedDecisionValue.Builder addAllEvaluatedInputBuilders(ImmutableEvaluatedInputValue.Builder... elements) Adds elements toevaluatedInputslist.- Parameters:
elements- An array of evaluatedInputs builder elements- Returns:
thisbuilder for use in a chained invocation
-
evaluatedInputBuilders
Gets the builder elements toevaluatedInputslist.- Returns:
thisunmodifiable list of modifiable builders.
-
withEvaluatedInputs
public final ImmutableEvaluatedDecisionValue.Builder withEvaluatedInputs(Iterable<? extends EvaluatedInputValue> elements) Sets or replaces all elements forevaluatedInputslist.- Parameters:
elements- An iterable of evaluatedInputs elements- Returns:
thisbuilder for use in a chained invocation
-
addAllEvaluatedInputs
public final ImmutableEvaluatedDecisionValue.Builder addAllEvaluatedInputs(Iterable<? extends EvaluatedInputValue> elements) Adds elements toevaluatedInputslist.- Parameters:
elements- An iterable of evaluatedInputs elements- Returns:
thisbuilder for use in a chained invocation
-
addAllEvaluatedInputBuilders
public final ImmutableEvaluatedDecisionValue.Builder addAllEvaluatedInputBuilders(Iterable<ImmutableEvaluatedInputValue.Builder> elements) Adds elements toevaluatedInputslist.- Parameters:
elements- An iterable of evaluatedInputs builder elements- Returns:
thisbuilder for use in a chained invocation
-
addMatchedRule
public final ImmutableEvaluatedDecisionValue.Builder addMatchedRule(@Nullable MatchedRuleValue element) Adds one element tomatchedRuleslist.- Parameters:
element- A matchedRules element- Returns:
thisbuilder for use in a chained invocation
-
addMatchedRules
Adds elements tomatchedRuleslist.- Parameters:
elements- An array of matchedRules elements- Returns:
thisbuilder for use in a chained invocation
-
addMatchedRuleBuilder
Adds a new builder to thematchedRuleslist and returns the builder. -
addAllMatchedRuleBuilders
public final ImmutableEvaluatedDecisionValue.Builder addAllMatchedRuleBuilders(ImmutableMatchedRuleValue.Builder... elements) Adds elements tomatchedRuleslist.- Parameters:
elements- An array of matchedRules builder elements- Returns:
thisbuilder for use in a chained invocation
-
matchedRuleBuilders
Gets the builder elements tomatchedRuleslist.- Returns:
thisunmodifiable list of modifiable builders.
-
withMatchedRules
public final ImmutableEvaluatedDecisionValue.Builder withMatchedRules(Iterable<? extends MatchedRuleValue> elements) Sets or replaces all elements formatchedRuleslist.- Parameters:
elements- An iterable of matchedRules elements- Returns:
thisbuilder for use in a chained invocation
-
addAllMatchedRules
public final ImmutableEvaluatedDecisionValue.Builder addAllMatchedRules(Iterable<? extends MatchedRuleValue> elements) Adds elements tomatchedRuleslist.- Parameters:
elements- An iterable of matchedRules elements- Returns:
thisbuilder for use in a chained invocation
-
addAllMatchedRuleBuilders
public final ImmutableEvaluatedDecisionValue.Builder addAllMatchedRuleBuilders(Iterable<ImmutableMatchedRuleValue.Builder> elements) Adds elements tomatchedRuleslist.- Parameters:
elements- An iterable of matchedRules 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 newImmutableEvaluatedDecisionValue.- Returns:
- An immutable instance of EvaluatedDecisionValue
- Throws:
IllegalStateException- if any required attributes are missing
-