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

com.softlayer.api.service.container.bandwidth.Usage Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.container.bandwidth;

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;

/**
 * When a customer uses SoftLayer_Account::getBandwidthUsage, this container is used to return their usage information in bytes 
 *
 * @see SoftLayer_Container_Bandwidth_Usage
 */
@ApiType("SoftLayer_Container_Bandwidth_Usage")
public class Usage extends Entity {

    @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;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long hardwareId;

    public Long getHardwareId() {
        return hardwareId;
    }

    public void setHardwareId(Long hardwareId) {
        hardwareIdSpecified = true;
        this.hardwareId = hardwareId;
    }

    protected boolean hardwareIdSpecified;

    public boolean isHardwareIdSpecified() {
        return hardwareIdSpecified;
    }

    public void unsetHardwareId() {
        hardwareId = null;
        hardwareIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected BigDecimal privateInUsage;

    public BigDecimal getPrivateInUsage() {
        return privateInUsage;
    }

    public void setPrivateInUsage(BigDecimal privateInUsage) {
        privateInUsageSpecified = true;
        this.privateInUsage = privateInUsage;
    }

    protected boolean privateInUsageSpecified;

    public boolean isPrivateInUsageSpecified() {
        return privateInUsageSpecified;
    }

    public void unsetPrivateInUsage() {
        privateInUsage = null;
        privateInUsageSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected BigDecimal privateOutUsage;

    public BigDecimal getPrivateOutUsage() {
        return privateOutUsage;
    }

    public void setPrivateOutUsage(BigDecimal privateOutUsage) {
        privateOutUsageSpecified = true;
        this.privateOutUsage = privateOutUsage;
    }

    protected boolean privateOutUsageSpecified;

    public boolean isPrivateOutUsageSpecified() {
        return privateOutUsageSpecified;
    }

    public void unsetPrivateOutUsage() {
        privateOutUsage = null;
        privateOutUsageSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected BigDecimal publicInUsage;

    public BigDecimal getPublicInUsage() {
        return publicInUsage;
    }

    public void setPublicInUsage(BigDecimal publicInUsage) {
        publicInUsageSpecified = true;
        this.publicInUsage = publicInUsage;
    }

    protected boolean publicInUsageSpecified;

    public boolean isPublicInUsageSpecified() {
        return publicInUsageSpecified;
    }

    public void unsetPublicInUsage() {
        publicInUsage = null;
        publicInUsageSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected BigDecimal publicOutUsage;

    public BigDecimal getPublicOutUsage() {
        return publicOutUsage;
    }

    public void setPublicOutUsage(BigDecimal publicOutUsage) {
        publicOutUsageSpecified = true;
        this.publicOutUsage = publicOutUsage;
    }

    protected boolean publicOutUsageSpecified;

    public boolean isPublicOutUsageSpecified() {
        return publicOutUsageSpecified;
    }

    public void unsetPublicOutUsage() {
        publicOutUsage = null;
        publicOutUsageSpecified = false;
    }

    @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 Mask endDate() {
            withLocalProperty("endDate");
            return this;
        }

        public Mask hardwareId() {
            withLocalProperty("hardwareId");
            return this;
        }

        public Mask privateInUsage() {
            withLocalProperty("privateInUsage");
            return this;
        }

        public Mask privateOutUsage() {
            withLocalProperty("privateOutUsage");
            return this;
        }

        public Mask publicInUsage() {
            withLocalProperty("publicInUsage");
            return this;
        }

        public Mask publicOutUsage() {
            withLocalProperty("publicOutUsage");
            return this;
        }

        public Mask startDate() {
            withLocalProperty("startDate");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy