Package io.dialob.executor.command.event
Class ImmutableStatusUpdatedEvent.Builder
- java.lang.Object
-
- io.dialob.executor.command.event.ImmutableStatusUpdatedEvent.Builder
-
- Enclosing class:
- ImmutableStatusUpdatedEvent
@NotThreadSafe public static final class ImmutableStatusUpdatedEvent.Builder extends Object
Builds instances of typeImmutableStatusUpdatedEvent. 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 ImmutableStatusUpdatedEventbuild()Builds a newImmutableStatusUpdatedEvent.ImmutableStatusUpdatedEvent.Builderfrom(AttributeEvent instance)Fill a builder with attribute values from the providedio.dialob.executor.command.event.AttributeEventinstance.ImmutableStatusUpdatedEvent.Builderfrom(StatusUpdatedEvent instance)Fill a builder with attribute values from the providedio.dialob.executor.command.event.StatusUpdatedEventinstance.ImmutableStatusUpdatedEvent.Buildertarget(TargetEvent target)Initializes the value for thetargetattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableStatusUpdatedEvent.Builder from(AttributeEvent instance)
Fill a builder with attribute values from the providedio.dialob.executor.command.event.AttributeEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableStatusUpdatedEvent.Builder from(StatusUpdatedEvent instance)
Fill a builder with attribute values from the providedio.dialob.executor.command.event.StatusUpdatedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
target
@CanIgnoreReturnValue public final ImmutableStatusUpdatedEvent.Builder target(TargetEvent target)
Initializes the value for thetargetattribute.- Parameters:
target- The value for target- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableStatusUpdatedEvent build()
Builds a newImmutableStatusUpdatedEvent.- Returns:
- An immutable instance of StatusUpdatedEvent
- Throws:
IllegalStateException- if any required attributes are missing
-
-