Class ImmutableFormTaggedEvent.Builder

java.lang.Object
io.dialob.integration.api.event.ImmutableFormTaggedEvent.Builder
Enclosing class:
ImmutableFormTaggedEvent

@NotThreadSafe public static final class ImmutableFormTaggedEvent.Builder extends Object
Builds instances of type ImmutableFormTaggedEvent. 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.dialob.integration.api.event.TenantScopedEvent instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableFormTaggedEvent.Builder from(FormTaggedEvent instance)
      Fill a builder with attribute values from the provided io.dialob.integration.api.event.FormTaggedEvent instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableFormTaggedEvent.Builder from(DistributedEvent instance)
      Fill a builder with attribute values from the provided io.dialob.integration.api.event.DistributedEvent instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableFormTaggedEvent.Builder from(FormEvent instance)
      Fill a builder with attribute values from the provided io.dialob.integration.api.event.FormEvent instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • tenant

      public final ImmutableFormTaggedEvent.Builder tenant(Tenant tenant)
      Initializes the value for the tenant attribute.
      Parameters:
      tenant - The value for tenant
      Returns:
      this builder for use in a chained invocation
    • formId

      public final ImmutableFormTaggedEvent.Builder formId(String formId)
      Initializes the value for the formId attribute.
      Parameters:
      formId - The value for formId
      Returns:
      this builder for use in a chained invocation
    • source

      public final ImmutableFormTaggedEvent.Builder source(String source)
      Initializes the value for the source attribute.
      Parameters:
      source - The value for source
      Returns:
      this builder for use in a chained invocation
    • formName

      public final ImmutableFormTaggedEvent.Builder formName(String formName)
      Initializes the value for the formName attribute.
      Parameters:
      formName - The value for formName
      Returns:
      this builder for use in a chained invocation
    • tagName

      public final ImmutableFormTaggedEvent.Builder tagName(String tagName)
      Initializes the value for the tagName attribute.
      Parameters:
      tagName - The value for tagName
      Returns:
      this builder for use in a chained invocation
    • refName

      public final ImmutableFormTaggedEvent.Builder refName(@Nullable String refName)
      Initializes the value for the refName attribute.
      Parameters:
      refName - The value for refName (can be null)
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableFormTaggedEvent build()
      Returns:
      An immutable instance of FormTaggedEvent
      Throws:
      IllegalStateException - if any required attributes are missing