Class ImmutableDeploymentRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableDeploymentRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,DeploymentRecordValue,TenantOwned
Immutable implementation of
DeploymentRecordValue.
Use the builder to create immutable instances:
ImmutableDeploymentRecordValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDeploymentRecordValue. -
Field Summary
Fields inherited from interface io.camunda.zeebe.protocol.record.value.TenantOwned
DEFAULT_TENANT_IDENTIFIER -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDeploymentRecordValue.copyOf(DeploymentRecordValue instance) Creates an immutable copy of aDeploymentRecordValuevalue.booleanThis instance is equal to all instances ofImmutableDeploymentRecordValuethat have equal attribute values.longReturns the identifier of the tenant that owns this entity.inthashCode()Returns a lazily computed hash code from attributes:tenantId,resources,processesMetadata,decisionsMetadata,decisionRequirementsMetadata,formMetadata,deploymentKey.toString()Prints the immutable valueDeploymentRecordValuewith attribute values.Copy the current immutable object with elements that replace the content ofdecisionRequirementsMetadata.withDecisionRequirementsMetadata(Iterable<? extends DecisionRequirementsMetadataValue> elements) Copy the current immutable object with elements that replace the content ofdecisionRequirementsMetadata.withDecisionsMetadata(DecisionRecordValue... elements) Copy the current immutable object with elements that replace the content ofdecisionsMetadata.withDecisionsMetadata(Iterable<? extends DecisionRecordValue> elements) Copy the current immutable object with elements that replace the content ofdecisionsMetadata.withDeploymentKey(long value) Copy the current immutable object by setting a value for thedeploymentKeyattribute.withFormMetadata(FormMetadataValue... elements) Copy the current immutable object with elements that replace the content offormMetadata.withFormMetadata(Iterable<? extends FormMetadataValue> elements) Copy the current immutable object with elements that replace the content offormMetadata.withProcessesMetadata(ProcessMetadataValue... elements) Copy the current immutable object with elements that replace the content ofprocessesMetadata.withProcessesMetadata(Iterable<? extends ProcessMetadataValue> elements) Copy the current immutable object with elements that replace the content ofprocessesMetadata.withResources(DeploymentResource... elements) Copy the current immutable object with elements that replace the content ofresources.withResources(Iterable<? extends DeploymentResource> elements) Copy the current immutable object with elements that replace the content ofresources.withTenantId(String value) Copy the current immutable object by setting a value for thetenantIdattribute.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
-
getResources
- Specified by:
getResourcesin interfaceDeploymentRecordValue- Returns:
- the resources to deploy
-
getProcessesMetadata
- Specified by:
getProcessesMetadatain interfaceDeploymentRecordValue- Returns:
- the deployed processes
-
getDecisionsMetadata
- Specified by:
getDecisionsMetadatain interfaceDeploymentRecordValue- Returns:
- the deployed decisions
-
getDecisionRequirementsMetadata
- Specified by:
getDecisionRequirementsMetadatain interfaceDeploymentRecordValue- Returns:
- the deployed decision requirements (DRGs)
-
getFormMetadata
- Specified by:
getFormMetadatain interfaceDeploymentRecordValue- Returns:
- the deployed forms
-
getDeploymentKey
public long getDeploymentKey()- Specified by:
getDeploymentKeyin interfaceDeploymentRecordValue- Returns:
- the unique key of the deployment
-
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
-
withResources
Copy the current immutable object with elements that replace the content ofresources.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withResources
public final ImmutableDeploymentRecordValue withResources(Iterable<? extends DeploymentResource> elements) Copy the current immutable object with elements that replace the content ofresources. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of resources elements to set- Returns:
- A modified copy of
thisobject
-
withProcessesMetadata
Copy the current immutable object with elements that replace the content ofprocessesMetadata.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withProcessesMetadata
public final ImmutableDeploymentRecordValue withProcessesMetadata(Iterable<? extends ProcessMetadataValue> elements) Copy the current immutable object with elements that replace the content ofprocessesMetadata. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of processesMetadata elements to set- Returns:
- A modified copy of
thisobject
-
withDecisionsMetadata
Copy the current immutable object with elements that replace the content ofdecisionsMetadata.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDecisionsMetadata
public final ImmutableDeploymentRecordValue withDecisionsMetadata(Iterable<? extends DecisionRecordValue> elements) Copy the current immutable object with elements that replace the content ofdecisionsMetadata. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of decisionsMetadata elements to set- Returns:
- A modified copy of
thisobject
-
withDecisionRequirementsMetadata
public final ImmutableDeploymentRecordValue withDecisionRequirementsMetadata(DecisionRequirementsMetadataValue... elements) Copy the current immutable object with elements that replace the content ofdecisionRequirementsMetadata.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDecisionRequirementsMetadata
public final ImmutableDeploymentRecordValue withDecisionRequirementsMetadata(Iterable<? extends DecisionRequirementsMetadataValue> elements) Copy the current immutable object with elements that replace the content ofdecisionRequirementsMetadata. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of decisionRequirementsMetadata elements to set- Returns:
- A modified copy of
thisobject
-
withFormMetadata
Copy the current immutable object with elements that replace the content offormMetadata.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFormMetadata
public final ImmutableDeploymentRecordValue withFormMetadata(Iterable<? extends FormMetadataValue> elements) Copy the current immutable object with elements that replace the content offormMetadata. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of formMetadata elements to set- Returns:
- A modified copy of
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 ofImmutableDeploymentRecordValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:tenantId,resources,processesMetadata,decisionsMetadata,decisionRequirementsMetadata,formMetadata,deploymentKey. -
toString
Prints the immutable valueDeploymentRecordValuewith attribute values. -
copyOf
Creates an immutable copy of aDeploymentRecordValuevalue. 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 DeploymentRecordValue instance
-
builder
Creates a builder forImmutableDeploymentRecordValue.ImmutableDeploymentRecordValue.builder() .withTenantId(String | null) // nullabletenantId.addResource|addAllResources(io.camunda.zeebe.protocol.record.value.deployment.DeploymentResource) //resourceselements .addProcessesMetadata|addAllProcessesMetadata(io.camunda.zeebe.protocol.record.value.deployment.ProcessMetadataValue) //processesMetadataelements .addDecisionsMetadata|addAllDecisionsMetadata(io.camunda.zeebe.protocol.record.value.deployment.DecisionRecordValue) //decisionsMetadataelements .addDecisionRequirementsMetadata|addAllDecisionRequirementsMetadata(io.camunda.zeebe.protocol.record.value.deployment.DecisionRequirementsMetadataValue) //decisionRequirementsMetadataelements .addFormMetadata|addAllFormMetadata(io.camunda.zeebe.protocol.record.value.deployment.FormMetadataValue) //formMetadataelements .withDeploymentKey(long) // optionaldeploymentKey.build();- Returns:
- A new ImmutableDeploymentRecordValue builder
-