com.softlayer.api.service.billing.item.hardware.Component 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.hardware;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.billing.Item;
import java.util.ArrayList;
import java.util.List;
/**
* The SoftLayer_Billing_Item_Hardware data type contains general information relating to a single SoftLayer billing item for hardware components.
*
* @see SoftLayer_Billing_Item_Hardware_Component
*/
@ApiType("SoftLayer_Billing_Item_Hardware_Component")
public class Component extends Item {
/**
* The hardware component that this billing item points to.
*/
@ApiProperty
protected List resource;
public List getResource() {
if (resource == null) {
resource = new ArrayList();
}
return 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 hardware component that this billing item points to.
*/
@ApiProperty
protected Long resourceCount;
public Long getResourceCount() {
return resourceCount;
}
public void setResourceCount(Long resourceCount) {
this.resourceCount = resourceCount;
}
public static class Mask extends com.softlayer.api.service.billing.Item.Mask {
public com.softlayer.api.service.hardware.Component.Mask resource() {
return withSubMask("resource", com.softlayer.api.service.hardware.Component.Mask.class);
}
public Mask resourceTableId() {
withLocalProperty("resourceTableId");
return this;
}
public Mask resourceCount() {
withLocalProperty("resourceCount");
return this;
}
}
}