Class ImmutableFormDeletedEvent.Builder

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

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

      Fill a builder with attribute values from the provided io.dialob.integration.api.event.FormDeletedEvent instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      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 ImmutableFormDeletedEvent.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 ImmutableFormDeletedEvent.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 ImmutableFormDeletedEvent.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 ImmutableFormDeletedEvent.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
    • build

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