com.jelastic.api.system.statistic.persistence.AbstractStatEntity Maven / Gradle / Ivy
The newest version!
/*Server class MD5: 9e03ecfd2a7151709d80d09f9baa22eb*/
package com.jelastic.api.system.statistic.persistence;
import org.json.JSONException;
import org.json.JSONObject;
/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
*/
public abstract class AbstractStatEntity {
private String envId;
public String getEnvId() {
return envId;
}
public void setEnvId(String envId) {
this.envId = envId;
}
public JSONObject _toJSON() throws JSONException {
JSONObject json = new JSONObject();
if (envId != null) {
json.put("nodeid", envId);
}
return json;
}
public AbstractStatEntity _fromJSON(JSONObject json) throws JSONException {
if (json.has("nodeid")) {
envId = json.getString("nodeid");
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy