com.confidentify.client.model.ConfidentifyUserResponse Maven / Gradle / Ivy
/*
* Confidentify API
* Services that let you build confidence and identify matches in customer data. ## Features overview * Contact data processing services (tagged with `process`) which offer validation and enrichment backed by inference and knowledge on complex data types such as names, email addresses, phone numbers. * Data matching and searching services (tagged with `matching`) that allow you to identify duplicated data or matches against third party contact data list. * Dataset management services (tagged with `dataset`) that allow record storage and retrieval. ## Integrator notes: * Use the `/auth` endpoint to get an access token. Access tokens are temporary, so design the client the be capable of renewing it. * The APIs are rate-limited, so design the client to be capable of retrying with some delay upon HTTP 429 responses.
*
* The version of the OpenAPI document: 1.1.0
*
*
* 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.confidentify.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
/**
* ConfidentifyUserResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-04-21T21:21:06.848810800+02:00[Europe/Paris]")
public class ConfidentifyUserResponse {
public static final String SERIALIZED_NAME_USERNAME = "username";
@SerializedName(SERIALIZED_NAME_USERNAME)
private String username;
public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id";
@SerializedName(SERIALIZED_NAME_ACCOUNT_ID)
private String accountId;
public static final String SERIALIZED_NAME_LOGIN_COUNT = "login_count";
@SerializedName(SERIALIZED_NAME_LOGIN_COUNT)
private BigDecimal loginCount;
public static final String SERIALIZED_NAME_LOGIN_AT = "login_at";
@SerializedName(SERIALIZED_NAME_LOGIN_AT)
private OffsetDateTime loginAt;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_IMAGE_URL = "image_url";
@SerializedName(SERIALIZED_NAME_IMAGE_URL)
private String imageUrl;
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
private String email;
public ConfidentifyUserResponse username(String username) {
this.username = username;
return this;
}
/**
* Get username
* @return username
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public ConfidentifyUserResponse accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Get accountId
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public ConfidentifyUserResponse loginCount(BigDecimal loginCount) {
this.loginCount = loginCount;
return this;
}
/**
* A running approximate count of how many times the user has logged in.
* @return loginCount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A running approximate count of how many times the user has logged in.")
public BigDecimal getLoginCount() {
return loginCount;
}
public void setLoginCount(BigDecimal loginCount) {
this.loginCount = loginCount;
}
public ConfidentifyUserResponse loginAt(OffsetDateTime loginAt) {
this.loginAt = loginAt;
return this;
}
/**
* The time of the user's last login
* @return loginAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The time of the user's last login")
public OffsetDateTime getLoginAt() {
return loginAt;
}
public void setLoginAt(OffsetDateTime loginAt) {
this.loginAt = loginAt;
}
public ConfidentifyUserResponse name(String name) {
this.name = name;
return this;
}
/**
* The user's name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The user's name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ConfidentifyUserResponse imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* The user's profile image
* @return imageUrl
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The user's profile image")
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public ConfidentifyUserResponse email(String email) {
this.email = email;
return this;
}
/**
* The user's email
* @return email
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The user's email")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ConfidentifyUserResponse confidentifyUserResponse = (ConfidentifyUserResponse) o;
return Objects.equals(this.username, confidentifyUserResponse.username) &&
Objects.equals(this.accountId, confidentifyUserResponse.accountId) &&
Objects.equals(this.loginCount, confidentifyUserResponse.loginCount) &&
Objects.equals(this.loginAt, confidentifyUserResponse.loginAt) &&
Objects.equals(this.name, confidentifyUserResponse.name) &&
Objects.equals(this.imageUrl, confidentifyUserResponse.imageUrl) &&
Objects.equals(this.email, confidentifyUserResponse.email);
}
@Override
public int hashCode() {
return Objects.hash(username, accountId, loginCount, loginAt, name, imageUrl, email);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConfidentifyUserResponse {\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" loginCount: ").append(toIndentedString(loginCount)).append("\n");
sb.append(" loginAt: ").append(toIndentedString(loginAt)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy