/** * Mule Coupa Cloud Connector * * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. * * Coupa Connector com.coupa package contains portions of code based on Coupa4j * http://code.google.com/p/coupa4j/, under a MIT license: * http://www.opensource.org/licenses/mit-license.php. */ // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.01.11 at 10:56:43 AM ART // package com.coupa.resources; import java.math.BigInteger; 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.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; /** * <p>Java class for user complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="user"> * <complexContent> * <extension base="{}resource"> * <sequence> * <element name="created-at" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> * <element name="updated-at" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> * <element name="login" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="email" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="purchasing-user" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="expense-user" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="employee-number" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="phone-work" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="phone-mobile" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="firstname" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="lastname" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="fullname" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="api-user" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="active" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="salesforce-id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="account-security-type" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> * <element name="authentication-method" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="sso-identifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="roles" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="role" type="{}role-summary" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="manager" type="{}user-summary" minOccurs="0"/> * <element name="default-address" type="{}address-summary" minOccurs="0"/> * <element name="default-account" type="{}account-summary" minOccurs="0"/> * <element name="default-account-type" type="{}account-type-summary" minOccurs="0"/> * <element name="default-currency" type="{}currency-summary" minOccurs="0"/> * <element name="department" type="{}department-summary" minOccurs="0"/> * <element name="approval-limit" type="{}approval-limit-summary" minOccurs="0"/> * <element name="self-approval-limit" type="{}approval-limit-summary" minOccurs="0"/> * <element name="created-by" type="{}user-summary" minOccurs="0"/> * <element name="updated-by" type="{}user-summary" minOccurs="0"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "user", propOrder = { "createdAt", "updatedAt", "login", "email", "purchasingUser", "expenseUser", "employeeNumber", "phoneWork", "phoneMobile", "firstname", "lastname", "fullname", "apiUser", "active", "salesforceId", "accountSecurityType", "authenticationMethod", "ssoIdentifier", "roles", "manager", "defaultAddress", "defaultAccount", "defaultAccountType", "defaultCurrency", "department", "approvalLimit", "selfApprovalLimit", "createdBy", "updatedBy" }) @XmlRootElement public class User extends Resource { @XmlElement(name = "created-at") @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar createdAt; @XmlElement(name = "updated-at") @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar updatedAt; protected String login; protected String email; @XmlElement(name = "purchasing-user") protected String purchasingUser; @XmlElement(name = "expense-user") protected String expenseUser; @XmlElement(name = "employee-number") protected String employeeNumber; @XmlElement(name = "phone-work") protected String phoneWork; @XmlElement(name = "phone-mobile") protected String phoneMobile; protected String firstname; protected String lastname; protected String fullname; @XmlElement(name = "api-user") protected String apiUser; protected String active; @XmlElement(name = "salesforce-id") protected String salesforceId; @XmlElement(name = "account-security-type") protected BigInteger accountSecurityType; @XmlElement(name = "authentication-method") protected String authenticationMethod; @XmlElement(name = "sso-identifier") protected String ssoIdentifier; protected User.Roles roles; protected UserSummary manager; @XmlElement(name = "default-address") protected AddressSummary defaultAddress; @XmlElement(name = "default-account") protected AccountSummary defaultAccount; @XmlElement(name = "default-account-type") protected AccountTypeSummary defaultAccountType; @XmlElement(name = "default-currency") protected CurrencySummary defaultCurrency; protected DepartmentSummary department; @XmlElement(name = "approval-limit") protected ApprovalLimitSummary approvalLimit; @XmlElement(name = "self-approval-limit") protected ApprovalLimitSummary selfApprovalLimit; @XmlElement(name = "created-by") protected UserSummary createdBy; @XmlElement(name = "updated-by") protected UserSummary updatedBy; /** * Gets the value of the createdAt property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getCreatedAt() { return createdAt; } /** * Sets the value of the createdAt property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setCreatedAt(XMLGregorianCalendar value) { this.createdAt = value; } /** * Gets the value of the updatedAt property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getUpdatedAt() { return updatedAt; } /** * Sets the value of the updatedAt property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setUpdatedAt(XMLGregorianCalendar value) { this.updatedAt = value; } /** * Gets the value of the login property. * * @return * possible object is * {@link String } * */ public String getLogin() { return login; } /** * Sets the value of the login property. * * @param value * allowed object is * {@link String } * */ public void setLogin(String value) { this.login = value; } /** * Gets the value of the email property. * * @return * possible object is * {@link String } * */ public String getEmail() { return email; } /** * Sets the value of the email property. * * @param value * allowed object is * {@link String } * */ public void setEmail(String value) { this.email = value; } /** * Gets the value of the purchasingUser property. * * @return * possible object is * {@link String } * */ public String getPurchasingUser() { return purchasingUser; } /** * Sets the value of the purchasingUser property. * * @param value * allowed object is * {@link String } * */ public void setPurchasingUser(String value) { this.purchasingUser = value; } /** * Gets the value of the expenseUser property. * * @return * possible object is * {@link String } * */ public String getExpenseUser() { return expenseUser; } /** * Sets the value of the expenseUser property. * * @param value * allowed object is * {@link String } * */ public void setExpenseUser(String value) { this.expenseUser = value; } /** * Gets the value of the employeeNumber property. * * @return * possible object is * {@link String } * */ public String getEmployeeNumber() { return employeeNumber; } /** * Sets the value of the employeeNumber property. * * @param value * allowed object is * {@link String } * */ public void setEmployeeNumber(String value) { this.employeeNumber = value; } /** * Gets the value of the phoneWork property. * * @return * possible object is * {@link String } * */ public String getPhoneWork() { return phoneWork; } /** * Sets the value of the phoneWork property. * * @param value * allowed object is * {@link String } * */ public void setPhoneWork(String value) { this.phoneWork = value; } /** * Gets the value of the phoneMobile property. * * @return * possible object is * {@link String } * */ public String getPhoneMobile() { return phoneMobile; } /** * Sets the value of the phoneMobile property. * * @param value * allowed object is * {@link String } * */ public void setPhoneMobile(String value) { this.phoneMobile = value; } /** * Gets the value of the firstname property. * * @return * possible object is * {@link String } * */ public String getFirstname() { return firstname; } /** * Sets the value of the firstname property. * * @param value * allowed object is * {@link String } * */ public void setFirstname(String value) { this.firstname = value; } /** * Gets the value of the lastname property. * * @return * possible object is * {@link String } * */ public String getLastname() { return lastname; } /** * Sets the value of the lastname property. * * @param value * allowed object is * {@link String } * */ public void setLastname(String value) { this.lastname = value; } /** * Gets the value of the fullname property. * * @return * possible object is * {@link String } * */ public String getFullname() { return fullname; } /** * Sets the value of the fullname property. * * @param value * allowed object is * {@link String } * */ public void setFullname(String value) { this.fullname = value; } /** * Gets the value of the apiUser property. * * @return * possible object is * {@link String } * */ public String getApiUser() { return apiUser; } /** * Sets the value of the apiUser property. * * @param value * allowed object is * {@link String } * */ public void setApiUser(String value) { this.apiUser = value; } /** * Gets the value of the active property. * * @return * possible object is * {@link String } * */ public String getActive() { return active; } /** * Sets the value of the active property. * * @param value * allowed object is * {@link String } * */ public void setActive(String value) { this.active = value; } /** * Gets the value of the salesforceId property. * * @return * possible object is * {@link String } * */ public String getSalesforceId() { return salesforceId; } /** * Sets the value of the salesforceId property. * * @param value * allowed object is * {@link String } * */ public void setSalesforceId(String value) { this.salesforceId = value; } /** * Gets the value of the accountSecurityType property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getAccountSecurityType() { return accountSecurityType; } /** * Sets the value of the accountSecurityType property. * * @param value * allowed object is * {@link BigInteger } * */ public void setAccountSecurityType(BigInteger value) { this.accountSecurityType = value; } /** * Gets the value of the authenticationMethod property. * * @return * possible object is * {@link String } * */ public String getAuthenticationMethod() { return authenticationMethod; } /** * Sets the value of the authenticationMethod property. * * @param value * allowed object is * {@link String } * */ public void setAuthenticationMethod(String value) { this.authenticationMethod = value; } /** * Gets the value of the ssoIdentifier property. * * @return * possible object is * {@link String } * */ public String getSsoIdentifier() { return ssoIdentifier; } /** * Sets the value of the ssoIdentifier property. * * @param value * allowed object is * {@link String } * */ public void setSsoIdentifier(String value) { this.ssoIdentifier = value; } /** * Gets the value of the roles property. * * @return * possible object is * {@link User.Roles } * */ public User.Roles getRoles() { return roles; } /** * Sets the value of the roles property. * * @param value * allowed object is * {@link User.Roles } * */ public void setRoles(User.Roles value) { this.roles = value; } /** * Gets the value of the manager property. * * @return * possible object is * {@link UserSummary } * */ public UserSummary getManager() { return manager; } /** * Sets the value of the manager property. * * @param value * allowed object is * {@link UserSummary } * */ public void setManager(UserSummary value) { this.manager = value; } /** * Gets the value of the defaultAddress property. * * @return * possible object is * {@link AddressSummary } * */ public AddressSummary getDefaultAddress() { return defaultAddress; } /** * Sets the value of the defaultAddress property. * * @param value * allowed object is * {@link AddressSummary } * */ public void setDefaultAddress(AddressSummary value) { this.defaultAddress = value; } /** * Gets the value of the defaultAccount property. * * @return * possible object is * {@link AccountSummary } * */ public AccountSummary getDefaultAccount() { return defaultAccount; } /** * Sets the value of the defaultAccount property. * * @param value * allowed object is * {@link AccountSummary } * */ public void setDefaultAccount(AccountSummary value) { this.defaultAccount = value; } /** * Gets the value of the defaultAccountType property. * * @return * possible object is * {@link AccountTypeSummary } * */ public AccountTypeSummary getDefaultAccountType() { return defaultAccountType; } /** * Sets the value of the defaultAccountType property. * * @param value * allowed object is * {@link AccountTypeSummary } * */ public void setDefaultAccountType(AccountTypeSummary value) { this.defaultAccountType = value; } /** * Gets the value of the defaultCurrency property. * * @return * possible object is * {@link CurrencySummary } * */ public CurrencySummary getDefaultCurrency() { return defaultCurrency; } /** * Sets the value of the defaultCurrency property. * * @param value * allowed object is * {@link CurrencySummary } * */ public void setDefaultCurrency(CurrencySummary value) { this.defaultCurrency = value; } /** * Gets the value of the department property. * * @return * possible object is * {@link DepartmentSummary } * */ public DepartmentSummary getDepartment() { return department; } /** * Sets the value of the department property. * * @param value * allowed object is * {@link DepartmentSummary } * */ public void setDepartment(DepartmentSummary value) { this.department = value; } /** * Gets the value of the approvalLimit property. * * @return * possible object is * {@link ApprovalLimitSummary } * */ public ApprovalLimitSummary getApprovalLimit() { return approvalLimit; } /** * Sets the value of the approvalLimit property. * * @param value * allowed object is * {@link ApprovalLimitSummary } * */ public void setApprovalLimit(ApprovalLimitSummary value) { this.approvalLimit = value; } /** * Gets the value of the selfApprovalLimit property. * * @return * possible object is * {@link ApprovalLimitSummary } * */ public ApprovalLimitSummary getSelfApprovalLimit() { return selfApprovalLimit; } /** * Sets the value of the selfApprovalLimit property. * * @param value * allowed object is * {@link ApprovalLimitSummary } * */ public void setSelfApprovalLimit(ApprovalLimitSummary value) { this.selfApprovalLimit = value; } /** * Gets the value of the createdBy property. * * @return * possible object is * {@link UserSummary } * */ public UserSummary getCreatedBy() { return createdBy; } /** * Sets the value of the createdBy property. * * @param value * allowed object is * {@link UserSummary } * */ public void setCreatedBy(UserSummary value) { this.createdBy = value; } /** * Gets the value of the updatedBy property. * * @return * possible object is * {@link UserSummary } * */ public UserSummary getUpdatedBy() { return updatedBy; } /** * Sets the value of the updatedBy property. * * @param value * allowed object is * {@link UserSummary } * */ public void setUpdatedBy(UserSummary value) { this.updatedBy = 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="role" type="{}role-summary" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "role" }) public static class Roles { protected List<RoleSummary> role; /** * Gets the value of the role 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 role property. * * <p> * For example, to add a new item, do as follows: * <pre> * getRole().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link RoleSummary } * * */ public List<RoleSummary> getRole() { if (role == null) { role = new ArrayList<RoleSummary>(); } return this.role; } } }