Package io.dialob.integration.api.event
Class ImmutableFormUpdatedEvent
- java.lang.Object
-
- io.dialob.integration.api.event.ImmutableFormUpdatedEvent
-
- All Implemented Interfaces:
DistributedEvent,Event,FormEvent,FormUpdatedEvent,TenantScopedEvent,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableFormUpdatedEvent extends Object implements FormUpdatedEvent
Immutable implementation ofFormUpdatedEvent.Use the builder to create immutable instances:
ImmutableFormUpdatedEvent.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormUpdatedEvent.BuilderBuilds instances of typeImmutableFormUpdatedEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormUpdatedEvent.Builderbuilder()Creates a builder forImmutableFormUpdatedEvent.static ImmutableFormUpdatedEventcopyOf(FormUpdatedEvent instance)Creates an immutable copy of aFormUpdatedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormUpdatedEventthat have equal attribute values.StringgetFormId()StringgetRevision()StringgetSource()TenantgetTenant()inthashCode()Computes a hash code from attributes:tenant,formId,source,revision.StringtoString()Prints the immutable valueFormUpdatedEventwith attribute values.ImmutableFormUpdatedEventwithFormId(String value)Copy the current immutable object by setting a value for theformIdattribute.ImmutableFormUpdatedEventwithRevision(String value)Copy the current immutable object by setting a value for therevisionattribute.ImmutableFormUpdatedEventwithSource(String value)Copy the current immutable object by setting a value for thesourceattribute.ImmutableFormUpdatedEventwithTenant(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
-
getRevision
public String getRevision()
- Specified by:
getRevisionin interfaceFormUpdatedEvent- Returns:
- The value of the
revisionattribute
-
withTenant
public final ImmutableFormUpdatedEvent 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 ImmutableFormUpdatedEvent 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 ImmutableFormUpdatedEvent 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
-
withRevision
public final ImmutableFormUpdatedEvent withRevision(String value)
Copy the current immutable object by setting a value for therevisionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for revision- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableFormUpdatedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:tenant,formId,source,revision.
-
toString
public String toString()
Prints the immutable valueFormUpdatedEventwith attribute values.
-
copyOf
public static ImmutableFormUpdatedEvent copyOf(FormUpdatedEvent instance)
Creates an immutable copy of aFormUpdatedEventvalue. 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 FormUpdatedEvent instance
-
builder
public static ImmutableFormUpdatedEvent.Builder builder()
Creates a builder forImmutableFormUpdatedEvent.ImmutableFormUpdatedEvent.builder() .tenant(io.dialob.security.tenant.Tenant) // requiredtenant.formId(String) // requiredformId.source(String) // requiredsource.revision(String) // requiredrevision.build();- Returns:
- A new ImmutableFormUpdatedEvent builder
-
-