public class CartAddRequest extends Object implements Serializable
Java class for CartAddRequest complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CartAddRequest">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="CartId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="HMAC" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="MergeCart" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Items" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Item" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="ASIN" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="OfferListingId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/>
<element name="AssociateTag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="ListItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="ResponseGroup" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
CartAddRequest.Items
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
cartId |
protected String |
hmac |
protected CartAddRequest.Items |
items |
protected String |
mergeCart |
protected List<String> |
responseGroup |
| Constructor and Description |
|---|
CartAddRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCartId()
Gets the value of the cartId property.
|
String |
getHMAC()
Gets the value of the hmac property.
|
CartAddRequest.Items |
getItems()
Gets the value of the items property.
|
String |
getMergeCart()
Gets the value of the mergeCart property.
|
List<String> |
getResponseGroup()
Gets the value of the responseGroup property.
|
void |
setCartId(String value)
Sets the value of the cartId property.
|
void |
setHMAC(String value)
Sets the value of the hmac property.
|
void |
setItems(CartAddRequest.Items value)
Sets the value of the items property.
|
void |
setMergeCart(String value)
Sets the value of the mergeCart property.
|
protected String cartId
protected String hmac
protected String mergeCart
protected CartAddRequest.Items items
public String getCartId()
Stringpublic void setCartId(String value)
value - allowed object is
Stringpublic String getHMAC()
Stringpublic void setHMAC(String value)
value - allowed object is
Stringpublic String getMergeCart()
Stringpublic void setMergeCart(String value)
value - allowed object is
Stringpublic CartAddRequest.Items getItems()
CartAddRequest.Itemspublic void setItems(CartAddRequest.Items value)
value - allowed object is
CartAddRequest.Itemspublic List<String> getResponseGroup()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the responseGroup property.
For example, to add a new item, do as follows:
getResponseGroup().add(newItem);
Objects of the following type(s) are allowed in the list
String
Copyright © 2013. All Rights Reserved.