com.softlayer.api.service.billing.item.virtual.host.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
The newest version!
package com.softlayer.api.service.billing.item.virtual.host;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Hardware;
import com.softlayer.api.service.billing.Item;
/**
* The SoftLayer_Billing_Item_Virtual_Host_Usage data type contains general information relating to a single SoftLayer billing item for virtual machine peak usage
*
* @see SoftLayer_Billing_Item_Virtual_Host_Usage
*/
@ApiType("SoftLayer_Billing_Item_Virtual_Host_Usage")
public class Usage extends Item {
/**
* The resource for a peak virtual machine usage billing item.
*/
@ApiProperty
protected Hardware resource;
public Hardware getResource() {
return resource;
}
public void setResource(Hardware 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;
}
public static class Mask extends com.softlayer.api.service.billing.Item.Mask {
public com.softlayer.api.service.Hardware.Mask resource() {
return withSubMask("resource", com.softlayer.api.service.Hardware.Mask.class);
}
public Mask resourceTableId() {
withLocalProperty("resourceTableId");
return this;
}
}
}