Package io.dialob.integration.api.event
Class ImmutableFormUpdatedEvent.Builder
java.lang.Object
io.dialob.integration.api.event.ImmutableFormUpdatedEvent.Builder
- Enclosing class:
- ImmutableFormUpdatedEvent
Builds instances of type
ImmutableFormUpdatedEvent.
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 newImmutableFormUpdatedEvent.Initializes the value for theformIdattribute.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(FormUpdatedEvent instance) Fill a builder with attribute values from the providedio.dialob.integration.api.event.FormUpdatedEventinstance.from(TenantScopedEvent instance) Fill a builder with attribute values from the providedio.dialob.integration.api.event.TenantScopedEventinstance.Initializes the value for therevisionattribute.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.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.FormUpdatedEventinstance.- 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
-
revision
Initializes the value for therevisionattribute.- Parameters:
revision- The value for revision- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableFormUpdatedEvent.- Returns:
- An immutable instance of FormUpdatedEvent
- Throws:
IllegalStateException- if any required attributes are missing
-