com.softlayer.api.service.metric.tracking.object.VirtualDedicatedRack 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.metric.tracking.object;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.metric.tracking.object.Abstract;
import com.softlayer.api.service.network.bandwidth.Usage;
import com.softlayer.api.service.network.bandwidth.version1.Allotment;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* SoftLayer_Metric_Tracking_Object_VirtualDedicatedRack models tracking objects specific to virtual dedicated racks. Bandwidth Pooling aggregate the bandwidth used by multiple servers within the rack.
*
* @see SoftLayer_Metric_Tracking_Object_VirtualDedicatedRack
*/
@ApiType("SoftLayer_Metric_Tracking_Object_VirtualDedicatedRack")
public class VirtualDedicatedRack 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 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 virtual rack that this tracking object tracks.
*/
@ApiProperty
protected Allotment resource;
public Allotment getResource() {
return resource;
}
public void setResource(Allotment 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.network.bandwidth.version1.Allotment.Mask resource() {
return withSubMask("resource", com.softlayer.api.service.network.bandwidth.version1.Allotment.Mask.class);
}
public Mask billingCycleBandwidthUsageCount() {
withLocalProperty("billingCycleBandwidthUsageCount");
return this;
}
public Mask billingCyclePrivateBandwidthUsageCount() {
withLocalProperty("billingCyclePrivateBandwidthUsageCount");
return this;
}
}
}