package com.cisco.trex.stateful.api.lowlevel;

/** Java implementation for TRex python sdk ASTFCmdRecv class */
public class ASTFCmdRecv extends ASTFCmd {
  private static final String NAME = "rx";

  /**
   * construct
   *
   * @param minBytes minimal receive bytes
   * @param clear true if clear data
   */
  public ASTFCmdRecv(long minBytes, boolean clear) {
    super();
    fields.addProperty("name", NAME);
    fields.addProperty("min_bytes", minBytes);
    if (clear) {
      fields.addProperty("clear", true);
    }
    stream = true;
  }

  @Override
  public String getName() {
    return NAME;
  }
}

@@ -506,20 +506,21 @@
 clear%22, 
-true
+clear
 );%0A    %7D

Update ASTFCmdRecv.java