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

com.softlayer.api.service.metric.tracking.object.HardwareServer Maven / Gradle / Ivy

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.hardware.Server;
import com.softlayer.api.service.metric.tracking.object.Abstract;
import com.softlayer.api.service.network.bandwidth.Usage;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * SoftLayer_Metric_Tracking_Object_HardwareServer models tracking objects specific to physical hardware and the data that are recorded by those servers. 
 *
 * @see SoftLayer_Metric_Tracking_Object_HardwareServer
 */
@ApiType("SoftLayer_Metric_Tracking_Object_HardwareServer")
public class HardwareServer extends Abstract {

    /**
     * The raw bandwidth usage data for the current billing cycle. One object is returned for each network this server is attached to.
     */
    @ApiProperty
    protected List billingCycleBandwidthUsage;

    public List getBillingCycleBandwidthUsage() {
        if (billingCycleBandwidthUsage == null) {
            billingCycleBandwidthUsage = new ArrayList();
        }
        return billingCycleBandwidthUsage;
    }

    /**
     * The raw bandwidth usage data for the current billing cycle. One object is returned for each network this server is attached to.
     */
    @ApiProperty
    protected List billingCyclePrivateBandwidthUsage;

    public List getBillingCyclePrivateBandwidthUsage() {
        if (billingCyclePrivateBandwidthUsage == null) {
            billingCyclePrivateBandwidthUsage = new ArrayList();
        }
        return billingCyclePrivateBandwidthUsage;
    }

    /**
     * The total private inbound bandwidth for this item's resource for the current billing cycle.
     */
    @ApiProperty
    protected BigDecimal billingCyclePrivateUsageIn;

    public BigDecimal getBillingCyclePrivateUsageIn() {
        return billingCyclePrivateUsageIn;
    }

    public void setBillingCyclePrivateUsageIn(BigDecimal billingCyclePrivateUsageIn) {
        this.billingCyclePrivateUsageIn = billingCyclePrivateUsageIn;
    }

    /**
     * The total private outbound bandwidth for this item's resource for the current billing cycle.
     */
    @ApiProperty
    protected BigDecimal billingCyclePrivateUsageOut;

    public BigDecimal getBillingCyclePrivateUsageOut() {
        return billingCyclePrivateUsageOut;
    }

    public void setBillingCyclePrivateUsageOut(BigDecimal billingCyclePrivateUsageOut) {
        this.billingCyclePrivateUsageOut = billingCyclePrivateUsageOut;
    }

    /**
     * The total private bandwidth for this item's resource for the current billing cycle.
     */
    @ApiProperty
    protected Long billingCyclePrivateUsageTotal;

    public Long getBillingCyclePrivateUsageTotal() {
        return billingCyclePrivateUsageTotal;
    }

    public void setBillingCyclePrivateUsageTotal(Long billingCyclePrivateUsageTotal) {
        this.billingCyclePrivateUsageTotal = billingCyclePrivateUsageTotal;
    }

    /**
     * The raw public bandwidth usage data for the current billing cycle. One object is returned for each network this server is attached to.
     */
    @ApiProperty
    protected Usage billingCyclePublicBandwidthUsage;

    public Usage getBillingCyclePublicBandwidthUsage() {
        return billingCyclePublicBandwidthUsage;
    }

    public void setBillingCyclePublicBandwidthUsage(Usage billingCyclePublicBandwidthUsage) {
        this.billingCyclePublicBandwidthUsage = billingCyclePublicBandwidthUsage;
    }

    /**
     * The total public inbound bandwidth for this item's resource for the current billing cycle.
     */
    @ApiProperty
    protected BigDecimal billingCyclePublicUsageIn;

    public BigDecimal getBillingCyclePublicUsageIn() {
        return billingCyclePublicUsageIn;
    }

    public void setBillingCyclePublicUsageIn(BigDecimal billingCyclePublicUsageIn) {
        this.billingCyclePublicUsageIn = billingCyclePublicUsageIn;
    }

    /**
     * The total public outbound bandwidth for this item's resource for the current billing cycle.
     */
    @ApiProperty
    protected BigDecimal billingCyclePublicUsageOut;

    public BigDecimal getBillingCyclePublicUsageOut() {
        return billingCyclePublicUsageOut;
    }

    public void setBillingCyclePublicUsageOut(BigDecimal billingCyclePublicUsageOut) {
        this.billingCyclePublicUsageOut = billingCyclePublicUsageOut;
    }

    /**
     * The total public bandwidth for this item's resource for the current billing cycle.
     */
    @ApiProperty
    protected Long billingCyclePublicUsageTotal;

    public Long getBillingCyclePublicUsageTotal() {
        return billingCyclePublicUsageTotal;
    }

    public void setBillingCyclePublicUsageTotal(Long billingCyclePublicUsageTotal) {
        this.billingCyclePublicUsageTotal = billingCyclePublicUsageTotal;
    }

    /**
     * The server that this tracking object tracks.
     */
    @ApiProperty
    protected Server resource;

    public Server getResource() {
        return resource;
    }

    public void setResource(Server resource) {
        this.resource = resource;
    }

    /**
     * A count of the raw bandwidth usage data for the current billing cycle. One object is returned for each network this server is attached to.
     */
    @ApiProperty
    protected Long billingCycleBandwidthUsageCount;

    public Long getBillingCycleBandwidthUsageCount() {
        return billingCycleBandwidthUsageCount;
    }

    public void setBillingCycleBandwidthUsageCount(Long billingCycleBandwidthUsageCount) {
        this.billingCycleBandwidthUsageCount = billingCycleBandwidthUsageCount;
    }

    /**
     * A count of the raw bandwidth usage data for the current billing cycle. One object is returned for each network this server is attached to.
     */
    @ApiProperty
    protected Long billingCyclePrivateBandwidthUsageCount;

    public Long getBillingCyclePrivateBandwidthUsageCount() {
        return billingCyclePrivateBandwidthUsageCount;
    }

    public void setBillingCyclePrivateBandwidthUsageCount(Long billingCyclePrivateBandwidthUsageCount) {
        this.billingCyclePrivateBandwidthUsageCount = billingCyclePrivateBandwidthUsageCount;
    }

    public static class Mask extends Abstract.Mask {

        public com.softlayer.api.service.network.bandwidth.Usage.Mask billingCycleBandwidthUsage() {
            return withSubMask("billingCycleBandwidthUsage", com.softlayer.api.service.network.bandwidth.Usage.Mask.class);
        }

        public com.softlayer.api.service.network.bandwidth.Usage.Mask billingCyclePrivateBandwidthUsage() {
            return withSubMask("billingCyclePrivateBandwidthUsage", com.softlayer.api.service.network.bandwidth.Usage.Mask.class);
        }

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

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

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

        public com.softlayer.api.service.network.bandwidth.Usage.Mask billingCyclePublicBandwidthUsage() {
            return withSubMask("billingCyclePublicBandwidthUsage", com.softlayer.api.service.network.bandwidth.Usage.Mask.class);
        }

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

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

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

        public com.softlayer.api.service.hardware.Server.Mask resource() {
            return withSubMask("resource", com.softlayer.api.service.hardware.Server.Mask.class);
        }

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy