All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softlayer.api.service.billing.item.virtual.host.Usage Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show 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;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy