Package io.dialob.client.spi.event
Class ImmutableFormDeletedEvent.Builder
- java.lang.Object
-
- io.dialob.client.spi.event.ImmutableFormDeletedEvent.Builder
-
- Enclosing class:
- ImmutableFormDeletedEvent
@NotThreadSafe public static final class ImmutableFormDeletedEvent.Builder extends Object
Builds instances of typeImmutableFormDeletedEvent. 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 ImmutableFormDeletedEventbuild()Builds a newImmutableFormDeletedEvent.ImmutableFormDeletedEvent.BuilderformId(String formId)Initializes the value for theformIdattribute.ImmutableFormDeletedEvent.Builderfrom(DistributedEvent instance)Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEventinstance.ImmutableFormDeletedEvent.Builderfrom(DistributedEvent.FormDeletedEvent instance)Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEvent.FormDeletedEventinstance.ImmutableFormDeletedEvent.Builderfrom(DistributedEvent.FormEvent instance)Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEvent.FormEventinstance.ImmutableFormDeletedEvent.Buildersource(String source)Initializes the value for thesourceattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableFormDeletedEvent.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 ImmutableFormDeletedEvent.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
-
from
@CanIgnoreReturnValue public final ImmutableFormDeletedEvent.Builder from(DistributedEvent.FormDeletedEvent instance)
Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEvent.FormDeletedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
formId
@CanIgnoreReturnValue public final ImmutableFormDeletedEvent.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 ImmutableFormDeletedEvent.Builder source(String source)
Initializes the value for thesourceattribute.- Parameters:
source- The value for source- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableFormDeletedEvent build()
Builds a newImmutableFormDeletedEvent.- Returns:
- An immutable instance of FormDeletedEvent
- Throws:
IllegalStateException- if any required attributes are missing
-
-