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

com.plaid.client.model.ScreeningHitData Maven / Gradle / Ivy

There is a newer version: 29.0.0
Show newest version
/*
 * The Plaid API
 * The Plaid REST API. Please see https://plaid.com/docs/api for more details.
 *
 * The version of the OpenAPI document: 2020-09-14_1.565.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.plaid.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 com.plaid.client.model.GenericScreeningHitLocationItems;
import com.plaid.client.model.ScreeningHitDateOfBirthItem;
import com.plaid.client.model.ScreeningHitDocumentsItems;
import com.plaid.client.model.ScreeningHitNamesItems;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * Information associated with the watchlist hit
 */
@ApiModel(description = "Information associated with the watchlist hit")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-17T16:42:02.150702Z[Etc/UTC]")
public class ScreeningHitData {
  public static final String SERIALIZED_NAME_DATES_OF_BIRTH = "dates_of_birth";
  @SerializedName(SERIALIZED_NAME_DATES_OF_BIRTH)
  private List datesOfBirth = null;

  public static final String SERIALIZED_NAME_DOCUMENTS = "documents";
  @SerializedName(SERIALIZED_NAME_DOCUMENTS)
  private List documents = null;

  public static final String SERIALIZED_NAME_LOCATIONS = "locations";
  @SerializedName(SERIALIZED_NAME_LOCATIONS)
  private List locations = null;

  public static final String SERIALIZED_NAME_NAMES = "names";
  @SerializedName(SERIALIZED_NAME_NAMES)
  private List names = null;


  public ScreeningHitData datesOfBirth(List datesOfBirth) {
    
    this.datesOfBirth = datesOfBirth;
    return this;
  }

  public ScreeningHitData addDatesOfBirthItem(ScreeningHitDateOfBirthItem datesOfBirthItem) {
    if (this.datesOfBirth == null) {
      this.datesOfBirth = new ArrayList<>();
    }
    this.datesOfBirth.add(datesOfBirthItem);
    return this;
  }

   /**
   * Dates of birth associated with the watchlist hit
   * @return datesOfBirth
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Dates of birth associated with the watchlist hit")

  public List getDatesOfBirth() {
    return datesOfBirth;
  }


  public void setDatesOfBirth(List datesOfBirth) {
    this.datesOfBirth = datesOfBirth;
  }


  public ScreeningHitData documents(List documents) {
    
    this.documents = documents;
    return this;
  }

  public ScreeningHitData addDocumentsItem(ScreeningHitDocumentsItems documentsItem) {
    if (this.documents == null) {
      this.documents = new ArrayList<>();
    }
    this.documents.add(documentsItem);
    return this;
  }

   /**
   * Documents associated with the watchlist hit
   * @return documents
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Documents associated with the watchlist hit")

  public List getDocuments() {
    return documents;
  }


  public void setDocuments(List documents) {
    this.documents = documents;
  }


  public ScreeningHitData locations(List locations) {
    
    this.locations = locations;
    return this;
  }

  public ScreeningHitData addLocationsItem(GenericScreeningHitLocationItems locationsItem) {
    if (this.locations == null) {
      this.locations = new ArrayList<>();
    }
    this.locations.add(locationsItem);
    return this;
  }

   /**
   * Locations associated with the watchlist hit
   * @return locations
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Locations associated with the watchlist hit")

  public List getLocations() {
    return locations;
  }


  public void setLocations(List locations) {
    this.locations = locations;
  }


  public ScreeningHitData names(List names) {
    
    this.names = names;
    return this;
  }

  public ScreeningHitData addNamesItem(ScreeningHitNamesItems namesItem) {
    if (this.names == null) {
      this.names = new ArrayList<>();
    }
    this.names.add(namesItem);
    return this;
  }

   /**
   * Names associated with the watchlist hit
   * @return names
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Names associated with the watchlist hit")

  public List getNames() {
    return names;
  }


  public void setNames(List names) {
    this.names = names;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ScreeningHitData screeningHitData = (ScreeningHitData) o;
    return Objects.equals(this.datesOfBirth, screeningHitData.datesOfBirth) &&
        Objects.equals(this.documents, screeningHitData.documents) &&
        Objects.equals(this.locations, screeningHitData.locations) &&
        Objects.equals(this.names, screeningHitData.names);
  }

  @Override
  public int hashCode() {
    return Objects.hash(datesOfBirth, documents, locations, names);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ScreeningHitData {\n");
    sb.append("    datesOfBirth: ").append(toIndentedString(datesOfBirth)).append("\n");
    sb.append("    documents: ").append(toIndentedString(documents)).append("\n");
    sb.append("    locations: ").append(toIndentedString(locations)).append("\n");
    sb.append("    names: ").append(toIndentedString(names)).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 - 2024 Weber Informatics LLC | Privacy Policy