Package com.adobe.aco.model
Class ProductBundleItem
- java.lang.Object
-
- com.adobe.aco.model.ProductBundleItem
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class ProductBundleItem extends ObjectProductBundleItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProductBundleItem.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_QTYstatic StringSERIALIZED_NAME_SKUstatic StringSERIALIZED_NAME_USER_DEFINED_QTY
-
Constructor Summary
Constructors Constructor Description ProductBundleItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ProductBundleItemfromJson(String jsonString)Create an instance of ProductBundleItem given an JSON stringFloatgetQty()Quantity of the item in the bundle.StringgetSku()Product SKU of the bundle item.BooleangetUserDefinedQty()Indicates whether the quantity of the item in the bundle can be defined by a shopper.inthashCode()ProductBundleItemqty(Float qty)voidsetQty(Float qty)voidsetSku(String sku)voidsetUserDefinedQty(Boolean userDefinedQty)ProductBundleItemsku(String sku)StringtoJson()Convert an instance of ProductBundleItem to an JSON stringStringtoString()ProductBundleItemuserDefinedQty(Boolean userDefinedQty)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_SKU
public static final String SERIALIZED_NAME_SKU
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_QTY
public static final String SERIALIZED_NAME_QTY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USER_DEFINED_QTY
public static final String SERIALIZED_NAME_USER_DEFINED_QTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
sku
public ProductBundleItem sku(String sku)
-
getSku
@Nonnull public String getSku()
Product SKU of the bundle item.- Returns:
- sku
-
setSku
public void setSku(String sku)
-
qty
public ProductBundleItem qty(Float qty)
-
getQty
@Nullable public Float getQty()
Quantity of the item in the bundle.- Returns:
- qty
-
setQty
public void setQty(Float qty)
-
userDefinedQty
public ProductBundleItem userDefinedQty(Boolean userDefinedQty)
-
getUserDefinedQty
@Nullable public Boolean getUserDefinedQty()
Indicates whether the quantity of the item in the bundle can be defined by a shopper.- Returns:
- userDefinedQty
-
setUserDefinedQty
public void setUserDefinedQty(Boolean userDefinedQty)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ProductBundleItem
-
fromJson
public static ProductBundleItem fromJson(String jsonString) throws IOException
Create an instance of ProductBundleItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductBundleItem
- Throws:
IOException- if the JSON string is invalid with respect to ProductBundleItem
-
toJson
public String toJson()
Convert an instance of ProductBundleItem to an JSON string- Returns:
- JSON string
-
-