Package io.dialob.integration.api.event
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 ofFormDeletedEvent.Use the builder to create immutable instances:
ImmutableFormDeletedEvent.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormDeletedEvent.BuilderBuilds instances of typeImmutableFormDeletedEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormDeletedEvent.Builderbuilder()Creates a builder forImmutableFormDeletedEvent.static ImmutableFormDeletedEventcopyOf(FormDeletedEvent instance)Creates an immutable copy of aFormDeletedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormDeletedEventthat have equal attribute values.StringgetFormId()StringgetSource()TenantgetTenant()inthashCode()Computes a hash code from attributes:tenant,formId,source.StringtoString()Prints the immutable valueFormDeletedEventwith attribute values.ImmutableFormDeletedEventwithFormId(String value)Copy the current immutable object by setting a value for theformIdattribute.ImmutableFormDeletedEventwithSource(String value)Copy the current immutable object by setting a value for thesourceattribute.ImmutableFormDeletedEventwithTenant(Tenant value)Copy the current immutable object by setting a value for thetenantattribute.
-
-
-
Method Detail
-
getTenant
public Tenant getTenant()
- Specified by:
getTenantin interfaceTenantScopedEvent- Returns:
- The value of the
tenantattribute
-
getFormId
public String getFormId()
-
getSource
public String getSource()
- Specified by:
getSourcein interfaceDistributedEvent- Returns:
- The value of the
sourceattribute
-
withTenant
public final ImmutableFormDeletedEvent withTenant(Tenant value)
Copy the current immutable object by setting a value for thetenantattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tenant- Returns:
- A modified copy of the
thisobject
-
withFormId
public final ImmutableFormDeletedEvent withFormId(String value)
Copy the current immutable object by setting a value for theformIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for formId- Returns:
- A modified copy of the
thisobject
-
withSource
public final ImmutableFormDeletedEvent withSource(String value)
Copy the current immutable object by setting a value for thesourceattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for source- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableFormDeletedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:tenant,formId,source.
-
toString
public String toString()
Prints the immutable valueFormDeletedEventwith attribute values.
-
copyOf
public static ImmutableFormDeletedEvent copyOf(FormDeletedEvent instance)
Creates an immutable copy of aFormDeletedEventvalue. 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 forImmutableFormDeletedEvent.ImmutableFormDeletedEvent.builder() .tenant(io.dialob.security.tenant.Tenant) // requiredtenant.formId(String) // requiredformId.source(String) // requiredsource.build();- Returns:
- A new ImmutableFormDeletedEvent builder
-
-