Class ImmutableTimerRecordValue.Builder

java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableTimerRecordValue.Builder
Enclosing class:
ImmutableTimerRecordValue

public static final class ImmutableTimerRecordValue.Builder extends Object
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 Details

    • from

      Fill a builder with attribute values from the provided io.camunda.zeebe.protocol.record.value.TimerRecordValue instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      Fill a builder with attribute values from the provided io.camunda.zeebe.protocol.record.value.ProcessInstanceRelated instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableTimerRecordValue.Builder from(TenantOwned instance)
      Fill a builder with attribute values from the provided io.camunda.zeebe.protocol.record.value.TenantOwned instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • withTenantId

      public final ImmutableTimerRecordValue.Builder withTenantId(String tenantId)
      Initializes the value for the tenantId attribute.
      Parameters:
      tenantId - The value for tenantId (can be null)
      Returns:
      this builder for use in a chained invocation
    • withProcessDefinitionKey

      public final ImmutableTimerRecordValue.Builder withProcessDefinitionKey(long processDefinitionKey)
      Initializes the value for the processDefinitionKey attribute.
      Parameters:
      processDefinitionKey - The value for processDefinitionKey
      Returns:
      this builder for use in a chained invocation
    • withElementInstanceKey

      public final ImmutableTimerRecordValue.Builder withElementInstanceKey(long elementInstanceKey)
      Initializes the value for the elementInstanceKey attribute.
      Parameters:
      elementInstanceKey - The value for elementInstanceKey
      Returns:
      this builder for use in a chained invocation
    • withProcessInstanceKey

      public final ImmutableTimerRecordValue.Builder withProcessInstanceKey(long processInstanceKey)
      Initializes the value for the processInstanceKey attribute.
      Parameters:
      processInstanceKey - The value for processInstanceKey
      Returns:
      this builder for use in a chained invocation
    • withDueDate

      public final ImmutableTimerRecordValue.Builder withDueDate(long dueDate)
      Initializes the value for the dueDate attribute.
      Parameters:
      dueDate - The value for dueDate
      Returns:
      this builder for use in a chained invocation
    • withTargetElementId

      public final ImmutableTimerRecordValue.Builder withTargetElementId(String targetElementId)
      Initializes the value for the targetElementId attribute.
      Parameters:
      targetElementId - The value for targetElementId (can be null)
      Returns:
      this builder for use in a chained invocation
    • withRepetitions

      public final ImmutableTimerRecordValue.Builder withRepetitions(int repetitions)
      Initializes the value for the repetitions attribute.
      Parameters:
      repetitions - The value for repetitions
      Returns:
      this builder for use in a chained invocation
    • clear

      Clear the builder to the initial state.
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableTimerRecordValue build()
      Returns:
      An immutable instance of TimerRecordValue
      Throws:
      IllegalStateException - if any required attributes are missing