Class ImmutableUpdateRequiredCommand.Builder
java.lang.Object
io.dialob.session.engine.session.command.ImmutableUpdateRequiredCommand.Builder
- Enclosing class:
ImmutableUpdateRequiredCommand
@Generated(from="UpdateRequiredCommand",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableUpdateRequiredCommand.Builder
extends Object
Builds instances of type
ImmutableUpdateRequiredCommand.
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 TypeMethodDescriptionaddAllTriggers(Iterable<? extends Trigger<ItemState>> elements) Adds elements totriggerslist.addTriggers(Trigger<ItemState> element) Adds one element totriggerslist.addTriggers(Trigger<ItemState>... elements) Adds elements totriggerslist.build()Builds a newImmutableUpdateRequiredCommand.expression(Expression expression) Initializes the value for theexpressionattribute.from(AbstractUpdateBooleanAttributeCommand instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.AbstractUpdateBooleanAttributeCommandinstance.from(UpdateRequiredCommand instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.UpdateRequiredCommandinstance.Initializes the value for thetargetIdattribute.Sets or replaces all elements fortriggerslist.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableUpdateRequiredCommand.Builder from(UpdateRequiredCommand instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.UpdateRequiredCommandinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableUpdateRequiredCommand.Builder from(AbstractUpdateBooleanAttributeCommand instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.AbstractUpdateBooleanAttributeCommandinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addTriggers
@CanIgnoreReturnValue public final ImmutableUpdateRequiredCommand.Builder addTriggers(Trigger<ItemState> element) Adds one element totriggerslist.- Parameters:
element- A triggers element- Returns:
thisbuilder for use in a chained invocation
-
addTriggers
@CanIgnoreReturnValue @SafeVarargs public final ImmutableUpdateRequiredCommand.Builder addTriggers(Trigger<ItemState>... elements) Adds elements totriggerslist.- Parameters:
elements- An array of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
triggers
@CanIgnoreReturnValue public final ImmutableUpdateRequiredCommand.Builder triggers(Iterable<? extends Trigger<ItemState>> elements) Sets or replaces all elements fortriggerslist.- Parameters:
elements- An iterable of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
addAllTriggers
@CanIgnoreReturnValue public final ImmutableUpdateRequiredCommand.Builder addAllTriggers(Iterable<? extends Trigger<ItemState>> elements) Adds elements totriggerslist.- Parameters:
elements- An iterable of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
targetId
Initializes the value for thetargetIdattribute.- Parameters:
targetId- The value for targetId- Returns:
thisbuilder for use in a chained invocation
-
expression
@CanIgnoreReturnValue public final ImmutableUpdateRequiredCommand.Builder expression(Expression expression) Initializes the value for theexpressionattribute.- Parameters:
expression- The value for expression- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableUpdateRequiredCommand.- Returns:
- An immutable instance of UpdateRequiredCommand
- Throws:
IllegalStateException- if any required attributes are missing
-