Package io.dialob.integration.api.event
Class ImmutableFormTaggedEvent
- java.lang.Object
-
- io.dialob.integration.api.event.ImmutableFormTaggedEvent
-
- All Implemented Interfaces:
DistributedEvent,Event,FormEvent,FormTaggedEvent,TenantScopedEvent,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableFormTaggedEvent extends Object implements FormTaggedEvent
Immutable implementation ofFormTaggedEvent.Use the builder to create immutable instances:
ImmutableFormTaggedEvent.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormTaggedEvent.BuilderBuilds instances of typeImmutableFormTaggedEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormTaggedEvent.Builderbuilder()Creates a builder forImmutableFormTaggedEvent.static ImmutableFormTaggedEventcopyOf(FormTaggedEvent instance)Creates an immutable copy of aFormTaggedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormTaggedEventthat have equal attribute values.StringgetFormId()StringgetFormName()StringgetRefName()StringgetSource()StringgetTagName()TenantgetTenant()inthashCode()Computes a hash code from attributes:tenant,formId,source,formName,tagName,refName.StringtoString()Prints the immutable valueFormTaggedEventwith attribute values.ImmutableFormTaggedEventwithFormId(String value)Copy the current immutable object by setting a value for theformIdattribute.ImmutableFormTaggedEventwithFormName(String value)Copy the current immutable object by setting a value for theformNameattribute.ImmutableFormTaggedEventwithRefName(String value)Copy the current immutable object by setting a value for therefNameattribute.ImmutableFormTaggedEventwithSource(String value)Copy the current immutable object by setting a value for thesourceattribute.ImmutableFormTaggedEventwithTagName(String value)Copy the current immutable object by setting a value for thetagNameattribute.ImmutableFormTaggedEventwithTenant(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
-
getFormName
public String getFormName()
- Specified by:
getFormNamein interfaceFormTaggedEvent- Returns:
- The value of the
formNameattribute
-
getTagName
public String getTagName()
- Specified by:
getTagNamein interfaceFormTaggedEvent- Returns:
- The value of the
tagNameattribute
-
getRefName
@Nullable public String getRefName()
- Specified by:
getRefNamein interfaceFormTaggedEvent- Returns:
- The value of the
refNameattribute
-
withTenant
public final ImmutableFormTaggedEvent 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 ImmutableFormTaggedEvent 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 ImmutableFormTaggedEvent 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
-
withFormName
public final ImmutableFormTaggedEvent withFormName(String value)
Copy the current immutable object by setting a value for theformNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for formName- Returns:
- A modified copy of the
thisobject
-
withTagName
public final ImmutableFormTaggedEvent withTagName(String value)
Copy the current immutable object by setting a value for thetagNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tagName- Returns:
- A modified copy of the
thisobject
-
withRefName
public final ImmutableFormTaggedEvent withRefName(@Nullable String value)
Copy the current immutable object by setting a value for therefNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for refName (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableFormTaggedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:tenant,formId,source,formName,tagName,refName.
-
toString
public String toString()
Prints the immutable valueFormTaggedEventwith attribute values.
-
copyOf
public static ImmutableFormTaggedEvent copyOf(FormTaggedEvent instance)
Creates an immutable copy of aFormTaggedEventvalue. 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 FormTaggedEvent instance
-
builder
public static ImmutableFormTaggedEvent.Builder builder()
Creates a builder forImmutableFormTaggedEvent.ImmutableFormTaggedEvent.builder() .tenant(io.dialob.security.tenant.Tenant) // requiredtenant.formId(String) // requiredformId.source(String) // requiredsource.formName(String) // requiredformName.tagName(String) // requiredtagName.refName(String | null) // nullablerefName.build();- Returns:
- A new ImmutableFormTaggedEvent builder
-
-