Package io.dialob.integration.api.event
Class ImmutableFormTaggedEvent.Builder
java.lang.Object
io.dialob.integration.api.event.ImmutableFormTaggedEvent.Builder
- Enclosing class:
- ImmutableFormTaggedEvent
Builds instances of type
ImmutableFormTaggedEvent.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableFormTaggedEvent.Initializes the value for theformIdattribute.Initializes the value for theformNameattribute.from(DistributedEvent instance) Fill a builder with attribute values from the providedio.dialob.integration.api.event.DistributedEventinstance.Fill a builder with attribute values from the providedio.dialob.integration.api.event.FormEventinstance.from(FormTaggedEvent instance) Fill a builder with attribute values from the providedio.dialob.integration.api.event.FormTaggedEventinstance.from(TenantScopedEvent instance) Fill a builder with attribute values from the providedio.dialob.integration.api.event.TenantScopedEventinstance.Initializes the value for therefNameattribute.Initializes the value for thesourceattribute.Initializes the value for thetagNameattribute.Initializes the value for thetenantattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.dialob.integration.api.event.TenantScopedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.integration.api.event.FormTaggedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.integration.api.event.DistributedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.integration.api.event.FormEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
tenant
Initializes the value for thetenantattribute.- Parameters:
tenant- The value for tenant- Returns:
thisbuilder for use in a chained invocation
-
formId
Initializes the value for theformIdattribute.- Parameters:
formId- The value for formId- Returns:
thisbuilder for use in a chained invocation
-
source
Initializes the value for thesourceattribute.- Parameters:
source- The value for source- Returns:
thisbuilder for use in a chained invocation
-
formName
Initializes the value for theformNameattribute.- Parameters:
formName- The value for formName- Returns:
thisbuilder for use in a chained invocation
-
tagName
Initializes the value for thetagNameattribute.- Parameters:
tagName- The value for tagName- Returns:
thisbuilder for use in a chained invocation
-
refName
Initializes the value for therefNameattribute.- Parameters:
refName- The value for refName (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableFormTaggedEvent.- Returns:
- An immutable instance of FormTaggedEvent
- Throws:
IllegalStateException- if any required attributes are missing
-