com.cisco.trex.stateful.api.lowlevel.ASTFIpGenGlobal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trex-java-sdk Show documentation
Show all versions of trex-java-sdk Show documentation
Java client SDK provides an implementation for TRex RPC APIs
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;
}
}