com.ziqni.admin.sdk.model.User Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* ZIQNI Admin API
* Ziqni Application Services are used to manage and configure spaces. Change log: 2024-02-27 Added rewards reduced to the LeaderboardEntry response
*
* The version of the OpenAPI document: 3.0.17
* 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 com.ziqni.admin.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.ziqni.admin.sdk.model.UserAllOf;
import com.ziqni.admin.sdk.model.UserModelDefault;
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_OBJECT_TYPE,
User.JSON_PROPERTY_FIRST_NAME,
User.JSON_PROPERTY_LAST_NAME,
User.JSON_PROPERTY_EMAIL,
User.JSON_PROPERTY_CONSTRAINTS,
User.JSON_PROPERTY_SPACES
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class User {
public static final String JSON_PROPERTY_OBJECT_TYPE = "objectType";
private String objectType;
public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
private String firstName;
public static final String JSON_PROPERTY_LAST_NAME = "lastName";
private String lastName;
public static final String JSON_PROPERTY_EMAIL = "email";
private String email;
public static final String JSON_PROPERTY_CONSTRAINTS = "constraints";
private List constraints = new ArrayList<>();
public static final String JSON_PROPERTY_SPACES = "spaces";
private List spaces = null;
public User objectType(String objectType) {
this.objectType = objectType;
return this;
}
/**
* Get objectType
* @return objectType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_OBJECT_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getObjectType() {
return objectType;
}
@JsonProperty(JSON_PROPERTY_OBJECT_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setObjectType(String objectType) {
this.objectType = objectType;
}
public User firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* The Name of an individual
* @return firstName
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "John", value = "The Name of an individual")
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFirstName() {
return firstName;
}
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public User lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* The Surname of an individual
* @return lastName
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Dough", value = "The Surname of an individual")
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLastName() {
return lastName;
}
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastName(String lastName) {
this.lastName = lastName;
}
public User email(String email) {
this.email = email;
return this;
}
/**
* The email of the user to log in
* @return email
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "[email protected]", required = true, value = "The email of the user to log in")
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getEmail() {
return email;
}
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEmail(String email) {
this.email = email;
}
public User constraints(List constraints) {
this.constraints = constraints;
return this;
}
public User addConstraintsItem(String constraintsItem) {
this.constraints.add(constraintsItem);
return this;
}
/**
* Additional constraints
* @return constraints
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "- tfaEnabled - emailVerified", required = true, value = "Additional constraints")
@JsonProperty(JSON_PROPERTY_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getConstraints() {
return constraints;
}
@JsonProperty(JSON_PROPERTY_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setConstraints(List constraints) {
this.constraints = constraints;
}
public User spaces(List spaces) {
this.spaces = spaces;
return this;
}
public User addSpacesItem(String spacesItem) {
if (this.spaces == null) {
this.spaces = new ArrayList<>();
}
this.spaces.add(spacesItem);
return this;
}
/**
* Get spaces
* @return spaces
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SPACES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getSpaces() {
return spaces;
}
@JsonProperty(JSON_PROPERTY_SPACES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSpaces(List spaces) {
this.spaces = spaces;
}
/**
* Return true if this User object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
User user = (User) o;
return Objects.equals(this.objectType, user.objectType) &&
Objects.equals(this.firstName, user.firstName) &&
Objects.equals(this.lastName, user.lastName) &&
Objects.equals(this.email, user.email) &&
Objects.equals(this.constraints, user.constraints) &&
Objects.equals(this.spaces, user.spaces);
}
@Override
public int hashCode() {
return Objects.hash(objectType, firstName, lastName, email, constraints, spaces);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class User {\n");
sb.append(" objectType: ").append(toIndentedString(objectType)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" constraints: ").append(toIndentedString(constraints)).append("\n");
sb.append(" spaces: ").append(toIndentedString(spaces)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy