com.softlayer.api.service.metric.tracking.object.Data 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
The newest version!
package com.softlayer.api.service.metric.tracking.object;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import java.math.BigDecimal;
import java.util.GregorianCalendar;
/**
* SoftLayer_Metric_Tracking_Object_Data models an individual unit of data tracked by a SoftLayer tracking object, including the type of data polled, the date it was polled at, and the counter value that was measured at polling time.
*
* @see SoftLayer_Metric_Tracking_Object_Data
*/
@ApiType("SoftLayer_Metric_Tracking_Object_Data")
public class Data extends Entity {
/**
* The value stored for a data record.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected BigDecimal counter;
public BigDecimal getCounter() {
return counter;
}
public void setCounter(BigDecimal counter) {
counterSpecified = true;
this.counter = counter;
}
protected boolean counterSpecified;
public boolean isCounterSpecified() {
return counterSpecified;
}
public void unsetCounter() {
counter = null;
counterSpecified = false;
}
/**
* The time a data record was stored.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar dateTime;
public GregorianCalendar getDateTime() {
return dateTime;
}
public void setDateTime(GregorianCalendar dateTime) {
dateTimeSpecified = true;
this.dateTime = dateTime;
}
protected boolean dateTimeSpecified;
public boolean isDateTimeSpecified() {
return dateTimeSpecified;
}
public void unsetDateTime() {
dateTime = null;
dateTimeSpecified = false;
}
/**
* The type of data held in a record.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String type;
public String getType() {
return type;
}
public void setType(String type) {
typeSpecified = true;
this.type = type;
}
protected boolean typeSpecified;
public boolean isTypeSpecified() {
return typeSpecified;
}
public void unsetType() {
type = null;
typeSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask counter() {
withLocalProperty("counter");
return this;
}
public Mask dateTime() {
withLocalProperty("dateTime");
return this;
}
public Mask type() {
withLocalProperty("type");
return this;
}
}
}