com.softlayer.api.service.container.tax.cache.Item 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.container.tax.cache;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.container.tax.Rates;
/**
* This represents one order item in a tax calculation.
*
* @see SoftLayer_Container_Tax_Cache_Item
*/
@ApiType("SoftLayer_Container_Tax_Cache_Item")
public class Item extends Entity {
/**
* The category code for the referenced product.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String categoryCode;
public String getCategoryCode() {
return categoryCode;
}
public void setCategoryCode(String categoryCode) {
categoryCodeSpecified = true;
this.categoryCode = categoryCode;
}
protected boolean categoryCodeSpecified;
public boolean isCategoryCodeSpecified() {
return categoryCodeSpecified;
}
public void unsetCategoryCode() {
categoryCode = null;
categoryCodeSpecified = false;
}
/**
* This hash will match to the hash on an order container.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String containerHash;
public String getContainerHash() {
return containerHash;
}
public void setContainerHash(String containerHash) {
containerHashSpecified = true;
this.containerHash = containerHash;
}
protected boolean containerHashSpecified;
public boolean isContainerHashSpecified() {
return containerHashSpecified;
}
public void unsetContainerHash() {
containerHash = null;
containerHashSpecified = false;
}
/**
* The reference to the price for this order item.
*/
@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;
}
/**
* This is the container containing the individual tax rates.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Rates taxRates;
public Rates getTaxRates() {
return taxRates;
}
public void setTaxRates(Rates taxRates) {
taxRatesSpecified = true;
this.taxRates = taxRates;
}
protected boolean taxRatesSpecified;
public boolean isTaxRatesSpecified() {
return taxRatesSpecified;
}
public void unsetTaxRates() {
taxRates = null;
taxRatesSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask categoryCode() {
withLocalProperty("categoryCode");
return this;
}
public Mask containerHash() {
withLocalProperty("containerHash");
return this;
}
public Mask itemPriceId() {
withLocalProperty("itemPriceId");
return this;
}
public com.softlayer.api.service.container.tax.Rates.Mask taxRates() {
return withSubMask("taxRates", com.softlayer.api.service.container.tax.Rates.Mask.class);
}
}
}