
com.symphony.api.model.UserV2 Maven / Gradle / Ivy
package com.symphony.api.model;
import com.symphony.api.model.AvatarList;
import com.symphony.api.model.StringList;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* User record version 2
**/
@Schema(description="User record version 2")
public class UserV2 {
@Schema(description = "")
private Long id = null;
@Schema(description = "")
private String emailAddress = null;
@Schema(description = "")
private String firstName = null;
@Schema(description = "")
private String lastName = null;
@Schema(description = "")
private String displayName = null;
@Schema(description = "")
private String title = null;
@Schema(description = "")
private String company = null;
@Schema(description = "")
private String username = null;
@Schema(description = "")
private String location = null;
public enum AccountTypeEnum {
NORMAL("NORMAL"),
SYSTEM("SYSTEM"),
SDL("SDL");
private String value;
AccountTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static AccountTypeEnum fromValue(String text) {
for (AccountTypeEnum b : AccountTypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@Schema(description = "")
private AccountTypeEnum accountType = null;
@Schema(description = "")
private AvatarList avatars = null;
@Schema(description = "Note: only available if the application has the extended user or contact permission")
/**
* Note: only available if the application has the extended user or contact permission
**/
private String workPhoneNumber = null;
@Schema(description = "Note: only available if the application has the extended user or contact permission")
/**
* Note: only available if the application has the extended user or contact permission
**/
private String mobilePhoneNumber = null;
@Schema(description = "Note: only available if the application has the extended user or contact permission")
/**
* Note: only available if the application has the extended user or contact permission
**/
private String jobFunction = null;
@Schema(description = "Note: only available if the application has the extended user or contact permission")
/**
* Note: only available if the application has the extended user or contact permission
**/
private String department = null;
@Schema(description = "Note: only available if the application has the extended user or contact permission")
/**
* Note: only available if the application has the extended user or contact permission
**/
private String division = null;
@Schema(description = "")
private StringList roles = null;
/**
* Get id
* @return id
**/
@JsonProperty("id")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public UserV2 id(Long id) {
this.id = id;
return this;
}
/**
* Get emailAddress
* @return emailAddress
**/
@JsonProperty("emailAddress")
public String getEmailAddress() {
return emailAddress;
}
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
public UserV2 emailAddress(String emailAddress) {
this.emailAddress = emailAddress;
return this;
}
/**
* Get firstName
* @return firstName
**/
@JsonProperty("firstName")
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public UserV2 firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* Get lastName
* @return lastName
**/
@JsonProperty("lastName")
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public UserV2 lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* Get displayName
* @return displayName
**/
@JsonProperty("displayName")
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
public UserV2 displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* Get title
* @return title
**/
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public UserV2 title(String title) {
this.title = title;
return this;
}
/**
* Get company
* @return company
**/
@JsonProperty("company")
public String getCompany() {
return company;
}
public void setCompany(String company) {
this.company = company;
}
public UserV2 company(String company) {
this.company = company;
return this;
}
/**
* Get username
* @return username
**/
@JsonProperty("username")
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public UserV2 username(String username) {
this.username = username;
return this;
}
/**
* Get location
* @return location
**/
@JsonProperty("location")
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public UserV2 location(String location) {
this.location = location;
return this;
}
/**
* Get accountType
* @return accountType
**/
@JsonProperty("accountType")
public String getAccountType() {
if (accountType == null) {
return null;
}
return accountType.getValue();
}
public void setAccountType(AccountTypeEnum accountType) {
this.accountType = accountType;
}
public UserV2 accountType(AccountTypeEnum accountType) {
this.accountType = accountType;
return this;
}
/**
* Get avatars
* @return avatars
**/
@JsonProperty("avatars")
public AvatarList getAvatars() {
return avatars;
}
public void setAvatars(AvatarList avatars) {
this.avatars = avatars;
}
public UserV2 avatars(AvatarList avatars) {
this.avatars = avatars;
return this;
}
/**
* Note: only available if the application has the extended user or contact permission
* @return workPhoneNumber
**/
@JsonProperty("workPhoneNumber")
public String getWorkPhoneNumber() {
return workPhoneNumber;
}
public void setWorkPhoneNumber(String workPhoneNumber) {
this.workPhoneNumber = workPhoneNumber;
}
public UserV2 workPhoneNumber(String workPhoneNumber) {
this.workPhoneNumber = workPhoneNumber;
return this;
}
/**
* Note: only available if the application has the extended user or contact permission
* @return mobilePhoneNumber
**/
@JsonProperty("mobilePhoneNumber")
public String getMobilePhoneNumber() {
return mobilePhoneNumber;
}
public void setMobilePhoneNumber(String mobilePhoneNumber) {
this.mobilePhoneNumber = mobilePhoneNumber;
}
public UserV2 mobilePhoneNumber(String mobilePhoneNumber) {
this.mobilePhoneNumber = mobilePhoneNumber;
return this;
}
/**
* Note: only available if the application has the extended user or contact permission
* @return jobFunction
**/
@JsonProperty("jobFunction")
public String getJobFunction() {
return jobFunction;
}
public void setJobFunction(String jobFunction) {
this.jobFunction = jobFunction;
}
public UserV2 jobFunction(String jobFunction) {
this.jobFunction = jobFunction;
return this;
}
/**
* Note: only available if the application has the extended user or contact permission
* @return department
**/
@JsonProperty("department")
public String getDepartment() {
return department;
}
public void setDepartment(String department) {
this.department = department;
}
public UserV2 department(String department) {
this.department = department;
return this;
}
/**
* Note: only available if the application has the extended user or contact permission
* @return division
**/
@JsonProperty("division")
public String getDivision() {
return division;
}
public void setDivision(String division) {
this.division = division;
}
public UserV2 division(String division) {
this.division = division;
return this;
}
/**
* Get roles
* @return roles
**/
@JsonProperty("roles")
public StringList getRoles() {
return roles;
}
public void setRoles(StringList roles) {
this.roles = roles;
}
public UserV2 roles(StringList roles) {
this.roles = roles;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserV2 {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" company: ").append(toIndentedString(company)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" location: ").append(toIndentedString(location)).append("\n");
sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n");
sb.append(" avatars: ").append(toIndentedString(avatars)).append("\n");
sb.append(" workPhoneNumber: ").append(toIndentedString(workPhoneNumber)).append("\n");
sb.append(" mobilePhoneNumber: ").append(toIndentedString(mobilePhoneNumber)).append("\n");
sb.append(" jobFunction: ").append(toIndentedString(jobFunction)).append("\n");
sb.append(" department: ").append(toIndentedString(department)).append("\n");
sb.append(" division: ").append(toIndentedString(division)).append("\n");
sb.append(" roles: ").append(toIndentedString(roles)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy