Class ImmutableDecisionRequirementsRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.deployment.ImmutableDecisionRequirementsRecordValue.Builder
- Enclosing class:
- ImmutableDecisionRequirementsRecordValue
@NotThreadSafe
public static final class ImmutableDecisionRequirementsRecordValue.Builder
extends Object
Builds instances of type
ImmutableDecisionRequirementsRecordValue.
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 newImmutableDecisionRequirementsRecordValue.clear()Clear the builder to the initial state.from(DecisionRequirementsMetadataValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.deployment.DecisionRequirementsMetadataValueinstance.from(DecisionRequirementsRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.deployment.DecisionRequirementsRecordValueinstance.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.withResource(byte... resource) Initializes the value for theresourceattribute.withResourceName(String resourceName) Initializes the value for theresourceNameattribute.
-
Method Details
-
from
public final ImmutableDecisionRequirementsRecordValue.Builder from(DecisionRequirementsMetadataValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.deployment.DecisionRequirementsMetadataValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableDecisionRequirementsRecordValue.Builder from(DecisionRequirementsRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.deployment.DecisionRequirementsRecordValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withDecisionRequirementsId
public final ImmutableDecisionRequirementsRecordValue.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 ImmutableDecisionRequirementsRecordValue.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 ImmutableDecisionRequirementsRecordValue.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 ImmutableDecisionRequirementsRecordValue.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
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
-
withResource
Initializes the value for theresourceattribute.- Parameters:
resource- The elements for resource- 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 newImmutableDecisionRequirementsRecordValue.- Returns:
- An immutable instance of DecisionRequirementsRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-