Class ImmutableIncidentRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableIncidentRecordValue.Builder
- Enclosing class:
- ImmutableIncidentRecordValue
Builds instances of type
ImmutableIncidentRecordValue.
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 newImmutableIncidentRecordValue.clear()Clear the builder to the initial state.from(IncidentRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.IncidentRecordValueinstance.from(ProcessInstanceRelated instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceRelatedinstance.withBpmnProcessId(String bpmnProcessId) Initializes the value for thebpmnProcessIdattribute.withElementId(String elementId) Initializes the value for theelementIdattribute.withElementInstanceKey(long elementInstanceKey) Initializes the value for theelementInstanceKeyattribute.withErrorMessage(String errorMessage) Initializes the value for theerrorMessageattribute.withErrorType(ErrorType errorType) Initializes the value for theerrorTypeattribute.withJobKey(long jobKey) Initializes the value for thejobKeyattribute.withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.withVariableScopeKey(long variableScopeKey) Initializes the value for thevariableScopeKeyattribute.
-
Method Details
-
from
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.IncidentRecordValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withErrorType
Initializes the value for theerrorTypeattribute.- Parameters:
errorType- The value for errorType (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withErrorMessage
Initializes the value for theerrorMessageattribute.- Parameters:
errorMessage- The value for errorMessage (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 ImmutableIncidentRecordValue.Builder withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.- Parameters:
processDefinitionKey- The value for processDefinitionKey- 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
-
withElementId
Initializes the value for theelementIdattribute.- Parameters:
elementId- The value for elementId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withElementInstanceKey
Initializes the value for theelementInstanceKeyattribute.- Parameters:
elementInstanceKey- The value for elementInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withJobKey
Initializes the value for thejobKeyattribute.- Parameters:
jobKey- The value for jobKey- Returns:
thisbuilder for use in a chained invocation
-
withVariableScopeKey
Initializes the value for thevariableScopeKeyattribute.- Parameters:
variableScopeKey- The value for variableScopeKey- 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 newImmutableIncidentRecordValue.- Returns:
- An immutable instance of IncidentRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-