All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softlayer.api.service.container.account.historical.Summary Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
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;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy