Package io.dialob.executor.command
Class ImmutableCreateRowGroupFromPrototypeCommand.Builder
- java.lang.Object
-
- io.dialob.executor.command.ImmutableCreateRowGroupFromPrototypeCommand.Builder
-
- Enclosing class:
- ImmutableCreateRowGroupFromPrototypeCommand
@NotThreadSafe public static final class ImmutableCreateRowGroupFromPrototypeCommand.Builder extends Object
Builds instances of typeImmutableCreateRowGroupFromPrototypeCommand. 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
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableCreateRowGroupFromPrototypeCommand.Builder from(CreateRowGroupFromPrototypeCommand instance)
Fill a builder with attribute values from the providedCreateRowGroupFromPrototypeCommandinstance. 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 ImmutableCreateRowGroupFromPrototypeCommand.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 ImmutableCreateRowGroupFromPrototypeCommand.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 ImmutableCreateRowGroupFromPrototypeCommand.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 ImmutableCreateRowGroupFromPrototypeCommand.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
-
itemPrototypeId
@CanIgnoreReturnValue public final ImmutableCreateRowGroupFromPrototypeCommand.Builder itemPrototypeId(ItemId itemPrototypeId)
Initializes the value for theitemPrototypeIdattribute.- Parameters:
itemPrototypeId- The value for itemPrototypeId- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableCreateRowGroupFromPrototypeCommand build()
Builds a newImmutableCreateRowGroupFromPrototypeCommand.- Returns:
- An immutable instance of CreateRowGroupFromPrototypeCommand
- Throws:
IllegalStateException- if any required attributes are missing
-
-