Package io.dialob.executor.command.event
Class ImmutableErrorActiveUpdatedEvent.Builder
- java.lang.Object
-
- io.dialob.executor.command.event.ImmutableErrorActiveUpdatedEvent.Builder
-
- Enclosing class:
- ImmutableErrorActiveUpdatedEvent
@NotThreadSafe public static final class ImmutableErrorActiveUpdatedEvent.Builder extends Object
Builds instances of typeImmutableErrorActiveUpdatedEvent. 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 ImmutableErrorActiveUpdatedEventbuild()Builds a newImmutableErrorActiveUpdatedEvent.ImmutableErrorActiveUpdatedEvent.BuildererrorId(ErrorId errorId)Initializes the value for theerrorIdattribute.ImmutableErrorActiveUpdatedEvent.Builderfrom(ErrorActiveUpdatedEvent instance)Fill a builder with attribute values from the providedio.dialob.executor.command.event.ErrorActiveUpdatedEventinstance.ImmutableErrorActiveUpdatedEvent.Builderfrom(ErrorEvent instance)Fill a builder with attribute values from the providedio.dialob.executor.command.event.ErrorEventinstance.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableErrorActiveUpdatedEvent.Builder from(ErrorEvent instance)
Fill a builder with attribute values from the providedio.dialob.executor.command.event.ErrorEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableErrorActiveUpdatedEvent.Builder from(ErrorActiveUpdatedEvent instance)
Fill a builder with attribute values from the providedio.dialob.executor.command.event.ErrorActiveUpdatedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
errorId
@CanIgnoreReturnValue public final ImmutableErrorActiveUpdatedEvent.Builder errorId(ErrorId errorId)
Initializes the value for theerrorIdattribute.- Parameters:
errorId- The value for errorId- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableErrorActiveUpdatedEvent build()
Builds a newImmutableErrorActiveUpdatedEvent.- Returns:
- An immutable instance of ErrorActiveUpdatedEvent
- Throws:
IllegalStateException- if any required attributes are missing
-
-