Class ImmutableForm.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.deployment.ImmutableForm.Builder
- Enclosing class:
ImmutableForm
Builds instances of type
ImmutableForm.
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 newImmutableForm.clear()Clear the builder to the initial state.final ImmutableForm.BuilderFill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.deployment.Forminstance.final ImmutableForm.Builderfrom(FormMetadataValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.deployment.FormMetadataValueinstance.final ImmutableForm.Builderfrom(TenantOwned instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TenantOwnedinstance.final ImmutableForm.BuilderwithChecksum(byte... checksum) Initializes the value for thechecksumattribute.final ImmutableForm.BuilderwithDeploymentKey(long deploymentKey) Initializes the value for thedeploymentKeyattribute.final ImmutableForm.BuilderwithDuplicate(boolean duplicate) Initializes the value for theduplicateattribute.final ImmutableForm.BuilderwithFormId(String formId) Initializes the value for theformIdattribute.final ImmutableForm.BuilderwithFormKey(long formKey) Initializes the value for theformKeyattribute.final ImmutableForm.BuilderwithResource(byte... resource) Initializes the value for theresourceattribute.final ImmutableForm.BuilderwithResourceName(String resourceName) Initializes the value for theresourceNameattribute.final ImmutableForm.BuilderwithTenantId(String tenantId) Initializes the value for thetenantIdattribute.final ImmutableForm.BuilderwithVersion(int version) Initializes the value for theversionattribute.final ImmutableForm.BuilderwithVersionTag(String versionTag) Initializes the value for theversionTagattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.deployment.Forminstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.deployment.FormMetadataValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TenantOwnedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withTenantId
Initializes the value for thetenantIdattribute.- Parameters:
tenantId- The value for tenantId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withFormId
Initializes the value for theformIdattribute.- Parameters:
formId- The value for formId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withVersion
Initializes the value for theversionattribute.- Parameters:
version- The value for version- Returns:
thisbuilder for use in a chained invocation
-
withVersionTag
Initializes the value for theversionTagattribute.- Parameters:
versionTag- The value for versionTag (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withFormKey
Initializes the value for theformKeyattribute.- Parameters:
formKey- The value for formKey- 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
-
withDeploymentKey
Initializes the value for thedeploymentKeyattribute.- Parameters:
deploymentKey- The value for deploymentKey- 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 newImmutableForm.- Returns:
- An immutable instance of Form
- Throws:
IllegalStateException- if any required attributes are missing
-