com.softlayer.api.service.container.account.historical.Summary 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.account.historical;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.container.account.historical.summary.Detail;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
/**
* Historical Summary Container for account resource details
*
* @see SoftLayer_Container_Account_Historical_Summary
*/
@ApiType("SoftLayer_Container_Account_Historical_Summary")
public class Summary extends Entity {
/**
* Array of server uptime detail containers
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List details;
public List getDetails() {
if (details == null) {
details = new ArrayList();
}
return details;
}
protected boolean detailsSpecified;
public boolean isDetailsSpecified() {
return detailsSpecified;
}
public void unsetDetails() {
details = null;
detailsSpecified = false;
}
/**
* The maximum date included in the summary.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar endDate;
public GregorianCalendar getEndDate() {
return endDate;
}
public void setEndDate(GregorianCalendar endDate) {
endDateSpecified = true;
this.endDate = endDate;
}
protected boolean endDateSpecified;
public boolean isEndDateSpecified() {
return endDateSpecified;
}
public void unsetEndDate() {
endDate = null;
endDateSpecified = false;
}
/**
* The minimum date included in the summary.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar startDate;
public GregorianCalendar getStartDate() {
return startDate;
}
public void setStartDate(GregorianCalendar startDate) {
startDateSpecified = true;
this.startDate = startDate;
}
protected boolean startDateSpecified;
public boolean isStartDateSpecified() {
return startDateSpecified;
}
public void unsetStartDate() {
startDate = null;
startDateSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.container.account.historical.summary.Detail.Mask details() {
return withSubMask("details", com.softlayer.api.service.container.account.historical.summary.Detail.Mask.class);
}
public Mask endDate() {
withLocalProperty("endDate");
return this;
}
public Mask startDate() {
withLocalProperty("startDate");
return this;
}
}
}