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 TypeMethodDescriptionaddAllCallingElementPath(Iterable<? extends Integer> elements) Adds elements tocallingElementPathlist.addAllElementInstancePath(Iterable<? extends List<Long>> elements) Adds elements toelementInstancePathlist.addAllProcessDefinitionPath(Iterable<? extends Long> elements) Adds elements toprocessDefinitionPathlist.addCallingElementPath(Integer element) Adds one element tocallingElementPathlist.addCallingElementPath(Integer... elements) Adds elements tocallingElementPathlist.addElementInstancePath(List<Long> element) Adds one element toelementInstancePathlist.addElementInstancePath(List<Long>... elements) Adds elements toelementInstancePathlist.addProcessDefinitionPath(Long element) Adds one element toprocessDefinitionPathlist.addProcessDefinitionPath(Long... elements) Adds elements toprocessDefinitionPathlist.build()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.from(TenantOwned instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TenantOwnedinstance.withBpmnProcessId(String bpmnProcessId) Initializes the value for thebpmnProcessIdattribute.withCallingElementPath(Iterable<? extends Integer> elements) Sets or replaces all elements forcallingElementPathlist.withElementId(String elementId) Initializes the value for theelementIdattribute.withElementInstanceKey(long elementInstanceKey) Initializes the value for theelementInstanceKeyattribute.withElementInstancePath(Iterable<? extends List<Long>> elements) Sets or replaces all elements forelementInstancePathlist.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.withProcessDefinitionPath(Iterable<? extends Long> elements) Sets or replaces all elements forprocessDefinitionPathlist.withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.withTenantId(String tenantId) Initializes the value for thetenantIdattribute.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.IncidentRecordValueinstance.- 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.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.TenantOwnedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withTenantId
Initializes the value for thetenantIdattribute.- Parameters:
tenantId- The value for tenantId (can benull)- 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
-
addElementInstancePath
Adds one element toelementInstancePathlist.- Parameters:
element- A elementInstancePath element- Returns:
thisbuilder for use in a chained invocation
-
addElementInstancePath
@SafeVarargs public final ImmutableIncidentRecordValue.Builder addElementInstancePath(List<Long>... elements) Adds elements toelementInstancePathlist.- Parameters:
elements- An array of elementInstancePath elements- Returns:
thisbuilder for use in a chained invocation
-
withElementInstancePath
public final ImmutableIncidentRecordValue.Builder withElementInstancePath(Iterable<? extends List<Long>> elements) Sets or replaces all elements forelementInstancePathlist.- Parameters:
elements- An iterable of elementInstancePath elements- Returns:
thisbuilder for use in a chained invocation
-
addAllElementInstancePath
public final ImmutableIncidentRecordValue.Builder addAllElementInstancePath(Iterable<? extends List<Long>> elements) Adds elements toelementInstancePathlist.- Parameters:
elements- An iterable of elementInstancePath elements- Returns:
thisbuilder for use in a chained invocation
-
addProcessDefinitionPath
Adds one element toprocessDefinitionPathlist.- Parameters:
element- A processDefinitionPath element- Returns:
thisbuilder for use in a chained invocation
-
addProcessDefinitionPath
Adds elements toprocessDefinitionPathlist.- Parameters:
elements- An array of processDefinitionPath elements- Returns:
thisbuilder for use in a chained invocation
-
withProcessDefinitionPath
public final ImmutableIncidentRecordValue.Builder withProcessDefinitionPath(Iterable<? extends Long> elements) Sets or replaces all elements forprocessDefinitionPathlist.- Parameters:
elements- An iterable of processDefinitionPath elements- Returns:
thisbuilder for use in a chained invocation
-
addAllProcessDefinitionPath
public final ImmutableIncidentRecordValue.Builder addAllProcessDefinitionPath(Iterable<? extends Long> elements) Adds elements toprocessDefinitionPathlist.- Parameters:
elements- An iterable of processDefinitionPath elements- Returns:
thisbuilder for use in a chained invocation
-
addCallingElementPath
Adds one element tocallingElementPathlist.- Parameters:
element- A callingElementPath element- Returns:
thisbuilder for use in a chained invocation
-
addCallingElementPath
Adds elements tocallingElementPathlist.- Parameters:
elements- An array of callingElementPath elements- Returns:
thisbuilder for use in a chained invocation
-
withCallingElementPath
public final ImmutableIncidentRecordValue.Builder withCallingElementPath(Iterable<? extends Integer> elements) Sets or replaces all elements forcallingElementPathlist.- Parameters:
elements- An iterable of callingElementPath elements- Returns:
thisbuilder for use in a chained invocation
-
addAllCallingElementPath
public final ImmutableIncidentRecordValue.Builder addAllCallingElementPath(Iterable<? extends Integer> elements) Adds elements tocallingElementPathlist.- Parameters:
elements- An iterable of callingElementPath 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 newImmutableIncidentRecordValue.- Returns:
- An immutable instance of IncidentRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-