/** * Constructor to create a BsdQueueUpdateNoOpRequest * * @param id Unique request name * @param noOpIn Simulated response object */ public BsdQueueUpdateNoOpRequest(String id, BsdQueueObjectData noOpIn) { super(id, "BsdQueueUpdateNoOpRequest"); if (noOpIn != null) { addInput( "BsdQueue", BsdQueueObjectHelper.toMap(noOpIn, new HashMap(), "BsdQueue").get("BsdQueue")); } }
public void translateToMap() { if (noOpIn != null) { Map mapList = new HashMap(); Map[] mapArray = null; mapList.put("Count", noOpIn.getLength()); mapList.put("TotalCount", noOpIn.getTotalCount()); mapList.put("Index", noOpIn.getIndex()); mapArray = new HashMap[noOpIn.getLength()]; for (int i = 0; i < noOpIn.getLength(); i++) { noOpIn.getArray()[i].resetFlags(true, true); mapArray[i] = BsdQueueObjectHelper.toMap(noOpIn.getArray()[i], null); addInput("BsdQueue", noOpIn); } addInput("BsdQueue", mapList); } }
/** * Retrieves the BsdQueueObjectData passed into the constructor * * @return Simulated response */ public BsdQueueObjectData getOutput() { return BsdQueueObjectHelper.fromMap(outputMap, "BsdQueue"); }
public void translateFromMap() { noOpIn = BsdQueueObjectHelper.fromMapList(inputMap, "BsdQueueList"); }
/** * Retrieves the BsdQueueObjectDataList that results from the BsdQueueGetRecoveryRequest call * * @return BsdQueueObjectDataList resulting from udt call */ public BsdQueueObjectDataList getOutput() { return BsdQueueObjectHelper.fromMapList(outputMap, "BsdQueueList"); }