com.softlayer.api.service.network.bandwidth.version1.Usage 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.network.bandwidth.version1;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.network.bandwidth.version1.usage.Detail;
import java.util.ArrayList;
import java.util.List;
/**
* The SoftLayer_Network_Bandwidth_Version1_Usage data type contains general information relating to a single bandwidth usage record.
*
* @see SoftLayer_Network_Bandwidth_Version1_Usage
*/
@ApiType("SoftLayer_Network_Bandwidth_Version1_Usage")
public class Usage extends Entity {
/**
* Bandwidth allotment detail for this hardware.
*/
@ApiProperty
protected com.softlayer.api.service.network.bandwidth.version1.allotment.Detail bandwidthAllotmentDetail;
public com.softlayer.api.service.network.bandwidth.version1.allotment.Detail getBandwidthAllotmentDetail() {
return bandwidthAllotmentDetail;
}
public void setBandwidthAllotmentDetail(com.softlayer.api.service.network.bandwidth.version1.allotment.Detail bandwidthAllotmentDetail) {
this.bandwidthAllotmentDetail = bandwidthAllotmentDetail;
}
/**
* Bandwidth usage details for this hardware.
*/
@ApiProperty
protected List bandwidthUsageDetail;
public List getBandwidthUsageDetail() {
if (bandwidthUsageDetail == null) {
bandwidthUsageDetail = new ArrayList();
}
return bandwidthUsageDetail;
}
/**
* A count of bandwidth usage details for this hardware.
*/
@ApiProperty
protected Long bandwidthUsageDetailCount;
public Long getBandwidthUsageDetailCount() {
return bandwidthUsageDetailCount;
}
public void setBandwidthUsageDetailCount(Long bandwidthUsageDetailCount) {
this.bandwidthUsageDetailCount = bandwidthUsageDetailCount;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.network.bandwidth.version1.allotment.Detail.Mask bandwidthAllotmentDetail() {
return withSubMask("bandwidthAllotmentDetail", com.softlayer.api.service.network.bandwidth.version1.allotment.Detail.Mask.class);
}
public com.softlayer.api.service.network.bandwidth.version1.usage.Detail.Mask bandwidthUsageDetail() {
return withSubMask("bandwidthUsageDetail", com.softlayer.api.service.network.bandwidth.version1.usage.Detail.Mask.class);
}
public Mask bandwidthUsageDetailCount() {
withLocalProperty("bandwidthUsageDetailCount");
return this;
}
}
}