Class ImmutableErrorActiveUpdatedEvent.Builder
java.lang.Object
io.dialob.session.engine.session.command.event.ImmutableErrorActiveUpdatedEvent.Builder
- Enclosing class:
ImmutableErrorActiveUpdatedEvent
@Generated(from="ErrorActiveUpdatedEvent",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableErrorActiveUpdatedEvent.Builder
extends Object
Builds instances of type
ImmutableErrorActiveUpdatedEvent.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableErrorActiveUpdatedEvent.Initializes the value for theerrorIdattribute.from(ErrorActiveUpdatedEvent instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.event.ErrorActiveUpdatedEventinstance.from(ErrorEvent instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.event.ErrorEventinstance.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableErrorActiveUpdatedEvent.Builder from(ErrorActiveUpdatedEvent instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.event.ErrorActiveUpdatedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableErrorActiveUpdatedEvent.Builder from(ErrorEvent instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.event.ErrorEventinstance.- 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
Builds a newImmutableErrorActiveUpdatedEvent.- Returns:
- An immutable instance of ErrorActiveUpdatedEvent
- Throws:
IllegalStateException- if any required attributes are missing
-