com.ziqni.admin.sdk.model.UserAllOf 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.
*
* The version of the OpenAPI document: 3.0.11
* 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* UserAllOf
*/
@JsonPropertyOrder({
UserAllOf.JSON_PROPERTY_FIRST_NAME,
UserAllOf.JSON_PROPERTY_LAST_NAME,
UserAllOf.JSON_PROPERTY_EMAIL,
UserAllOf.JSON_PROPERTY_CONSTRAINTS,
UserAllOf.JSON_PROPERTY_SPACES
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UserAllOf {
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 UserAllOf 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 UserAllOf 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 UserAllOf 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 UserAllOf constraints(List constraints) {
this.constraints = constraints;
return this;
}
public UserAllOf 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 UserAllOf spaces(List spaces) {
this.spaces = spaces;
return this;
}
public UserAllOf 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_allOf object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserAllOf userAllOf = (UserAllOf) o;
return Objects.equals(this.firstName, userAllOf.firstName) &&
Objects.equals(this.lastName, userAllOf.lastName) &&
Objects.equals(this.email, userAllOf.email) &&
Objects.equals(this.constraints, userAllOf.constraints) &&
Objects.equals(this.spaces, userAllOf.spaces);
}
@Override
public int hashCode() {
return Objects.hash(firstName, lastName, email, constraints, spaces);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserAllOf {\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