Class ImmutableFormDeletedEvent

java.lang.Object
io.dialob.integration.api.event.ImmutableFormDeletedEvent
All Implemented Interfaces:
DistributedEvent, Event, FormDeletedEvent, FormEvent, TenantScopedEvent, Serializable

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableFormDeletedEvent extends Object implements FormDeletedEvent
Immutable implementation of FormDeletedEvent.

Use the builder to create immutable instances: ImmutableFormDeletedEvent.builder().

See Also:
  • Method Details

    • getTenant

      public Tenant getTenant()
      Specified by:
      getTenant in interface TenantScopedEvent
      Returns:
      The value of the tenant attribute
    • getFormId

      public String getFormId()
      Specified by:
      getFormId in interface FormEvent
      Returns:
      The value of the formId attribute
    • getSource

      public String getSource()
      Specified by:
      getSource in interface DistributedEvent
      Returns:
      The value of the source attribute
    • withTenant

      public final ImmutableFormDeletedEvent withTenant(Tenant value)
      Copy the current immutable object by setting a value for the tenant attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for tenant
      Returns:
      A modified copy of the this object
    • withFormId

      public final ImmutableFormDeletedEvent withFormId(String value)
      Copy the current immutable object by setting a value for the formId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for formId
      Returns:
      A modified copy of the this object
    • withSource

      public final ImmutableFormDeletedEvent withSource(String value)
      Copy the current immutable object by setting a value for the source attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for source
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableFormDeletedEvent that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: tenant, formId, source.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value FormDeletedEvent with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableFormDeletedEvent copyOf(FormDeletedEvent instance)
      Creates an immutable copy of a FormDeletedEvent value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable FormDeletedEvent instance
    • builder

      public static ImmutableFormDeletedEvent.Builder builder()
      Creates a builder for ImmutableFormDeletedEvent.
       ImmutableFormDeletedEvent.builder()
          .tenant(io.dialob.security.tenant.Tenant) // required tenant
          .formId(String) // required formId
          .source(String) // required source
          .build();
       
      Returns:
      A new ImmutableFormDeletedEvent builder