Class ImmutableDecisionRequirementsMetadataValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.deployment.ImmutableDecisionRequirementsMetadataValue.Builder
- Enclosing class:
- ImmutableDecisionRequirementsMetadataValue
@NotThreadSafe
public static final class ImmutableDecisionRequirementsMetadataValue.Builder
extends Object
Builds instances of type
ImmutableDecisionRequirementsMetadataValue.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableDecisionRequirementsMetadataValue.clear()Clear the builder to the initial state.from(DecisionRequirementsMetadataValue instance) Fill a builder with attribute values from the providedDecisionRequirementsMetadataValueinstance.withChecksum(byte... checksum) Initializes the value for thechecksumattribute.withDecisionRequirementsId(String decisionRequirementsId) Initializes the value for thedecisionRequirementsIdattribute.withDecisionRequirementsKey(long decisionRequirementsKey) Initializes the value for thedecisionRequirementsKeyattribute.withDecisionRequirementsName(String decisionRequirementsName) Initializes the value for thedecisionRequirementsNameattribute.withDecisionRequirementsVersion(int decisionRequirementsVersion) Initializes the value for thedecisionRequirementsVersionattribute.withDuplicate(boolean duplicate) Initializes the value for theduplicateattribute.withNamespace(String namespace) Initializes the value for thenamespaceattribute.withResourceName(String resourceName) Initializes the value for theresourceNameattribute.
-
Method Details
-
from
public final ImmutableDecisionRequirementsMetadataValue.Builder from(DecisionRequirementsMetadataValue instance) Fill a builder with attribute values from the providedDecisionRequirementsMetadataValueinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withDecisionRequirementsId
public final ImmutableDecisionRequirementsMetadataValue.Builder withDecisionRequirementsId(String decisionRequirementsId) Initializes the value for thedecisionRequirementsIdattribute.- Parameters:
decisionRequirementsId- The value for decisionRequirementsId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withDecisionRequirementsName
public final ImmutableDecisionRequirementsMetadataValue.Builder withDecisionRequirementsName(String decisionRequirementsName) Initializes the value for thedecisionRequirementsNameattribute.- Parameters:
decisionRequirementsName- The value for decisionRequirementsName (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withDecisionRequirementsVersion
public final ImmutableDecisionRequirementsMetadataValue.Builder withDecisionRequirementsVersion(int decisionRequirementsVersion) Initializes the value for thedecisionRequirementsVersionattribute.- Parameters:
decisionRequirementsVersion- The value for decisionRequirementsVersion- Returns:
thisbuilder for use in a chained invocation
-
withDecisionRequirementsKey
public final ImmutableDecisionRequirementsMetadataValue.Builder withDecisionRequirementsKey(long decisionRequirementsKey) Initializes the value for thedecisionRequirementsKeyattribute.- Parameters:
decisionRequirementsKey- The value for decisionRequirementsKey- Returns:
thisbuilder for use in a chained invocation
-
withNamespace
Initializes the value for thenamespaceattribute.- Parameters:
namespace- The value for namespace (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withResourceName
public final ImmutableDecisionRequirementsMetadataValue.Builder withResourceName(String resourceName) Initializes the value for theresourceNameattribute.- Parameters:
resourceName- The value for resourceName (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withChecksum
Initializes the value for thechecksumattribute.- Parameters:
checksum- The elements for checksum- Returns:
thisbuilder for use in a chained invocation
-
withDuplicate
Initializes the value for theduplicateattribute.- Parameters:
duplicate- The value for duplicate- Returns:
thisbuilder for use in a chained invocation
-
clear
Clear the builder to the initial state.- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableDecisionRequirementsMetadataValue.- Returns:
- An immutable instance of DecisionRequirementsMetadataValue
- Throws:
IllegalStateException- if any required attributes are missing
-