com.softlayer.api.service.billing.item.virtual.Guest 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;
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 java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* The SoftLayer_Billing_Item_Virtual_Guest data type contains general information relating to a single SoftLayer billing item for guests.
*
* @see SoftLayer_Billing_Item_Virtual_Guest
*/
@ApiType("SoftLayer_Billing_Item_Virtual_Guest")
public class Guest extends Item {
/**
* The raw bandwidth usage data for the current billing cycle. One object will be 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 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 inbound bandwidth for this virtual server 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 virtual server 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 virtual server 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 server 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 server 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 server for the current billing cycle.
*/
@ApiProperty
protected Long billingCyclePublicUsageTotal;
public Long getBillingCyclePublicUsageTotal() {
return billingCyclePublicUsageTotal;
}
public void setBillingCyclePublicUsageTotal(Long billingCyclePublicUsageTotal) {
this.billingCyclePublicUsageTotal = billingCyclePublicUsageTotal;
}
@ApiProperty
protected List- monitoringBillingItems;
public List
- getMonitoringBillingItems() {
if (monitoringBillingItems == null) {
monitoringBillingItems = new ArrayList
- ();
}
return monitoringBillingItems;
}
/**
* The resource for a cloud server billing item.
*/
@ApiProperty
protected com.softlayer.api.service.virtual.Guest resource;
public com.softlayer.api.service.virtual.Guest getResource() {
return resource;
}
public void setResource(com.softlayer.api.service.virtual.Guest resource) {
this.resource = resource;
}
/**
* The resource (unique identifier) for a server billing item.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long resourceTableId;
public Long getResourceTableId() {
return resourceTableId;
}
public void setResourceTableId(Long resourceTableId) {
resourceTableIdSpecified = true;
this.resourceTableId = resourceTableId;
}
protected boolean resourceTableIdSpecified;
public boolean isResourceTableIdSpecified() {
return resourceTableIdSpecified;
}
public void unsetResourceTableId() {
resourceTableId = null;
resourceTableIdSpecified = false;
}
/**
* A count of the raw bandwidth usage data for the current billing cycle. One object will be 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 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;
}
/**
* A count of
*/
@ApiProperty
protected Long monitoringBillingItemCount;
public Long getMonitoringBillingItemCount() {
return monitoringBillingItemCount;
}
public void setMonitoringBillingItemCount(Long monitoringBillingItemCount) {
this.monitoringBillingItemCount = monitoringBillingItemCount;
}
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.billing.Item.Mask monitoringBillingItems() {
return withSubMask("monitoringBillingItems", com.softlayer.api.service.billing.Item.Mask.class);
}
public com.softlayer.api.service.virtual.Guest.Mask resource() {
return withSubMask("resource", com.softlayer.api.service.virtual.Guest.Mask.class);
}
public Mask resourceTableId() {
withLocalProperty("resourceTableId");
return this;
}
public Mask billingCycleBandwidthUsageCount() {
withLocalProperty("billingCycleBandwidthUsageCount");
return this;
}
public Mask billingCyclePrivateBandwidthUsageCount() {
withLocalProperty("billingCyclePrivateBandwidthUsageCount");
return this;
}
public Mask billingCyclePublicBandwidthUsageCount() {
withLocalProperty("billingCyclePublicBandwidthUsageCount");
return this;
}
public Mask monitoringBillingItemCount() {
withLocalProperty("monitoringBillingItemCount");
return this;
}
}
}