com.softlayer.api.service.container.graph.Plot 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.graph;
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.plot.Coordinate;
import com.softlayer.api.service.container.metric.data.Type;
import java.util.ArrayList;
import java.util.List;
/**
* @see SoftLayer_Container_Graph_Plot
*/
@ApiType("SoftLayer_Container_Graph_Plot")
public class Plot extends Entity {
@ApiProperty(canBeNullOrNotSet = true)
protected List data;
public List getData() {
if (data == null) {
data = new ArrayList();
}
return data;
}
protected boolean dataSpecified;
public boolean isDataSpecified() {
return dataSpecified;
}
public void unsetData() {
data = null;
dataSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Type metric;
public Type getMetric() {
return metric;
}
public void setMetric(Type metric) {
metricSpecified = true;
this.metric = metric;
}
protected boolean metricSpecified;
public boolean isMetricSpecified() {
return metricSpecified;
}
public void unsetMetric() {
metric = null;
metricSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String unit;
public String getUnit() {
return unit;
}
public void setUnit(String unit) {
unitSpecified = true;
this.unit = unit;
}
protected boolean unitSpecified;
public boolean isUnitSpecified() {
return unitSpecified;
}
public void unsetUnit() {
unit = null;
unitSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.container.graph.plot.Coordinate.Mask data() {
return withSubMask("data", com.softlayer.api.service.container.graph.plot.Coordinate.Mask.class);
}
public com.softlayer.api.service.container.metric.data.Type.Mask metric() {
return withSubMask("metric", com.softlayer.api.service.container.metric.data.Type.Mask.class);
}
public Mask unit() {
withLocalProperty("unit");
return this;
}
}
}