Package io.dialob.executor.command
Class ImmutableInitRowGroupItemsCommand.Builder
- java.lang.Object
-
- io.dialob.executor.command.ImmutableInitRowGroupItemsCommand.Builder
-
- Enclosing class:
- ImmutableInitRowGroupItemsCommand
@NotThreadSafe public static final class ImmutableInitRowGroupItemsCommand.Builder extends Object
Builds instances of typeImmutableInitRowGroupItemsCommand. 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 ImmutableInitRowGroupItemsCommand.BuilderaddAllTriggers(Iterable<? extends Trigger<ItemState>> elements)Adds elements totriggerslist.ImmutableInitRowGroupItemsCommand.BuilderaddTriggers(Trigger<ItemState> element)Adds one element totriggerslist.ImmutableInitRowGroupItemsCommand.BuilderaddTriggers(Trigger<ItemState>... elements)Adds elements totriggerslist.ImmutableInitRowGroupItemsCommandbuild()Builds a newImmutableInitRowGroupItemsCommand.ImmutableInitRowGroupItemsCommand.Builderfrom(InitRowGroupItemsCommand instance)Fill a builder with attribute values from the providedInitRowGroupItemsCommandinstance.ImmutableInitRowGroupItemsCommand.BuildertargetId(ItemId targetId)Initializes the value for thetargetIdattribute.ImmutableInitRowGroupItemsCommand.Buildertriggers(Iterable<? extends Trigger<ItemState>> elements)Sets or replaces all elements fortriggerslist.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableInitRowGroupItemsCommand.Builder from(InitRowGroupItemsCommand instance)
Fill a builder with attribute values from the providedInitRowGroupItemsCommandinstance. 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 ImmutableInitRowGroupItemsCommand.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 ImmutableInitRowGroupItemsCommand.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 ImmutableInitRowGroupItemsCommand.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 ImmutableInitRowGroupItemsCommand.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
@CanIgnoreReturnValue public final ImmutableInitRowGroupItemsCommand.Builder targetId(ItemId targetId)
Initializes the value for thetargetIdattribute.- Parameters:
targetId- The value for targetId- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableInitRowGroupItemsCommand build()
Builds a newImmutableInitRowGroupItemsCommand.- Returns:
- An immutable instance of InitRowGroupItemsCommand
- Throws:
IllegalStateException- if any required attributes are missing
-
-