com.factset.sdk.IRNConfiguration.models.UserConfigDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irnconfiguration Show documentation
Show all versions of irnconfiguration Show documentation
FactSet SDK for Java - irnconfiguration
/*
* IRN API v1
* Allows users to extract, create, update and configure IRN data.
*
* The version of the OpenAPI document: 1
*
*
* 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.factset.sdk.IRNConfiguration.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.factset.sdk.IRNConfiguration.models.TeamSummaryDto;
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 org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.IRNConfiguration.JSON;
/**
* UserConfigDto
*/
@JsonPropertyOrder({
UserConfigDto.JSON_PROPERTY_ID,
UserConfigDto.JSON_PROPERTY_USER_NAME,
UserConfigDto.JSON_PROPERTY_SERIAL_NUMBER,
UserConfigDto.JSON_PROPERTY_FIRST_NAME,
UserConfigDto.JSON_PROPERTY_LAST_NAME,
UserConfigDto.JSON_PROPERTY_EMAIL_ADDRESS,
UserConfigDto.JSON_PROPERTY_TEAM
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UserConfigDto implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID = "id";
private java.util.UUID id;
public static final String JSON_PROPERTY_USER_NAME = "userName";
private JsonNullable userName = JsonNullable.undefined();
public static final String JSON_PROPERTY_SERIAL_NUMBER = "serialNumber";
private JsonNullable serialNumber = JsonNullable.undefined();
public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
private JsonNullable firstName = JsonNullable.undefined();
public static final String JSON_PROPERTY_LAST_NAME = "lastName";
private JsonNullable lastName = JsonNullable.undefined();
public static final String JSON_PROPERTY_EMAIL_ADDRESS = "emailAddress";
private JsonNullable emailAddress = JsonNullable.undefined();
public static final String JSON_PROPERTY_TEAM = "team";
private TeamSummaryDto team;
public UserConfigDto() {
}
public UserConfigDto id(java.util.UUID 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 java.util.UUID getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(java.util.UUID id) {
this.id = id;
}
public UserConfigDto userName(String userName) {
this.userName = JsonNullable.of(userName);
return this;
}
/**
* Get userName
* @return userName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getUserName() {
return userName.orElse(null);
}
@JsonProperty(JSON_PROPERTY_USER_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getUserName_JsonNullable() {
return userName;
}
@JsonProperty(JSON_PROPERTY_USER_NAME)
public void setUserName_JsonNullable(JsonNullable userName) {
this.userName = userName;
}
public void setUserName(String userName) {
this.userName = JsonNullable.of(userName);
}
public UserConfigDto serialNumber(String serialNumber) {
this.serialNumber = JsonNullable.of(serialNumber);
return this;
}
/**
* Get serialNumber
* @return serialNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getSerialNumber() {
return serialNumber.orElse(null);
}
@JsonProperty(JSON_PROPERTY_SERIAL_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getSerialNumber_JsonNullable() {
return serialNumber;
}
@JsonProperty(JSON_PROPERTY_SERIAL_NUMBER)
public void setSerialNumber_JsonNullable(JsonNullable serialNumber) {
this.serialNumber = serialNumber;
}
public void setSerialNumber(String serialNumber) {
this.serialNumber = JsonNullable.of(serialNumber);
}
public UserConfigDto firstName(String firstName) {
this.firstName = JsonNullable.of(firstName);
return this;
}
/**
* Get firstName
* @return firstName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getFirstName() {
return firstName.orElse(null);
}
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getFirstName_JsonNullable() {
return firstName;
}
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
public void setFirstName_JsonNullable(JsonNullable firstName) {
this.firstName = firstName;
}
public void setFirstName(String firstName) {
this.firstName = JsonNullable.of(firstName);
}
public UserConfigDto lastName(String lastName) {
this.lastName = JsonNullable.of(lastName);
return this;
}
/**
* Get lastName
* @return lastName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getLastName() {
return lastName.orElse(null);
}
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getLastName_JsonNullable() {
return lastName;
}
@JsonProperty(JSON_PROPERTY_LAST_NAME)
public void setLastName_JsonNullable(JsonNullable lastName) {
this.lastName = lastName;
}
public void setLastName(String lastName) {
this.lastName = JsonNullable.of(lastName);
}
public UserConfigDto emailAddress(String emailAddress) {
this.emailAddress = JsonNullable.of(emailAddress);
return this;
}
/**
* Get emailAddress
* @return emailAddress
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonIgnore
public String getEmailAddress() {
return emailAddress.orElse(null);
}
@JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getEmailAddress_JsonNullable() {
return emailAddress;
}
@JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS)
public void setEmailAddress_JsonNullable(JsonNullable emailAddress) {
this.emailAddress = emailAddress;
}
public void setEmailAddress(String emailAddress) {
this.emailAddress = JsonNullable.of(emailAddress);
}
public UserConfigDto team(TeamSummaryDto team) {
this.team = team;
return this;
}
/**
* Get team
* @return team
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TEAM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public TeamSummaryDto getTeam() {
return team;
}
@JsonProperty(JSON_PROPERTY_TEAM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTeam(TeamSummaryDto team) {
this.team = team;
}
/**
* Return true if this UserConfigDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserConfigDto userConfigDto = (UserConfigDto) o;
return Objects.equals(this.id, userConfigDto.id) &&
equalsNullable(this.userName, userConfigDto.userName) &&
equalsNullable(this.serialNumber, userConfigDto.serialNumber) &&
equalsNullable(this.firstName, userConfigDto.firstName) &&
equalsNullable(this.lastName, userConfigDto.lastName) &&
equalsNullable(this.emailAddress, userConfigDto.emailAddress) &&
Objects.equals(this.team, userConfigDto.team);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(id, hashCodeNullable(userName), hashCodeNullable(serialNumber), hashCodeNullable(firstName), hashCodeNullable(lastName), hashCodeNullable(emailAddress), team);
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserConfigDto {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" userName: ").append(toIndentedString(userName)).append("\n");
sb.append(" serialNumber: ").append(toIndentedString(serialNumber)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
sb.append(" team: ").append(toIndentedString(team)).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 ");
}
}