Package io.dialob.integration.api.event
Class ImmutableFormDeletedEvent.Builder
java.lang.Object
io.dialob.integration.api.event.ImmutableFormDeletedEvent.Builder
- Enclosing class:
- ImmutableFormDeletedEvent
Builds instances of type
ImmutableFormDeletedEvent.
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 newImmutableFormDeletedEvent.Initializes the value for theformIdattribute.from(DistributedEvent instance) Fill a builder with attribute values from the providedio.dialob.integration.api.event.DistributedEventinstance.from(FormDeletedEvent instance) Fill a builder with attribute values from the providedio.dialob.integration.api.event.FormDeletedEventinstance.Fill a builder with attribute values from the providedio.dialob.integration.api.event.FormEventinstance.from(TenantScopedEvent instance) Fill a builder with attribute values from the providedio.dialob.integration.api.event.TenantScopedEventinstance.Initializes the value for thesourceattribute.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.FormDeletedEventinstance.- 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
-
build
Builds a newImmutableFormDeletedEvent.- Returns:
- An immutable instance of FormDeletedEvent
- Throws:
IllegalStateException- if any required attributes are missing
-