Class ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder
java.lang.Object
io.dialob.session.engine.session.command.ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder
- Enclosing class:
ImmutableCreateRowGroupItemsFromPrototypeCommand
@Generated(from="CreateRowGroupItemsFromPrototypeCommand",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder
extends Object
Builds instances of type
ImmutableCreateRowGroupItemsFromPrototypeCommand.
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<ItemStates>> elements) Adds elements totriggerslist.addTriggers(Trigger<ItemStates> element) Adds one element totriggerslist.addTriggers(Trigger<ItemStates>... elements) Adds elements totriggerslist.build()Builds a newImmutableCreateRowGroupItemsFromPrototypeCommand.from(CreateRowGroupItemsFromPrototypeCommand instance) Fill a builder with attribute values from the providedCreateRowGroupItemsFromPrototypeCommandinstance.itemPrototypeId(ItemId itemPrototypeId) Initializes the value for theitemPrototypeIdattribute.Initializes the value for thetargetIdattribute.triggers(Iterable<? extends Trigger<ItemStates>> elements) Sets or replaces all elements fortriggerslist.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder from(CreateRowGroupItemsFromPrototypeCommand instance) Fill a builder with attribute values from the providedCreateRowGroupItemsFromPrototypeCommandinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addTriggers
@CanIgnoreReturnValue public final ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder addTriggers(Trigger<ItemStates> element) Adds one element totriggerslist.- Parameters:
element- A triggers element- Returns:
thisbuilder for use in a chained invocation
-
addTriggers
@CanIgnoreReturnValue @SafeVarargs public final ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder addTriggers(Trigger<ItemStates>... elements) Adds elements totriggerslist.- Parameters:
elements- An array of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
triggers
@CanIgnoreReturnValue public final ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder triggers(Iterable<? extends Trigger<ItemStates>> 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 ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder addAllTriggers(Iterable<? extends Trigger<ItemStates>> elements) Adds elements totriggerslist.- Parameters:
elements- An iterable of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
targetId
@CanIgnoreReturnValue public final ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder targetId(ItemId targetId) Initializes the value for thetargetIdattribute.- Parameters:
targetId- The value for targetId- Returns:
thisbuilder for use in a chained invocation
-
itemPrototypeId
@CanIgnoreReturnValue public final ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder itemPrototypeId(ItemId itemPrototypeId) Initializes the value for theitemPrototypeIdattribute.- Parameters:
itemPrototypeId- The value for itemPrototypeId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableCreateRowGroupItemsFromPrototypeCommand.- Returns:
- An immutable instance of CreateRowGroupItemsFromPrototypeCommand
- Throws:
IllegalStateException- if any required attributes are missing
-