Class ImmutableEscalationRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableEscalationRecordValue.Builder
- Enclosing class:
- ImmutableEscalationRecordValue
Builds instances of type
ImmutableEscalationRecordValue.
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 TypeMethodDescriptionbuild()Builds a newImmutableEscalationRecordValue.clear()Clear the builder to the initial state.from(EscalationRecordValue instance) Fill a builder with attribute values from the providedEscalationRecordValueinstance.withCatchElementId(String catchElementId) Initializes the value for thecatchElementIdattribute.withEscalationCode(String escalationCode) Initializes the value for theescalationCodeattribute.withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.withThrowElementId(String throwElementId) Initializes the value for thethrowElementIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedEscalationRecordValueinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withProcessInstanceKey
Initializes the value for theprocessInstanceKeyattribute.- Parameters:
processInstanceKey- The value for processInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withEscalationCode
Initializes the value for theescalationCodeattribute.- Parameters:
escalationCode- The value for escalationCode (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withThrowElementId
Initializes the value for thethrowElementIdattribute.- Parameters:
throwElementId- The value for throwElementId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withCatchElementId
Initializes the value for thecatchElementIdattribute.- Parameters:
catchElementId- The value for catchElementId (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 newImmutableEscalationRecordValue.- Returns:
- An immutable instance of EscalationRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-