All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cisco.trex.stateful.api.lowlevel.ASTFIpGenGlobal Maven / Gradle / Ivy

There is a newer version: 1.69
Show newest version
package com.cisco.trex.stateful.api.lowlevel;

import com.google.gson.JsonObject;

/** Java implementation for TRex python sdk ASTFIpGenGlobal class */
public class ASTFIpGenGlobal {
  private static final String DEFAULT_IP_OFFSET = "1.0.0.0";
  private JsonObject fields = new JsonObject();
  private String ipOffset;

  /** default construct by using default ipOffset="1.0.0.0" */
  public ASTFIpGenGlobal() {
    this(DEFAULT_IP_OFFSET);
  }
  /**
   * construct
   *
   * @param ipOffset
   */
  public ASTFIpGenGlobal(String ipOffset) {
    fields.addProperty("ip_offset", ipOffset);
    this.ipOffset = ipOffset;
  }

  /**
   * getIpOffset
   *
   * @return ipOffset
   */
  public String getIpOffset() {
    return ipOffset;
  }
  /**
   * to json format
   *
   * @return json
   */
  public JsonObject toJson() {
    return fields;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy