com.softlayer.api.service.product.item.Bundles 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
package com.softlayer.api.service.product.item;
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.item.Category;
import com.softlayer.api.service.product.item.Price;
/**
* The SoftLayer_Product_Item_Bundles contains item to price cross references Relates a category, price and item to a bundle. Match bundle ids to see all items and prices in a particular bundle.
*
* @see SoftLayer_Product_Item_Bundles
*/
@ApiType("SoftLayer_Product_Item_Bundles")
public class Bundles extends Entity {
/**
* Item in bundle.
*/
@ApiProperty
protected Item bundleItem;
public Item getBundleItem() {
return bundleItem;
}
public void setBundleItem(Item bundleItem) {
this.bundleItem = bundleItem;
}
/**
* Category bundle falls in.
*/
@ApiProperty
protected Category category;
public Category getCategory() {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
/**
* Price of item in bundle
*/
@ApiProperty
protected Price itemPrice;
public Price getItemPrice() {
return itemPrice;
}
public void setItemPrice(Price itemPrice) {
this.itemPrice = itemPrice;
}
/**
* Identifier for bundle.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long bundleItemId;
public Long getBundleItemId() {
return bundleItemId;
}
public void setBundleItemId(Long bundleItemId) {
bundleItemIdSpecified = true;
this.bundleItemId = bundleItemId;
}
protected boolean bundleItemIdSpecified;
public boolean isBundleItemIdSpecified() {
return bundleItemIdSpecified;
}
public void unsetBundleItemId() {
bundleItemId = null;
bundleItemIdSpecified = false;
}
/**
* Identifier for record.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
/**
* Identifier for price.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long itemPriceId;
public Long getItemPriceId() {
return itemPriceId;
}
public void setItemPriceId(Long itemPriceId) {
itemPriceIdSpecified = true;
this.itemPriceId = itemPriceId;
}
protected boolean itemPriceIdSpecified;
public boolean isItemPriceIdSpecified() {
return itemPriceIdSpecified;
}
public void unsetItemPriceId() {
itemPriceId = null;
itemPriceIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.product.Item.Mask bundleItem() {
return withSubMask("bundleItem", com.softlayer.api.service.product.Item.Mask.class);
}
public Category.Mask category() {
return withSubMask("category", Category.Mask.class);
}
public Price.Mask itemPrice() {
return withSubMask("itemPrice", Price.Mask.class);
}
public Mask bundleItemId() {
withLocalProperty("bundleItemId");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask itemPriceId() {
withLocalProperty("itemPriceId");
return this;
}
}
}