com.symphony.api.model.V2UserCreate Maven / Gradle / Ivy
package com.symphony.api.model;
import com.symphony.api.model.Password;
import com.symphony.api.model.V2UserAttributes;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
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;
/**
* V2 User Creation Object. After creation, modify roles, features etc via the specific API calls.
**/
@Schema(description="V2 User Creation Object. After creation, modify roles, features etc via the specific API calls. ")
public class V2UserCreate {
@Schema(description = "")
private V2UserAttributes userAttributes = null;
@Schema(description = "")
private Password password = null;
@Schema(description = "")
private List roles = null;
/**
* Get userAttributes
* @return userAttributes
**/
@JsonProperty("userAttributes")
public V2UserAttributes getUserAttributes() {
return userAttributes;
}
public void setUserAttributes(V2UserAttributes userAttributes) {
this.userAttributes = userAttributes;
}
public V2UserCreate userAttributes(V2UserAttributes userAttributes) {
this.userAttributes = userAttributes;
return this;
}
/**
* Get password
* @return password
**/
@JsonProperty("password")
public Password getPassword() {
return password;
}
public void setPassword(Password password) {
this.password = password;
}
public V2UserCreate password(Password password) {
this.password = password;
return this;
}
/**
* Get roles
* @return roles
**/
@JsonProperty("roles")
public List getRoles() {
return roles;
}
public void setRoles(List roles) {
this.roles = roles;
}
public V2UserCreate roles(List roles) {
this.roles = roles;
return this;
}
public V2UserCreate addRolesItem(String rolesItem) {
this.roles.add(rolesItem);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V2UserCreate {\n");
sb.append(" userAttributes: ").append(toIndentedString(userAttributes)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).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