Class ImmutableEscalationRecordValue

java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableEscalationRecordValue
All Implemented Interfaces:
JsonSerializable, RecordValue, EscalationRecordValue, TenantOwned

public final class ImmutableEscalationRecordValue extends Object implements EscalationRecordValue
Immutable implementation of EscalationRecordValue.

Use the builder to create immutable instances: ImmutableEscalationRecordValue.builder().

  • Method Details

    • getTenantId

      public String getTenantId()
      Returns the identifier of the tenant that owns this entity.
      Specified by:
      getTenantId in interface TenantOwned
    • getProcessInstanceKey

      public long getProcessInstanceKey()
      Specified by:
      getProcessInstanceKey in interface EscalationRecordValue
      Returns:
      the key of the process instance
    • getEscalationCode

      public String getEscalationCode()
      Specified by:
      getEscalationCode in interface EscalationRecordValue
      Returns:
      the code of the escalation
    • getThrowElementId

      public String getThrowElementId()
      Specified by:
      getThrowElementId in interface EscalationRecordValue
      Returns:
      the id of the escalation throw event
    • getCatchElementId

      public String getCatchElementId()
      Specified by:
      getCatchElementId in interface EscalationRecordValue
      Returns:
      the id of the escalation catch event
    • withTenantId

      public final ImmutableEscalationRecordValue withTenantId(String value)
      Copy the current immutable object by setting a value for the tenantId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for tenantId (can be null)
      Returns:
      A modified copy of the this object
    • withProcessInstanceKey

      public final ImmutableEscalationRecordValue withProcessInstanceKey(long value)
      Copy the current immutable object by setting a value for the processInstanceKey attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for processInstanceKey
      Returns:
      A modified copy of the this object
    • withEscalationCode

      public final ImmutableEscalationRecordValue withEscalationCode(String value)
      Copy the current immutable object by setting a value for the escalationCode attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for escalationCode (can be null)
      Returns:
      A modified copy of the this object
    • withThrowElementId

      public final ImmutableEscalationRecordValue withThrowElementId(String value)
      Copy the current immutable object by setting a value for the throwElementId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for throwElementId (can be null)
      Returns:
      A modified copy of the this object
    • withCatchElementId

      public final ImmutableEscalationRecordValue withCatchElementId(String value)
      Copy the current immutable object by setting a value for the catchElementId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for catchElementId (can be null)
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableEscalationRecordValue that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Returns a lazily computed hash code from attributes: tenantId, processInstanceKey, escalationCode, throwElementId, catchElementId.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value EscalationRecordValue with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableEscalationRecordValue copyOf(EscalationRecordValue instance)
      Creates an immutable copy of a EscalationRecordValue value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable EscalationRecordValue instance
    • builder

      public static ImmutableEscalationRecordValue.Builder builder()
      Creates a builder for ImmutableEscalationRecordValue.
       ImmutableEscalationRecordValue.builder()
          .withTenantId(String | null) // nullable tenantId
          .withProcessInstanceKey(long) // optional processInstanceKey
          .withEscalationCode(String | null) // nullable escalationCode
          .withThrowElementId(String | null) // nullable throwElementId
          .withCatchElementId(String | null) // nullable catchElementId
          .build();
       
      Returns:
      A new ImmutableEscalationRecordValue builder