Class ImmutableEscalationRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableEscalationRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,EscalationRecordValue,TenantOwned
Immutable implementation of
EscalationRecordValue.
Use the builder to create immutable instances:
ImmutableEscalationRecordValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableEscalationRecordValue. -
Field Summary
Fields inherited from interface io.camunda.zeebe.protocol.record.value.TenantOwned
DEFAULT_TENANT_IDENTIFIER -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableEscalationRecordValue.copyOf(EscalationRecordValue instance) Creates an immutable copy of aEscalationRecordValuevalue.booleanThis instance is equal to all instances ofImmutableEscalationRecordValuethat have equal attribute values.longReturns the identifier of the tenant that owns this entity.inthashCode()Returns a lazily computed hash code from attributes:tenantId,processInstanceKey,escalationCode,throwElementId,catchElementId.toString()Prints the immutable valueEscalationRecordValuewith attribute values.withCatchElementId(String value) Copy the current immutable object by setting a value for thecatchElementIdattribute.withEscalationCode(String value) Copy the current immutable object by setting a value for theescalationCodeattribute.withProcessInstanceKey(long value) Copy the current immutable object by setting a value for theprocessInstanceKeyattribute.withTenantId(String value) Copy the current immutable object by setting a value for thetenantIdattribute.withThrowElementId(String value) Copy the current immutable object by setting a value for thethrowElementIdattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.protocol.record.JsonSerializable
toJson
-
Method Details
-
getTenantId
Returns the identifier of the tenant that owns this entity.- Specified by:
getTenantIdin interfaceTenantOwned
-
getProcessInstanceKey
public long getProcessInstanceKey()- Specified by:
getProcessInstanceKeyin interfaceEscalationRecordValue- Returns:
- the key of the process instance
-
getEscalationCode
- Specified by:
getEscalationCodein interfaceEscalationRecordValue- Returns:
- the code of the escalation
-
getThrowElementId
- Specified by:
getThrowElementIdin interfaceEscalationRecordValue- Returns:
- the id of the escalation throw event
-
getCatchElementId
- Specified by:
getCatchElementIdin interfaceEscalationRecordValue- Returns:
- the id of the escalation catch event
-
withTenantId
Copy the current immutable object by setting a value for thetenantIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tenantId (can benull)- Returns:
- A modified copy of the
thisobject
-
withProcessInstanceKey
Copy the current immutable object by setting a value for theprocessInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for processInstanceKey- Returns:
- A modified copy of the
thisobject
-
withEscalationCode
Copy the current immutable object by setting a value for theescalationCodeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for escalationCode (can benull)- Returns:
- A modified copy of the
thisobject
-
withThrowElementId
Copy the current immutable object by setting a value for thethrowElementIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for throwElementId (can benull)- Returns:
- A modified copy of the
thisobject
-
withCatchElementId
Copy the current immutable object by setting a value for thecatchElementIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for catchElementId (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableEscalationRecordValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:tenantId,processInstanceKey,escalationCode,throwElementId,catchElementId. -
toString
Prints the immutable valueEscalationRecordValuewith attribute values. -
copyOf
Creates an immutable copy of aEscalationRecordValuevalue. 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
Creates a builder forImmutableEscalationRecordValue.ImmutableEscalationRecordValue.builder() .withTenantId(String | null) // nullabletenantId.withProcessInstanceKey(long) // optionalprocessInstanceKey.withEscalationCode(String | null) // nullableescalationCode.withThrowElementId(String | null) // nullablethrowElementId.withCatchElementId(String | null) // nullablecatchElementId.build();- Returns:
- A new ImmutableEscalationRecordValue builder
-