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

com.softlayer.api.service.product.pkg.Items Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.product.pkg;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.product.Item;
import com.softlayer.api.service.product.Package;

/**
 * This data type is a cross-reference between the SoftLayer_Product_Package and the SoftLayer_Product_Item(s) that belong in the SoftLayer_Product_Package. 
 *
 * @see SoftLayer_Product_Package_Items
 */
@ApiType("SoftLayer_Product_Package_Items")
public class Items extends Entity {

    /**
     * The item to which this object belongs.
     */
    @ApiProperty
    protected Item item;

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }

    /**
     * The package to which this object belongs.
     */
    @ApiProperty("package")
    protected Package itemsPackage;

    public Package getItemsPackage() {
        return itemsPackage;
    }

    public void setItemsPackage(Package itemsPackage) {
        this.itemsPackage = itemsPackage;
    }

    /**
     * The unique identifier for this object. It is not used anywhere but in this object.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        idSpecified = true;
        this.id = id;
    }

    protected boolean idSpecified;

    public boolean isIdSpecified() {
        return idSpecified;
    }

    public void unsetId() {
        id = null;
        idSpecified = false;
    }

    /**
     * The SoftLayer_Product_Item id to which this instance of the object belongs.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long itemId;

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        itemIdSpecified = true;
        this.itemId = itemId;
    }

    protected boolean itemIdSpecified;

    public boolean isItemIdSpecified() {
        return itemIdSpecified;
    }

    public void unsetItemId() {
        itemId = null;
        itemIdSpecified = false;
    }

    /**
     * The SoftLayer_Product_Package id to which this instance of the object belongs.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long packageId;

    public Long getPackageId() {
        return packageId;
    }

    public void setPackageId(Long packageId) {
        packageIdSpecified = true;
        this.packageId = packageId;
    }

    protected boolean packageIdSpecified;

    public boolean isPackageIdSpecified() {
        return packageIdSpecified;
    }

    public void unsetPackageId() {
        packageId = null;
        packageIdSpecified = false;
    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

        public com.softlayer.api.service.product.Item.Mask item() {
            return withSubMask("item", com.softlayer.api.service.product.Item.Mask.class);
        }

        public com.softlayer.api.service.product.Package.Mask itemsPackage() {
            return withSubMask("package", com.softlayer.api.service.product.Package.Mask.class);
        }

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy