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

com.softlayer.api.service.billing.item.software.Component Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.billing.item.software;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.billing.Item;

/**
 * The SoftLayer_Billing_Item_Hardware data type contains general information relating to a single SoftLayer billing item for hardware components. 
 *
 * @see SoftLayer_Billing_Item_Software_Component
 */
@ApiType("SoftLayer_Billing_Item_Software_Component")
public class Component extends Item {

    /**
     * The software component that this billing item points to.
     */
    @ApiProperty
    protected com.softlayer.api.service.software.Component resource;

    public com.softlayer.api.service.software.Component getResource() {
        return resource;
    }

    public void setResource(com.softlayer.api.service.software.Component resource) {
        this.resource = resource;
    }

    /**
     * The resource (unique identifier) for a software component 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.software.Component.Mask resource() {
            return withSubMask("resource", com.softlayer.api.service.software.Component.Mask.class);
        }

        public Mask resourceTableId() {
            withLocalProperty("resourceTableId");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy