public class Item extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Item.Builder
Class to build instances of
Item. |
| Constructor and Description |
|---|
Item()
Default constructor.
|
Item(String name,
Money unitAmount,
String quantity,
Money tax,
String description,
String sku,
String url,
ItemCategory category,
String imageUrl,
UniversalProductCode upc)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ItemCategory |
getCategory()
Getter for Category.
|
String |
getDescription()
Getter for Description.
|
String |
getImageUrl()
Getter for ImageUrl.
|
String |
getName()
Getter for Name.
|
String |
getQuantity()
Getter for Quantity.
|
String |
getSku()
Getter for Sku.
|
Money |
getTax()
Getter for Tax.
|
Money |
getUnitAmount()
Getter for UnitAmount.
|
UniversalProductCode |
getUpc()
Getter for Upc.
|
String |
getUrl()
Getter for Url.
|
void |
setCategory(ItemCategory category)
Setter for Category.
|
void |
setDescription(String description)
Setter for Description.
|
void |
setImageUrl(String imageUrl)
Setter for ImageUrl.
|
void |
setName(String name)
Setter for Name.
|
void |
setQuantity(String quantity)
Setter for Quantity.
|
void |
setSku(String sku)
Setter for Sku.
|
void |
setTax(Money tax)
Setter for Tax.
|
void |
setUnitAmount(Money unitAmount)
Setter for UnitAmount.
|
void |
setUpc(UniversalProductCode upc)
Setter for Upc.
|
void |
setUrl(String url)
Setter for Url.
|
Item.Builder |
toBuilder()
Builds a new
Item.Builder object. |
String |
toString()
Converts this Item into string format.
|
public Item()
public Item(String name, Money unitAmount, String quantity, Money tax, String description, String sku, String url, ItemCategory category, String imageUrl, UniversalProductCode upc)
name - String value for name.unitAmount - Money value for unitAmount.quantity - String value for quantity.tax - Money value for tax.description - String value for description.sku - String value for sku.url - String value for url.category - ItemCategory value for category.imageUrl - String value for imageUrl.upc - UniversalProductCode value for upc.public String getName()
public void setName(String name)
name - Value for Stringpublic Money getUnitAmount()
public void setUnitAmount(Money unitAmount)
unitAmount - Value for Moneypublic Money getTax()
public void setTax(Money tax)
tax - Value for Moneypublic String getQuantity()
public void setQuantity(String quantity)
quantity - Value for Stringpublic String getDescription()
public void setDescription(String description)
description - Value for Stringpublic String getSku()
public void setSku(String sku)
sku - Value for Stringpublic String getUrl()
public void setUrl(String url)
url - Value for Stringpublic ItemCategory getCategory()
public void setCategory(ItemCategory category)
category - Value for ItemCategorypublic String getImageUrl()
public void setImageUrl(String imageUrl)
imageUrl - Value for Stringpublic UniversalProductCode getUpc()
public void setUpc(UniversalProductCode upc)
upc - Value for UniversalProductCodepublic String toString()
public Item.Builder toBuilder()
Item.Builder object.
Creates the instance with the state of the current model.Item.Builder objectCopyright © 2025. All rights reserved.