All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.confidentify.client.model.PersonNameResponseRecordEntity Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
/*
 * 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.PersonNameAll;
import com.confidentify.client.model.PersonNameResponseRecordEntityAllOf;
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.util.ArrayList;
import java.util.List;

/**
 * PersonNameResponseRecordEntity
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-04-14T23:15:31.038649800+02:00[Europe/Paris]")
public class PersonNameResponseRecordEntity {
  public static final String SERIALIZED_NAME_GIVEN = "given";
  @SerializedName(SERIALIZED_NAME_GIVEN)
  private String given;

  public static final String SERIALIZED_NAME_MIDDLE = "middle";
  @SerializedName(SERIALIZED_NAME_MIDDLE)
  private String middle;

  public static final String SERIALIZED_NAME_FAMILY = "family";
  @SerializedName(SERIALIZED_NAME_FAMILY)
  private String family;

  public static final String SERIALIZED_NAME_SUFFIX = "suffix";
  @SerializedName(SERIALIZED_NAME_SUFFIX)
  private String suffix;

  public static final String SERIALIZED_NAME_FAMILY_PREFIX = "family_prefix";
  @SerializedName(SERIALIZED_NAME_FAMILY_PREFIX)
  private String familyPrefix;

  public static final String SERIALIZED_NAME_FAMILY_MAIN = "family_main";
  @SerializedName(SERIALIZED_NAME_FAMILY_MAIN)
  private String familyMain;

  public static final String SERIALIZED_NAME_NICKNAMES = "nicknames";
  @SerializedName(SERIALIZED_NAME_NICKNAMES)
  private List nicknames = null;

  public static final String SERIALIZED_NAME_NAME_FORMATTED = "name_formatted";
  @SerializedName(SERIALIZED_NAME_NAME_FORMATTED)
  private String nameFormatted;


  public PersonNameResponseRecordEntity given(String given) {
    
    this.given = given;
    return this;
  }

   /**
   * Get given
   * @return given
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Bill", value = "")

  public String getGiven() {
    return given;
  }


  public void setGiven(String given) {
    this.given = given;
  }


  public PersonNameResponseRecordEntity middle(String middle) {
    
    this.middle = middle;
    return this;
  }

   /**
   * Get middle
   * @return middle
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Randal", value = "")

  public String getMiddle() {
    return middle;
  }


  public void setMiddle(String middle) {
    this.middle = middle;
  }


  public PersonNameResponseRecordEntity family(String family) {
    
    this.family = family;
    return this;
  }

   /**
   * Get family
   * @return family
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "van Gogh", value = "")

  public String getFamily() {
    return family;
  }


  public void setFamily(String family) {
    this.family = family;
  }


  public PersonNameResponseRecordEntity suffix(String suffix) {
    
    this.suffix = suffix;
    return this;
  }

   /**
   * Get suffix
   * @return suffix
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Senior", value = "")

  public String getSuffix() {
    return suffix;
  }


  public void setSuffix(String suffix) {
    this.suffix = suffix;
  }


  public PersonNameResponseRecordEntity familyPrefix(String familyPrefix) {
    
    this.familyPrefix = familyPrefix;
    return this;
  }

   /**
   * Get familyPrefix
   * @return familyPrefix
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "van", value = "")

  public String getFamilyPrefix() {
    return familyPrefix;
  }


  public void setFamilyPrefix(String familyPrefix) {
    this.familyPrefix = familyPrefix;
  }


  public PersonNameResponseRecordEntity familyMain(String familyMain) {
    
    this.familyMain = familyMain;
    return this;
  }

   /**
   * Get familyMain
   * @return familyMain
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Gogh", value = "")

  public String getFamilyMain() {
    return familyMain;
  }


  public void setFamilyMain(String familyMain) {
    this.familyMain = familyMain;
  }


  public PersonNameResponseRecordEntity nicknames(List nicknames) {
    
    this.nicknames = nicknames;
    return this;
  }

  public PersonNameResponseRecordEntity addNicknamesItem(String nicknamesItem) {
    if (this.nicknames == null) {
      this.nicknames = new ArrayList<>();
    }
    this.nicknames.add(nicknamesItem);
    return this;
  }

   /**
   * Get nicknames
   * @return nicknames
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "[\"Billy\",\"Will\",\"William\"]", value = "")

  public List getNicknames() {
    return nicknames;
  }


  public void setNicknames(List nicknames) {
    this.nicknames = nicknames;
  }


  public PersonNameResponseRecordEntity nameFormatted(String nameFormatted) {
    
    this.nameFormatted = nameFormatted;
    return this;
  }

   /**
   * Get nameFormatted
   * @return nameFormatted
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Bill Randal van Gogh", value = "")

  public String getNameFormatted() {
    return nameFormatted;
  }


  public void setNameFormatted(String nameFormatted) {
    this.nameFormatted = nameFormatted;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PersonNameResponseRecordEntity personNameResponseRecordEntity = (PersonNameResponseRecordEntity) o;
    return Objects.equals(this.given, personNameResponseRecordEntity.given) &&
        Objects.equals(this.middle, personNameResponseRecordEntity.middle) &&
        Objects.equals(this.family, personNameResponseRecordEntity.family) &&
        Objects.equals(this.suffix, personNameResponseRecordEntity.suffix) &&
        Objects.equals(this.familyPrefix, personNameResponseRecordEntity.familyPrefix) &&
        Objects.equals(this.familyMain, personNameResponseRecordEntity.familyMain) &&
        Objects.equals(this.nicknames, personNameResponseRecordEntity.nicknames) &&
        Objects.equals(this.nameFormatted, personNameResponseRecordEntity.nameFormatted);
  }

  @Override
  public int hashCode() {
    return Objects.hash(given, middle, family, suffix, familyPrefix, familyMain, nicknames, nameFormatted);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PersonNameResponseRecordEntity {\n");
    sb.append("    given: ").append(toIndentedString(given)).append("\n");
    sb.append("    middle: ").append(toIndentedString(middle)).append("\n");
    sb.append("    family: ").append(toIndentedString(family)).append("\n");
    sb.append("    suffix: ").append(toIndentedString(suffix)).append("\n");
    sb.append("    familyPrefix: ").append(toIndentedString(familyPrefix)).append("\n");
    sb.append("    familyMain: ").append(toIndentedString(familyMain)).append("\n");
    sb.append("    nicknames: ").append(toIndentedString(nicknames)).append("\n");
    sb.append("    nameFormatted: ").append(toIndentedString(nameFormatted)).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