Class ImmutableCompensationSubscriptionRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableCompensationSubscriptionRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,CompensationSubscriptionRecordValue
public final class ImmutableCompensationSubscriptionRecordValue
extends Object
implements CompensationSubscriptionRecordValue
Immutable implementation of
CompensationSubscriptionRecordValue.
Use the builder to create immutable instances:
ImmutableCompensationSubscriptionRecordValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableCompensationSubscriptionRecordValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableCompensationSubscriptionRecordValue.copyOf(CompensationSubscriptionRecordValue instance) Creates an immutable copy of aCompensationSubscriptionRecordValuevalue.booleanThis instance is equal to all instances ofImmutableCompensationSubscriptionRecordValuethat have equal attribute values.longlonglonglonglonglonginthashCode()Returns a lazily computed hash code from attributes:tenantId,processInstanceKey,processDefinitionKey,compensableActivityId,throwEventId,throwEventInstanceKey,compensationHandlerId,compensationHandlerInstanceKey,compensableActivityScopeKey,compensableActivityInstanceKey,variables.toString()Prints the immutable valueCompensationSubscriptionRecordValuewith attribute values.withCompensableActivityId(String value) Copy the current immutable object by setting a value for thecompensableActivityIdattribute.withCompensableActivityInstanceKey(long value) Copy the current immutable object by setting a value for thecompensableActivityInstanceKeyattribute.withCompensableActivityScopeKey(long value) Copy the current immutable object by setting a value for thecompensableActivityScopeKeyattribute.withCompensationHandlerId(String value) Copy the current immutable object by setting a value for thecompensationHandlerIdattribute.withCompensationHandlerInstanceKey(long value) Copy the current immutable object by setting a value for thecompensationHandlerInstanceKeyattribute.withProcessDefinitionKey(long value) Copy the current immutable object by setting a value for theprocessDefinitionKeyattribute.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.withThrowEventId(String value) Copy the current immutable object by setting a value for thethrowEventIdattribute.withThrowEventInstanceKey(long value) Copy the current immutable object by setting a value for thethrowEventInstanceKeyattribute.withVariables(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thevariablesmap with the specified map.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
- Specified by:
getTenantIdin interfaceCompensationSubscriptionRecordValue- Returns:
- the id of the tenant
-
getProcessInstanceKey
public long getProcessInstanceKey()- Specified by:
getProcessInstanceKeyin interfaceCompensationSubscriptionRecordValue- Returns:
- the key of the process instance
-
getProcessDefinitionKey
public long getProcessDefinitionKey()- Specified by:
getProcessDefinitionKeyin interfaceCompensationSubscriptionRecordValue- Returns:
- the key of the process definition
-
getCompensableActivityId
- Specified by:
getCompensableActivityIdin interfaceCompensationSubscriptionRecordValue- Returns:
- the element id of the activity with the compensation handler
-
getThrowEventId
- Specified by:
getThrowEventIdin interfaceCompensationSubscriptionRecordValue- Returns:
- the element id of compensation throw event
-
getThrowEventInstanceKey
public long getThrowEventInstanceKey()- Specified by:
getThrowEventInstanceKeyin interfaceCompensationSubscriptionRecordValue- Returns:
- the element instance key of compensation throw event
-
getCompensationHandlerId
- Specified by:
getCompensationHandlerIdin interfaceCompensationSubscriptionRecordValue- Returns:
- the element id of the compensation handler
-
getCompensationHandlerInstanceKey
public long getCompensationHandlerInstanceKey()- Specified by:
getCompensationHandlerInstanceKeyin interfaceCompensationSubscriptionRecordValue- Returns:
- the instance key of the compensation handler
-
getCompensableActivityScopeKey
public long getCompensableActivityScopeKey()- Specified by:
getCompensableActivityScopeKeyin interfaceCompensationSubscriptionRecordValue- Returns:
- the instance key of the flow scope that contains the activity with the compensation handler
-
getCompensableActivityInstanceKey
public long getCompensableActivityInstanceKey()- Specified by:
getCompensableActivityInstanceKeyin interfaceCompensationSubscriptionRecordValue- Returns:
- the instance key of the activity with the compensation handler
-
getVariables
- Specified by:
getVariablesin interfaceCompensationSubscriptionRecordValue- Returns:
- the local variables of activity with compensation handler
-
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
-
withProcessDefinitionKey
Copy the current immutable object by setting a value for theprocessDefinitionKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for processDefinitionKey- Returns:
- A modified copy of the
thisobject
-
withCompensableActivityId
Copy the current immutable object by setting a value for thecompensableActivityIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for compensableActivityId (can benull)- Returns:
- A modified copy of the
thisobject
-
withThrowEventId
Copy the current immutable object by setting a value for thethrowEventIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for throwEventId (can benull)- Returns:
- A modified copy of the
thisobject
-
withThrowEventInstanceKey
Copy the current immutable object by setting a value for thethrowEventInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for throwEventInstanceKey- Returns:
- A modified copy of the
thisobject
-
withCompensationHandlerId
Copy the current immutable object by setting a value for thecompensationHandlerIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for compensationHandlerId (can benull)- Returns:
- A modified copy of the
thisobject
-
withCompensationHandlerInstanceKey
public final ImmutableCompensationSubscriptionRecordValue withCompensationHandlerInstanceKey(long value) Copy the current immutable object by setting a value for thecompensationHandlerInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for compensationHandlerInstanceKey- Returns:
- A modified copy of the
thisobject
-
withCompensableActivityScopeKey
public final ImmutableCompensationSubscriptionRecordValue withCompensableActivityScopeKey(long value) Copy the current immutable object by setting a value for thecompensableActivityScopeKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for compensableActivityScopeKey- Returns:
- A modified copy of the
thisobject
-
withCompensableActivityInstanceKey
public final ImmutableCompensationSubscriptionRecordValue withCompensableActivityInstanceKey(long value) Copy the current immutable object by setting a value for thecompensableActivityInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for compensableActivityInstanceKey- Returns:
- A modified copy of the
thisobject
-
withVariables
public final ImmutableCompensationSubscriptionRecordValue withVariables(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thevariablesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the variables map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableCompensationSubscriptionRecordValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:tenantId,processInstanceKey,processDefinitionKey,compensableActivityId,throwEventId,throwEventInstanceKey,compensationHandlerId,compensationHandlerInstanceKey,compensableActivityScopeKey,compensableActivityInstanceKey,variables. -
toString
Prints the immutable valueCompensationSubscriptionRecordValuewith attribute values. -
copyOf
public static ImmutableCompensationSubscriptionRecordValue copyOf(CompensationSubscriptionRecordValue instance) Creates an immutable copy of aCompensationSubscriptionRecordValuevalue. 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 CompensationSubscriptionRecordValue instance
-
builder
Creates a builder forImmutableCompensationSubscriptionRecordValue.ImmutableCompensationSubscriptionRecordValue.builder() .withTenantId(String | null) // nullabletenantId.withProcessInstanceKey(long) // optionalprocessInstanceKey.withProcessDefinitionKey(long) // optionalprocessDefinitionKey.withCompensableActivityId(String | null) // nullablecompensableActivityId.withThrowEventId(String | null) // nullablethrowEventId.withThrowEventInstanceKey(long) // optionalthrowEventInstanceKey.withCompensationHandlerId(String | null) // nullablecompensationHandlerId.withCompensationHandlerInstanceKey(long) // optionalcompensationHandlerInstanceKey.withCompensableActivityScopeKey(long) // optionalcompensableActivityScopeKey.withCompensableActivityInstanceKey(long) // optionalcompensableActivityInstanceKey.putVariable|putAllVariables(String => Object) //variablesmappings .build();- Returns:
- A new ImmutableCompensationSubscriptionRecordValue builder
-