Package io.dialob.client.spi.event
Class ImmutableFormUpdatedEvent.Builder
- java.lang.Object
-
- io.dialob.client.spi.event.ImmutableFormUpdatedEvent.Builder
-
- Enclosing class:
- ImmutableFormUpdatedEvent
@NotThreadSafe public static final class ImmutableFormUpdatedEvent.Builder extends Object
Builds instances of typeImmutableFormUpdatedEvent. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableFormUpdatedEventbuild()Builds a newImmutableFormUpdatedEvent.ImmutableFormUpdatedEvent.BuilderformId(String formId)Initializes the value for theformIdattribute.ImmutableFormUpdatedEvent.Builderfrom(DistributedEvent instance)Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEventinstance.ImmutableFormUpdatedEvent.Builderfrom(DistributedEvent.FormEvent instance)Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEvent.FormEventinstance.ImmutableFormUpdatedEvent.Builderfrom(DistributedEvent.FormUpdatedEvent instance)Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEvent.FormUpdatedEventinstance.ImmutableFormUpdatedEvent.Builderrevision(String revision)Initializes the value for therevisionattribute.ImmutableFormUpdatedEvent.Buildersource(String source)Initializes the value for thesourceattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableFormUpdatedEvent.Builder from(DistributedEvent instance)
Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableFormUpdatedEvent.Builder from(DistributedEvent.FormUpdatedEvent instance)
Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEvent.FormUpdatedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableFormUpdatedEvent.Builder from(DistributedEvent.FormEvent instance)
Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEvent.FormEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
formId
@CanIgnoreReturnValue public final ImmutableFormUpdatedEvent.Builder formId(String formId)
Initializes the value for theformIdattribute.- Parameters:
formId- The value for formId- Returns:
thisbuilder for use in a chained invocation
-
source
@CanIgnoreReturnValue public final ImmutableFormUpdatedEvent.Builder source(String source)
Initializes the value for thesourceattribute.- Parameters:
source- The value for source- Returns:
thisbuilder for use in a chained invocation
-
revision
@CanIgnoreReturnValue public final ImmutableFormUpdatedEvent.Builder revision(String revision)
Initializes the value for therevisionattribute.- Parameters:
revision- The value for revision- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableFormUpdatedEvent build()
Builds a newImmutableFormUpdatedEvent.- Returns:
- An immutable instance of FormUpdatedEvent
- Throws:
IllegalStateException- if any required attributes are missing
-
-