Class ImmutableDecisionRecordValue.Builder

java.lang.Object
io.camunda.zeebe.protocol.record.value.deployment.ImmutableDecisionRecordValue.Builder
Enclosing class:
ImmutableDecisionRecordValue

public static final class ImmutableDecisionRecordValue.Builder extends Object
Builds instances of type ImmutableDecisionRecordValue. 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 Details

    • from

      Fill a builder with attribute values from the provided io.camunda.zeebe.protocol.record.value.deployment.DecisionRecordValue instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableDecisionRecordValue.Builder from(TenantOwned instance)
      Fill a builder with attribute values from the provided io.camunda.zeebe.protocol.record.value.TenantOwned instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • withTenantId

      public final ImmutableDecisionRecordValue.Builder withTenantId(String tenantId)
      Initializes the value for the tenantId attribute.
      Parameters:
      tenantId - The value for tenantId (can be null)
      Returns:
      this builder for use in a chained invocation
    • withDecisionId

      public final ImmutableDecisionRecordValue.Builder withDecisionId(String decisionId)
      Initializes the value for the decisionId attribute.
      Parameters:
      decisionId - The value for decisionId (can be null)
      Returns:
      this builder for use in a chained invocation
    • withDecisionName

      public final ImmutableDecisionRecordValue.Builder withDecisionName(String decisionName)
      Initializes the value for the decisionName attribute.
      Parameters:
      decisionName - The value for decisionName (can be null)
      Returns:
      this builder for use in a chained invocation
    • withVersion

      public final ImmutableDecisionRecordValue.Builder withVersion(int version)
      Initializes the value for the version attribute.
      Parameters:
      version - The value for version
      Returns:
      this builder for use in a chained invocation
    • withVersionTag

      public final ImmutableDecisionRecordValue.Builder withVersionTag(String versionTag)
      Initializes the value for the versionTag attribute.
      Parameters:
      versionTag - The value for versionTag (can be null)
      Returns:
      this builder for use in a chained invocation
    • withDecisionKey

      public final ImmutableDecisionRecordValue.Builder withDecisionKey(long decisionKey)
      Initializes the value for the decisionKey attribute.
      Parameters:
      decisionKey - The value for decisionKey
      Returns:
      this builder for use in a chained invocation
    • withDecisionRequirementsId

      public final ImmutableDecisionRecordValue.Builder withDecisionRequirementsId(String decisionRequirementsId)
      Initializes the value for the decisionRequirementsId attribute.
      Parameters:
      decisionRequirementsId - The value for decisionRequirementsId (can be null)
      Returns:
      this builder for use in a chained invocation
    • withDecisionRequirementsKey

      public final ImmutableDecisionRecordValue.Builder withDecisionRequirementsKey(long decisionRequirementsKey)
      Initializes the value for the decisionRequirementsKey attribute.
      Parameters:
      decisionRequirementsKey - The value for decisionRequirementsKey
      Returns:
      this builder for use in a chained invocation
    • withDuplicate

      public final ImmutableDecisionRecordValue.Builder withDuplicate(boolean duplicate)
      Initializes the value for the duplicate attribute.
      Parameters:
      duplicate - The value for duplicate
      Returns:
      this builder for use in a chained invocation
    • withDeploymentKey

      public final ImmutableDecisionRecordValue.Builder withDeploymentKey(long deploymentKey)
      Initializes the value for the deploymentKey attribute.
      Parameters:
      deploymentKey - The value for deploymentKey
      Returns:
      this builder for use in a chained invocation
    • clear

      Clear the builder to the initial state.
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of DecisionRecordValue
      Throws:
      IllegalStateException - if any required attributes are missing