Class ImmutableDeploymentRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableDeploymentRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,DeploymentRecordValue
@ParametersAreNonnullByDefault
@Immutable
public final class ImmutableDeploymentRecordValue
extends Object
implements DeploymentRecordValue
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. -
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.inthashCode()Returns a lazily computed hash code from attributes:resources,processesMetadata,decisionsMetadata,decisionRequirementsMetadata.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.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.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
-
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)
-
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
-
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:resources,processesMetadata,decisionsMetadata,decisionRequirementsMetadata. -
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() .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 .build();- Returns:
- A new ImmutableDeploymentRecordValue builder
-