io.logicdrop.openapi.models.User Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sparks-openapi-models Show documentation
Show all versions of sparks-openapi-models Show documentation
Logicdrop Sparks OpenAPI client
/*
* Sparks OpenAPI
* Generated documentation for the Logicdrop Sparks API and OpenAPI clients. Logicdrop Sparks lets users build rules, analyze data, and automate documents. Use it to make decisions faster, generate documents better, and learn from your data. ### Documentation - [User Documentation](https://docs.logicdrop.com) ### Modules - [Sparks Compute](https://docs.logicdrop.com/rules/introduction) - [Sparks Decision Tables](https://docs.logicdrop.com/rules/authoring-decision-tables) - [Sparks Documents](https://docs.logicdrop.com/documents/introduction) ### Clients - [OpenAPI Clients](https://docs.logicdrop.com/development/sample-clients) ### Security - [Authorizing API Requests](https://docs.logicdrop.com/development/authorization)
*
* The version of the OpenAPI document: v_VERSION_, build# _BUILD_
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.logicdrop.openapi.models;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* User
*/
@JsonPropertyOrder({
User.JSON_PROPERTY_ID,
User.JSON_PROPERTY_EMAIL,
User.JSON_PROPERTY_NAME,
User.JSON_PROPERTY_PICTURE,
User.JSON_PROPERTY_ENABLED,
User.JSON_PROPERTY_INVITE_CODE,
User.JSON_PROPERTY_ROLES,
User.JSON_PROPERTY_PERMISSIONS,
User.JSON_PROPERTY_API_USER,
User.JSON_PROPERTY_CLIENT
})
public class User {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_EMAIL = "email";
private String email;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_PICTURE = "picture";
private String picture;
public static final String JSON_PROPERTY_ENABLED = "enabled";
private Boolean enabled;
public static final String JSON_PROPERTY_INVITE_CODE = "inviteCode";
private String inviteCode;
public static final String JSON_PROPERTY_ROLES = "roles";
private List roles = null;
public static final String JSON_PROPERTY_PERMISSIONS = "permissions";
private List permissions = null;
public static final String JSON_PROPERTY_API_USER = "apiUser";
private Boolean apiUser;
public static final String JSON_PROPERTY_CLIENT = "client";
private String client;
public User id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public User email(String email) {
this.email = email;
return this;
}
/**
* Get email
* @return email
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public User name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public User picture(String picture) {
this.picture = picture;
return this;
}
/**
* Get picture
* @return picture
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PICTURE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPicture() {
return picture;
}
public void setPicture(String picture) {
this.picture = picture;
}
public User enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Get enabled
* @return enabled
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public User inviteCode(String inviteCode) {
this.inviteCode = inviteCode;
return this;
}
/**
* Get inviteCode
* @return inviteCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INVITE_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getInviteCode() {
return inviteCode;
}
public void setInviteCode(String inviteCode) {
this.inviteCode = inviteCode;
}
public User roles(List roles) {
this.roles = roles;
return this;
}
public User addRolesItem(String rolesItem) {
if (this.roles == null) {
this.roles = new ArrayList<>();
}
this.roles.add(rolesItem);
return this;
}
/**
* Get roles
* @return roles
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ROLES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRoles() {
return roles;
}
public void setRoles(List roles) {
this.roles = roles;
}
public User permissions(List permissions) {
this.permissions = permissions;
return this;
}
public User addPermissionsItem(String permissionsItem) {
if (this.permissions == null) {
this.permissions = new ArrayList<>();
}
this.permissions.add(permissionsItem);
return this;
}
/**
* Get permissions
* @return permissions
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PERMISSIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getPermissions() {
return permissions;
}
public void setPermissions(List permissions) {
this.permissions = permissions;
}
public User apiUser(Boolean apiUser) {
this.apiUser = apiUser;
return this;
}
/**
* Get apiUser
* @return apiUser
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_API_USER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getApiUser() {
return apiUser;
}
public void setApiUser(Boolean apiUser) {
this.apiUser = apiUser;
}
public User client(String client) {
this.client = client;
return this;
}
/**
* Get client
* @return client
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClient() {
return client;
}
public void setClient(String client) {
this.client = client;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
User user = (User) o;
return Objects.equals(this.id, user.id) &&
Objects.equals(this.email, user.email) &&
Objects.equals(this.name, user.name) &&
Objects.equals(this.picture, user.picture) &&
Objects.equals(this.enabled, user.enabled) &&
Objects.equals(this.inviteCode, user.inviteCode) &&
Objects.equals(this.roles, user.roles) &&
Objects.equals(this.permissions, user.permissions) &&
Objects.equals(this.apiUser, user.apiUser) &&
Objects.equals(this.client, user.client);
}
@Override
public int hashCode() {
return Objects.hash(id, email, name, picture, enabled, inviteCode, roles, permissions, apiUser, client);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class User {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" picture: ").append(toIndentedString(picture)).append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" inviteCode: ").append(toIndentedString(inviteCode)).append("\n");
sb.append(" roles: ").append(toIndentedString(roles)).append("\n");
sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n");
sb.append(" apiUser: ").append(toIndentedString(apiUser)).append("\n");
sb.append(" client: ").append(toIndentedString(client)).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 String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}