com.softlayer.api.service.billing.item.virtual.dedicated.Rack 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
The newest version!
package com.softlayer.api.service.billing.item.virtual.dedicated;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.billing.Item;
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;
/**
* A SoftLayer_Billing_Item_Virtual_Dedicated_Rack data type models the billing information for a single bandwidth pooling. Bandwidth pooling members share their public bandwidth allocations, and incur overage charges instead of the overages on individual rack members. Virtual rack billing items are the parent items for all of it's rack membership billing items.
*
* @see SoftLayer_Billing_Item_Virtual_Dedicated_Rack
*/
@ApiType("SoftLayer_Billing_Item_Virtual_Dedicated_Rack")
public class Rack extends Item {
/**
* The raw bandwidth usage data for the current billing cycle. One object is returned for each network a virtual rack is attached to.
*/
@ApiProperty
protected List billingCycleBandwidthUsage;
public List getBillingCycleBandwidthUsage() {
if (billingCycleBandwidthUsage == null) {
billingCycleBandwidthUsage = new ArrayList();
}
return billingCycleBandwidthUsage;
}
/**
* The raw private bandwidth usage data for the current billing cycle.
*/
@ApiProperty
protected List billingCyclePrivateBandwidthUsage;
public List getBillingCyclePrivateBandwidthUsage() {
if (billingCyclePrivateBandwidthUsage == null) {
billingCyclePrivateBandwidthUsage = new ArrayList();
}
return billingCyclePrivateBandwidthUsage;
}
/**
* The total private network inbound bandwidth for this virtual rack 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 network outbound bandwidth for this virtual rack 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 network bandwidth for this virtual rack 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.
*/
@ApiProperty
protected List billingCyclePublicBandwidthUsage;
public List getBillingCyclePublicBandwidthUsage() {
if (billingCyclePublicBandwidthUsage == null) {
billingCyclePublicBandwidthUsage = new ArrayList();
}
return billingCyclePublicBandwidthUsage;
}
/**
* The total public inbound bandwidth for this virtual rack 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 virtual rack 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 virtual rack 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 a virtual rack billing item is associated with.
*/
@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 a virtual rack 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 private bandwidth usage data for the current billing cycle.
*/
@ApiProperty
protected Long billingCyclePrivateBandwidthUsageCount;
public Long getBillingCyclePrivateBandwidthUsageCount() {
return billingCyclePrivateBandwidthUsageCount;
}
public void setBillingCyclePrivateBandwidthUsageCount(Long billingCyclePrivateBandwidthUsageCount) {
this.billingCyclePrivateBandwidthUsageCount = billingCyclePrivateBandwidthUsageCount;
}
/**
* A count of the raw public bandwidth usage data for the current billing cycle.
*/
@ApiProperty
protected Long billingCyclePublicBandwidthUsageCount;
public Long getBillingCyclePublicBandwidthUsageCount() {
return billingCyclePublicBandwidthUsageCount;
}
public void setBillingCyclePublicBandwidthUsageCount(Long billingCyclePublicBandwidthUsageCount) {
this.billingCyclePublicBandwidthUsageCount = billingCyclePublicBandwidthUsageCount;
}
public static class Mask extends com.softlayer.api.service.billing.Item.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;
}
public Mask billingCyclePublicBandwidthUsageCount() {
withLocalProperty("billingCyclePublicBandwidthUsageCount");
return this;
}
}
}