flowBuilder.setContainerName(null);
flowBuilder.setId(new FlowId(flowId));
flowBuilder.setTableId(tableId);
- flowBuilder.setKey(key);
+ flowBuilder.withKey(key);
flowBuilder.setFlowName("FlowWithGroupInstruction");
return flowBuilder.build();
private static Group createGroup(long groupId) {
GroupBuilder groupBuilder = new GroupBuilder();
GroupKey groupKey = new GroupKey(new GroupId(groupId));
- groupBuilder.setKey(groupKey);
+ groupBuilder.withKey(groupKey);
groupBuilder.setGroupId(groupKey.getGroupId());
groupBuilder.setBarrier(false);
groupBuilder.setGroupName("Foo");
actionBuilder.setAction(new GroupActionCaseBuilder().setGroupAction(groupActionBuilder.build()).build());
actionBuilder.setOrder(1);
- actionBuilder.setKey(new ActionKey(0));
+ actionBuilder.withKey(new ActionKey(0));
List<Action> actionList = new ArrayList<>();
actionList.add(actionBuilder.build());
instructionBuilder.setInstruction(new ApplyActionsCaseBuilder()
.setApplyActions(applyActionsBuilder.build()).build());
instructionBuilder.setOrder(0);
- instructionBuilder.setKey(new InstructionKey(0));
+ instructionBuilder.withKey(new InstructionKey(0));
InstructionsBuilder instructionsBuilder = new InstructionsBuilder();
List<Instruction> instructions = new ArrayList<>();