Class ImmutableDecisionRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.deployment.ImmutableDecisionRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,DecisionRecordValue,TenantOwned
Immutable implementation of
DecisionRecordValue.
Use the builder to create immutable instances:
ImmutableDecisionRecordValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDecisionRecordValue. -
Field Summary
Fields inherited from interface io.camunda.zeebe.protocol.record.value.TenantOwned
DEFAULT_TENANT_IDENTIFIER -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDecisionRecordValue.static ImmutableDecisionRecordValuecopyOf(DecisionRecordValue instance) Creates an immutable copy of aDecisionRecordValuevalue.booleanThis instance is equal to all instances ofImmutableDecisionRecordValuethat have equal attribute values.longlonglongReturns the identifier of the tenant that owns this entity.intinthashCode()Returns a lazily computed hash code from attributes:tenantId,decisionId,decisionName,version,versionTag,decisionKey,decisionRequirementsId,decisionRequirementsKey,duplicate,deploymentKey.booleantoString()Prints the immutable valueDecisionRecordValuewith attribute values.withDecisionId(String value) Copy the current immutable object by setting a value for thedecisionIdattribute.withDecisionKey(long value) Copy the current immutable object by setting a value for thedecisionKeyattribute.withDecisionName(String value) Copy the current immutable object by setting a value for thedecisionNameattribute.withDecisionRequirementsId(String value) Copy the current immutable object by setting a value for thedecisionRequirementsIdattribute.withDecisionRequirementsKey(long value) Copy the current immutable object by setting a value for thedecisionRequirementsKeyattribute.withDeploymentKey(long value) Copy the current immutable object by setting a value for thedeploymentKeyattribute.withDuplicate(boolean value) Copy the current immutable object by setting a value for theduplicateattribute.withTenantId(String value) Copy the current immutable object by setting a value for thetenantIdattribute.withVersion(int value) Copy the current immutable object by setting a value for theversionattribute.withVersionTag(String value) Copy the current immutable object by setting a value for theversionTagattribute.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
-
getDecisionId
- Specified by:
getDecisionIdin interfaceDecisionRecordValue- Returns:
- the ID of the decision in the DMN
-
getDecisionName
- Specified by:
getDecisionNamein interfaceDecisionRecordValue- Returns:
- the name of the decision in the DMN
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceDecisionRecordValue- Returns:
- the version of the deployed decision
-
getVersionTag
- Specified by:
getVersionTagin interfaceDecisionRecordValue- Returns:
- the custom version tag of the deployed decision
-
getDecisionKey
public long getDecisionKey()- Specified by:
getDecisionKeyin interfaceDecisionRecordValue- Returns:
- the key of the deployed decision
-
getDecisionRequirementsId
- Specified by:
getDecisionRequirementsIdin interfaceDecisionRecordValue- Returns:
- the ID of the DRG in the DMN this decision belongs to
-
getDecisionRequirementsKey
public long getDecisionRequirementsKey()- Specified by:
getDecisionRequirementsKeyin interfaceDecisionRecordValue- Returns:
- the key of the deployed DRG this decision belongs to
-
isDuplicate
public boolean isDuplicate()- Specified by:
isDuplicatein interfaceDecisionRecordValue- Returns:
trueif the decision is a duplicate (and has been deployed previously), otherwisefalse
-
getDeploymentKey
public long getDeploymentKey()- Specified by:
getDeploymentKeyin interfaceDecisionRecordValue- Returns:
- the key of the deployment this decision was deployed with
-
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
-
withDecisionId
Copy the current immutable object by setting a value for thedecisionIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for decisionId (can benull)- Returns:
- A modified copy of the
thisobject
-
withDecisionName
Copy the current immutable object by setting a value for thedecisionNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for decisionName (can benull)- Returns:
- A modified copy of the
thisobject
-
withVersion
Copy the current immutable object by setting a value for theversionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version- Returns:
- A modified copy of the
thisobject
-
withVersionTag
Copy the current immutable object by setting a value for theversionTagattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for versionTag (can benull)- Returns:
- A modified copy of the
thisobject
-
withDecisionKey
Copy the current immutable object by setting a value for thedecisionKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for decisionKey- Returns:
- A modified copy of the
thisobject
-
withDecisionRequirementsId
Copy the current immutable object by setting a value for thedecisionRequirementsIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for decisionRequirementsId (can benull)- Returns:
- A modified copy of the
thisobject
-
withDecisionRequirementsKey
Copy the current immutable object by setting a value for thedecisionRequirementsKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for decisionRequirementsKey- Returns:
- A modified copy of the
thisobject
-
withDuplicate
Copy the current immutable object by setting a value for theduplicateattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for duplicate- Returns:
- A modified copy of the
thisobject
-
withDeploymentKey
Copy the current immutable object by setting a value for thedeploymentKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for deploymentKey- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableDecisionRecordValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:tenantId,decisionId,decisionName,version,versionTag,decisionKey,decisionRequirementsId,decisionRequirementsKey,duplicate,deploymentKey. -
toString
Prints the immutable valueDecisionRecordValuewith attribute values. -
copyOf
Creates an immutable copy of aDecisionRecordValuevalue. 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 DecisionRecordValue instance
-
builder
Creates a builder forImmutableDecisionRecordValue.ImmutableDecisionRecordValue.builder() .withTenantId(String | null) // nullabletenantId.withDecisionId(String | null) // nullabledecisionId.withDecisionName(String | null) // nullabledecisionName.withVersion(int) // optionalversion.withVersionTag(String | null) // nullableversionTag.withDecisionKey(long) // optionaldecisionKey.withDecisionRequirementsId(String | null) // nullabledecisionRequirementsId.withDecisionRequirementsKey(long) // optionaldecisionRequirementsKey.withDuplicate(boolean) // optionalduplicate.withDeploymentKey(long) // optionaldeploymentKey.build();- Returns:
- A new ImmutableDecisionRecordValue builder
-