public FlowAddedBuilder setBufferId(final java.lang.Long value) { if (value != null) { checkBufferIdRange(value); } this._bufferId = value; return this; }
public FlowAddedBuilder setHardTimeout(final java.lang.Integer value) { if (value != null) { checkHardTimeoutRange(value); } this._hardTimeout = value; return this; }
public FlowAddedBuilder setIdleTimeout(final java.lang.Integer value) { if (value != null) { checkIdleTimeoutRange(value); } this._idleTimeout = value; return this; }
public static FlowAdded flowAdded(final Flow sourceFlow) { Preconditions.checkArgument(sourceFlow != null); return new FlowAddedBuilder() .setHardTimeout(Integer.valueOf(sourceFlow.getHardTimeout())) .setIdleTimeout(Integer.valueOf(sourceFlow.getIdleTimeout())) .setCookie(new FlowCookie(BigInteger.valueOf(sourceFlow.getId()))) .setPriority(Integer.valueOf(sourceFlow.getPriority())) .setInstructions(MDFlowMapping.toApplyInstruction(toMDActions(sourceFlow.getActions()))) .setMatch(FromSalConversionsUtils.toMatch(sourceFlow.getMatch())) .setTableId((short)0) .build(); }
@Override public FlowAdded compose(TransactionId tXid) { FlowAddedBuilder newFlow = new FlowAddedBuilder((Flow) input); newFlow.setTransactionId(tXid); newFlow.setFlowRef(input.getFlowRef()); return newFlow.build(); } };
@Override public FlowAdded createNotification(final Flow o, final InstanceIdentifier<Flow> path) { Preconditions.checkArgument(o != null); Preconditions.checkArgument(path != null); final FlowAddedBuilder builder = new FlowAddedBuilder(o); builder.setFlowRef(new FlowRef(path)); builder.setNode(createNodeRef(path)); return builder.build(); }
public FlowAddedBuilder setPriority(final java.lang.Integer value) { if (value != null) { checkPriorityRange(value); } this._priority = value; return this; }
public FlowAddedBuilder setOutGroup(final java.lang.Long value) { if (value != null) { checkOutGroupRange(value); } this._outGroup = value; return this; }
public FlowAddedBuilder setOutPort(final BigInteger value) { if (value != null) { checkOutPortRange(value); } this._outPort = value; return this; }