com.softlayer.api.service.container.Graph Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.container;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.container.graph.Option;
import com.softlayer.api.service.container.graph.Plot;
import com.softlayer.api.service.container.metric.data.Type;
import java.util.ArrayList;
import java.util.List;
/**
* @see SoftLayer_Container_Graph
*/
@ApiType("SoftLayer_Container_Graph")
public class Graph extends Entity {
/**
* base units associated with the graph.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String baseUnit;
public String getBaseUnit() {
return baseUnit;
}
public void setBaseUnit(String baseUnit) {
baseUnitSpecified = true;
this.baseUnit = baseUnit;
}
protected boolean baseUnitSpecified;
public boolean isBaseUnitSpecified() {
return baseUnitSpecified;
}
public void unsetBaseUnit() {
baseUnit = null;
baseUnitSpecified = false;
}
/**
* Graph range end datetime.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String endDatetime;
public String getEndDatetime() {
return endDatetime;
}
public void setEndDatetime(String endDatetime) {
endDatetimeSpecified = true;
this.endDatetime = endDatetime;
}
protected boolean endDatetimeSpecified;
public boolean isEndDatetimeSpecified() {
return endDatetimeSpecified;
}
public void unsetEndDatetime() {
endDatetime = null;
endDatetimeSpecified = false;
}
/**
* The height of the graph image.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long height;
public Long getHeight() {
return height;
}
public void setHeight(Long height) {
heightSpecified = true;
this.height = height;
}
protected boolean heightSpecified;
public boolean isHeightSpecified() {
return heightSpecified;
}
public void unsetHeight() {
height = null;
heightSpecified = false;
}
/**
* The graph image.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected byte[] image;
public byte[] getImage() {
return image;
}
public void setImage(byte[] image) {
imageSpecified = true;
this.image = image;
}
protected boolean imageSpecified;
public boolean isImageSpecified() {
return imageSpecified;
}
public void unsetImage() {
image = null;
imageSpecified = false;
}
/**
* The graph interval in seconds.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long interval;
public Long getInterval() {
return interval;
}
public void setInterval(Long interval) {
intervalSpecified = true;
this.interval = interval;
}
protected boolean intervalSpecified;
public boolean isIntervalSpecified() {
return intervalSpecified;
}
public void unsetInterval() {
interval = null;
intervalSpecified = false;
}
/**
* Metric types associated with the graph.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List metrics;
public List getMetrics() {
if (metrics == null) {
metrics = new ArrayList();
}
return metrics;
}
protected boolean metricsSpecified;
public boolean isMetricsSpecified() {
return metricsSpecified;
}
public void unsetMetrics() {
metrics = null;
metricsSpecified = false;
}
/**
* Indicator to control whether the graph data is normalized.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected byte[] normalizeFlag;
public byte[] getNormalizeFlag() {
return normalizeFlag;
}
public void setNormalizeFlag(byte[] normalizeFlag) {
normalizeFlagSpecified = true;
this.normalizeFlag = normalizeFlag;
}
protected boolean normalizeFlagSpecified;
public boolean isNormalizeFlagSpecified() {
return normalizeFlagSpecified;
}
public void unsetNormalizeFlag() {
normalizeFlag = null;
normalizeFlagSpecified = false;
}
/**
* The options used to control the graph appearance.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List