Package io.dialob.client.spi.event
Class ImmutableFormTaggedEvent.Builder
- java.lang.Object
-
- io.dialob.client.spi.event.ImmutableFormTaggedEvent.Builder
-
- Enclosing class:
- ImmutableFormTaggedEvent
@NotThreadSafe public static final class ImmutableFormTaggedEvent.Builder extends Object
Builds instances of typeImmutableFormTaggedEvent. 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 ImmutableFormTaggedEventbuild()Builds a newImmutableFormTaggedEvent.ImmutableFormTaggedEvent.BuilderformId(String formId)Initializes the value for theformIdattribute.ImmutableFormTaggedEvent.BuilderformName(String formName)Initializes the value for theformNameattribute.ImmutableFormTaggedEvent.Builderfrom(DistributedEvent instance)Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEventinstance.ImmutableFormTaggedEvent.Builderfrom(DistributedEvent.FormEvent instance)Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEvent.FormEventinstance.ImmutableFormTaggedEvent.Builderfrom(DistributedEvent.FormTaggedEvent instance)Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEvent.FormTaggedEventinstance.ImmutableFormTaggedEvent.BuilderrefName(String refName)Initializes the value for therefNameattribute.ImmutableFormTaggedEvent.Buildersource(String source)Initializes the value for thesourceattribute.ImmutableFormTaggedEvent.BuildertagName(String tagName)Initializes the value for thetagNameattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableFormTaggedEvent.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 ImmutableFormTaggedEvent.Builder from(DistributedEvent.FormTaggedEvent instance)
Fill a builder with attribute values from the providedio.dialob.client.spi.event.DistributedEvent.FormTaggedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableFormTaggedEvent.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 ImmutableFormTaggedEvent.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 ImmutableFormTaggedEvent.Builder source(String source)
Initializes the value for thesourceattribute.- Parameters:
source- The value for source- Returns:
thisbuilder for use in a chained invocation
-
formName
@CanIgnoreReturnValue public final ImmutableFormTaggedEvent.Builder formName(String formName)
Initializes the value for theformNameattribute.- Parameters:
formName- The value for formName- Returns:
thisbuilder for use in a chained invocation
-
tagName
@CanIgnoreReturnValue public final ImmutableFormTaggedEvent.Builder tagName(String tagName)
Initializes the value for thetagNameattribute.- Parameters:
tagName- The value for tagName- Returns:
thisbuilder for use in a chained invocation
-
refName
@CanIgnoreReturnValue public final ImmutableFormTaggedEvent.Builder refName(@Nullable String refName)
Initializes the value for therefNameattribute.- Parameters:
refName- The value for refName (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableFormTaggedEvent build()
Builds a newImmutableFormTaggedEvent.- Returns:
- An immutable instance of FormTaggedEvent
- Throws:
IllegalStateException- if any required attributes are missing
-
-