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 of
FormTaggedEvent.
Use the builder to create immutable instances:
ImmutableFormTaggedEvent.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFormTaggedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFormTaggedEvent.static ImmutableFormTaggedEventcopyOf(FormTaggedEvent instance) Creates an immutable copy of aFormTaggedEventvalue.booleanThis instance is equal to all instances ofImmutableFormTaggedEventthat have equal attribute values.inthashCode()Computes a hash code from attributes:tenant,formId,source,formName,tagName,refName.toString()Prints the immutable valueFormTaggedEventwith attribute values.final ImmutableFormTaggedEventwithFormId(String value) Copy the current immutable object by setting a value for theformIdattribute.final ImmutableFormTaggedEventwithFormName(String value) Copy the current immutable object by setting a value for theformNameattribute.final ImmutableFormTaggedEventwithRefName(String value) Copy the current immutable object by setting a value for therefNameattribute.final ImmutableFormTaggedEventwithSource(String value) Copy the current immutable object by setting a value for thesourceattribute.final ImmutableFormTaggedEventwithTagName(String value) Copy the current immutable object by setting a value for thetagNameattribute.final ImmutableFormTaggedEventwithTenant(Tenant value) Copy the current immutable object by setting a value for thetenantattribute.
-
Method Details
-
getTenant
- Specified by:
getTenantin interfaceTenantScopedEvent- Returns:
- The value of the
tenantattribute
-
getFormId
-
getSource
- Specified by:
getSourcein interfaceDistributedEvent- Returns:
- The value of the
sourceattribute
-
getFormName
- Specified by:
getFormNamein interfaceFormTaggedEvent- Returns:
- The value of the
formNameattribute
-
getTagName
- Specified by:
getTagNamein interfaceFormTaggedEvent- Returns:
- The value of the
tagNameattribute
-
getRefName
- Specified by:
getRefNamein interfaceFormTaggedEvent- Returns:
- The value of the
refNameattribute
-
withTenant
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
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
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
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
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
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
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
Prints the immutable valueFormTaggedEventwith attribute values. -
copyOf
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
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
-