com.confidentify.client.model.PhoneResponseRecord Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of confidentify-client-java Show documentation
Show all versions of confidentify-client-java Show documentation
This project provides a Java client for the Conf·ident·ify APIs.
/*
* 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.0.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.confidentify.client.model.ProcessorOutcome;
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;
/**
* PhoneResponseRecord
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-04-14T23:15:31.038649800+02:00[Europe/Paris]")
public class PhoneResponseRecord {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_PHONE_E164 = "phone_E164";
@SerializedName(SERIALIZED_NAME_PHONE_E164)
private String phoneE164;
public static final String SERIALIZED_NAME_PHONE_INTERNATIONAL = "phone_international";
@SerializedName(SERIALIZED_NAME_PHONE_INTERNATIONAL)
private String phoneInternational;
public static final String SERIALIZED_NAME_PHONE_COUNTRY_CODE = "phone_country_code";
@SerializedName(SERIALIZED_NAME_PHONE_COUNTRY_CODE)
private Integer phoneCountryCode;
public static final String SERIALIZED_NAME_PHONE_NATIONAL = "phone_national";
@SerializedName(SERIALIZED_NAME_PHONE_NATIONAL)
private String phoneNational;
public static final String SERIALIZED_NAME_OUTCOME = "outcome";
@SerializedName(SERIALIZED_NAME_OUTCOME)
private ProcessorOutcome outcome = null;
public PhoneResponseRecord id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "By7P02fmNz", value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public PhoneResponseRecord phoneE164(String phoneE164) {
this.phoneE164 = phoneE164;
return this;
}
/**
* Get phoneE164
* @return phoneE164
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "442083661177", value = "")
public String getPhoneE164() {
return phoneE164;
}
public void setPhoneE164(String phoneE164) {
this.phoneE164 = phoneE164;
}
public PhoneResponseRecord phoneInternational(String phoneInternational) {
this.phoneInternational = phoneInternational;
return this;
}
/**
* Get phoneInternational
* @return phoneInternational
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "+44 20 8366 1177", value = "")
public String getPhoneInternational() {
return phoneInternational;
}
public void setPhoneInternational(String phoneInternational) {
this.phoneInternational = phoneInternational;
}
public PhoneResponseRecord phoneCountryCode(Integer phoneCountryCode) {
this.phoneCountryCode = phoneCountryCode;
return this;
}
/**
* Get phoneCountryCode
* @return phoneCountryCode
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "44", value = "")
public Integer getPhoneCountryCode() {
return phoneCountryCode;
}
public void setPhoneCountryCode(Integer phoneCountryCode) {
this.phoneCountryCode = phoneCountryCode;
}
public PhoneResponseRecord phoneNational(String phoneNational) {
this.phoneNational = phoneNational;
return this;
}
/**
* Get phoneNational
* @return phoneNational
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "020 8366 1177", value = "")
public String getPhoneNational() {
return phoneNational;
}
public void setPhoneNational(String phoneNational) {
this.phoneNational = phoneNational;
}
public PhoneResponseRecord outcome(ProcessorOutcome outcome) {
this.outcome = outcome;
return this;
}
/**
* Get outcome
* @return outcome
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public ProcessorOutcome getOutcome() {
return outcome;
}
public void setOutcome(ProcessorOutcome outcome) {
this.outcome = outcome;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PhoneResponseRecord phoneResponseRecord = (PhoneResponseRecord) o;
return Objects.equals(this.id, phoneResponseRecord.id) &&
Objects.equals(this.phoneE164, phoneResponseRecord.phoneE164) &&
Objects.equals(this.phoneInternational, phoneResponseRecord.phoneInternational) &&
Objects.equals(this.phoneCountryCode, phoneResponseRecord.phoneCountryCode) &&
Objects.equals(this.phoneNational, phoneResponseRecord.phoneNational) &&
Objects.equals(this.outcome, phoneResponseRecord.outcome);
}
@Override
public int hashCode() {
return Objects.hash(id, phoneE164, phoneInternational, phoneCountryCode, phoneNational, outcome);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PhoneResponseRecord {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" phoneE164: ").append(toIndentedString(phoneE164)).append("\n");
sb.append(" phoneInternational: ").append(toIndentedString(phoneInternational)).append("\n");
sb.append(" phoneCountryCode: ").append(toIndentedString(phoneCountryCode)).append("\n");
sb.append(" phoneNational: ").append(toIndentedString(phoneNational)).append("\n");
sb.append(" outcome: ").append(toIndentedString(outcome)).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