Class ImmutableTimerRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableTimerRecordValue.Builder
- Enclosing class:
ImmutableTimerRecordValue
Builds instances of type
ImmutableTimerRecordValue.
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 newImmutableTimerRecordValue.clear()Clear the builder to the initial state.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.from(TimerRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TimerRecordValueinstance.withDueDate(long dueDate) Initializes the value for thedueDateattribute.withElementInstanceKey(long elementInstanceKey) Initializes the value for theelementInstanceKeyattribute.withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.withRepetitions(int repetitions) Initializes the value for therepetitionsattribute.withTargetElementId(String targetElementId) Initializes the value for thetargetElementIdattribute.withTenantId(String tenantId) Initializes the value for thetenantIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TimerRecordValueinstance.- 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
-
withProcessDefinitionKey
Initializes the value for theprocessDefinitionKeyattribute.- Parameters:
processDefinitionKey- The value for processDefinitionKey- 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
-
withProcessInstanceKey
Initializes the value for theprocessInstanceKeyattribute.- Parameters:
processInstanceKey- The value for processInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withDueDate
Initializes the value for thedueDateattribute.- Parameters:
dueDate- The value for dueDate- Returns:
thisbuilder for use in a chained invocation
-
withTargetElementId
Initializes the value for thetargetElementIdattribute.- Parameters:
targetElementId- The value for targetElementId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withRepetitions
Initializes the value for therepetitionsattribute.- Parameters:
repetitions- The value for repetitions- 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 newImmutableTimerRecordValue.- Returns:
- An immutable instance of TimerRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-