Class ImmutableProcessInstanceMigrationMappingInstructionValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableProcessInstanceMigrationMappingInstructionValue
- All Implemented Interfaces:
ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue
public final class ImmutableProcessInstanceMigrationMappingInstructionValue
extends Object
implements ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue
Immutable implementation of
ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue.
Use the builder to create immutable instances:
ImmutableProcessInstanceMigrationMappingInstructionValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableProcessInstanceMigrationMappingInstructionValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableProcessInstanceMigrationMappingInstructionValue.copyOf(ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue instance) Creates an immutable copy of aProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValuevalue.booleanThis instance is equal to all instances ofImmutableProcessInstanceMigrationMappingInstructionValuethat have equal attribute values.inthashCode()Returns a lazily computed hash code from attributes:sourceElementId,targetElementId.toString()Prints the immutable valueProcessInstanceMigrationMappingInstructionValuewith attribute values.withSourceElementId(String value) Copy the current immutable object by setting a value for thesourceElementIdattribute.withTargetElementId(String value) Copy the current immutable object by setting a value for thetargetElementIdattribute.
-
Method Details
-
getSourceElementId
- Specified by:
getSourceElementIdin interfaceProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue- Returns:
- the source element id, or an empty string
-
getTargetElementId
- Specified by:
getTargetElementIdin interfaceProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue- Returns:
- the target element id, or an empty string
-
withSourceElementId
public final ImmutableProcessInstanceMigrationMappingInstructionValue withSourceElementId(String value) Copy the current immutable object by setting a value for thesourceElementIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceElementId (can benull)- Returns:
- A modified copy of the
thisobject
-
withTargetElementId
public final ImmutableProcessInstanceMigrationMappingInstructionValue withTargetElementId(String value) Copy the current immutable object by setting a value for thetargetElementIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for targetElementId (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableProcessInstanceMigrationMappingInstructionValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:sourceElementId,targetElementId. -
toString
Prints the immutable valueProcessInstanceMigrationMappingInstructionValuewith attribute values. -
copyOf
public static ImmutableProcessInstanceMigrationMappingInstructionValue copyOf(ProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValue instance) Creates an immutable copy of aProcessInstanceMigrationRecordValue.ProcessInstanceMigrationMappingInstructionValuevalue. 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 ProcessInstanceMigrationMappingInstructionValue instance
-
builder
Creates a builder forImmutableProcessInstanceMigrationMappingInstructionValue.ImmutableProcessInstanceMigrationMappingInstructionValue.builder() .withSourceElementId(String | null) // nullablesourceElementId.withTargetElementId(String | null) // nullabletargetElementId.build();- Returns:
- A new ImmutableProcessInstanceMigrationMappingInstructionValue builder
-