package com.ECS.client.jax; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="CustomerId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="Nickname" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="Birthday" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="WishListId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="Location" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="UserDefinedLocation" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="City" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="State" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="Country" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element ref="{http://webservices.amazon.com/AWSECommerceService/2010-11-01}CustomerReviews" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://webservices.amazon.com/AWSECommerceService/2010-11-01}Tags" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "customerId", "nickname", "birthday", "wishListId", "location", "customerReviews", "tags" }) @XmlRootElement(name = "Customer") public class Customer { @XmlElement(name = "CustomerId", required = true) protected String customerId; @XmlElement(name = "Nickname") protected String nickname; @XmlElement(name = "Birthday") protected String birthday; @XmlElement(name = "WishListId") protected String wishListId; @XmlElement(name = "Location") protected Customer.Location location; @XmlElement(name = "CustomerReviews") protected List<CustomerReviews> customerReviews; @XmlElement(name = "Tags") protected Tags tags; /** * Gets the value of the customerId property. * * @return * possible object is * {@link String } * */ public String getCustomerId() { return customerId; } /** * Sets the value of the customerId property. * * @param value * allowed object is * {@link String } * */ public void setCustomerId(String value) { this.customerId = value; } /** * Gets the value of the nickname property. * * @return * possible object is * {@link String } * */ public String getNickname() { return nickname; } /** * Sets the value of the nickname property. * * @param value * allowed object is * {@link String } * */ public void setNickname(String value) { this.nickname = value; } /** * Gets the value of the birthday property. * * @return * possible object is * {@link String } * */ public String getBirthday() { return birthday; } /** * Sets the value of the birthday property. * * @param value * allowed object is * {@link String } * */ public void setBirthday(String value) { this.birthday = value; } /** * Gets the value of the wishListId property. * * @return * possible object is * {@link String } * */ public String getWishListId() { return wishListId; } /** * Sets the value of the wishListId property. * * @param value * allowed object is * {@link String } * */ public void setWishListId(String value) { this.wishListId = value; } /** * Gets the value of the location property. * * @return * possible object is * {@link Customer.Location } * */ public Customer.Location getLocation() { return location; } /** * Sets the value of the location property. * * @param value * allowed object is * {@link Customer.Location } * */ public void setLocation(Customer.Location value) { this.location = value; } /** * Gets the value of the customerReviews property. * * <p> * 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 <CODE>set</CODE> method for the customerReviews property. * * <p> * For example, to add a new item, do as follows: * <pre> * getCustomerReviews().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link CustomerReviews } * * */ public List<CustomerReviews> getCustomerReviews() { if (customerReviews == null) { customerReviews = new ArrayList<CustomerReviews>(); } return this.customerReviews; } /** * Gets the value of the tags property. * * @return * possible object is * {@link Tags } * */ public Tags getTags() { return tags; } /** * Sets the value of the tags property. * * @param value * allowed object is * {@link Tags } * */ public void setTags(Tags value) { this.tags = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="UserDefinedLocation" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="City" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="State" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="Country" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "userDefinedLocation", "city", "state", "country" }) public static class Location { @XmlElement(name = "UserDefinedLocation") protected String userDefinedLocation; @XmlElement(name = "City") protected String city; @XmlElement(name = "State") protected String state; @XmlElement(name = "Country") protected String country; /** * Gets the value of the userDefinedLocation property. * * @return * possible object is * {@link String } * */ public String getUserDefinedLocation() { return userDefinedLocation; } /** * Sets the value of the userDefinedLocation property. * * @param value * allowed object is * {@link String } * */ public void setUserDefinedLocation(String value) { this.userDefinedLocation = value; } /** * Gets the value of the city property. * * @return * possible object is * {@link String } * */ public String getCity() { return city; } /** * Sets the value of the city property. * * @param value * allowed object is * {@link String } * */ public void setCity(String value) { this.city = value; } /** * Gets the value of the state property. * * @return * possible object is * {@link String } * */ public String getState() { return state; } /** * Sets the value of the state property. * * @param value * allowed object is * {@link String } * */ public void setState(String value) { this.state = value; } /** * Gets the value of the country property. * * @return * possible object is * {@link String } * */ public String getCountry() { return country; } /** * Sets the value of the country property. * * @param value * allowed object is * {@link String } * */ public void setCountry(String value) { this.country = value; } } }