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

com.plaid.client.model.WatchlistScreeningEntityProgramGetResponse 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.503.5
 * 
 *
 * 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.EntityWatchlistCode;
import com.plaid.client.model.ProgramNameSensitivity;
import com.plaid.client.model.WatchlistScreeningAuditTrail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

/**
 * A program that configures the active lists, search parameters, and other behavior for initial and ongoing screening of entities.
 */
@ApiModel(description = "A program that configures the active lists, search parameters, and other behavior for initial and ongoing screening of entities.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-28T21:00:55.745394Z[Etc/UTC]")
public class WatchlistScreeningEntityProgramGetResponse {
  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

  public static final String SERIALIZED_NAME_CREATED_AT = "created_at";
  @SerializedName(SERIALIZED_NAME_CREATED_AT)
  private java.sql.Timestamp createdAt;

  public static final String SERIALIZED_NAME_IS_RESCANNING_ENABLED = "is_rescanning_enabled";
  @SerializedName(SERIALIZED_NAME_IS_RESCANNING_ENABLED)
  private Boolean isRescanningEnabled;

  public static final String SERIALIZED_NAME_LISTS_ENABLED = "lists_enabled";
  @SerializedName(SERIALIZED_NAME_LISTS_ENABLED)
  private Set listsEnabled = new LinkedHashSet<>();

  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

  public static final String SERIALIZED_NAME_NAME_SENSITIVITY = "name_sensitivity";
  @SerializedName(SERIALIZED_NAME_NAME_SENSITIVITY)
  private ProgramNameSensitivity nameSensitivity;

  public static final String SERIALIZED_NAME_AUDIT_TRAIL = "audit_trail";
  @SerializedName(SERIALIZED_NAME_AUDIT_TRAIL)
  private WatchlistScreeningAuditTrail auditTrail;

  public static final String SERIALIZED_NAME_IS_ARCHIVED = "is_archived";
  @SerializedName(SERIALIZED_NAME_IS_ARCHIVED)
  private Boolean isArchived;

  public static final String SERIALIZED_NAME_REQUEST_ID = "request_id";
  @SerializedName(SERIALIZED_NAME_REQUEST_ID)
  private String requestId;


  public WatchlistScreeningEntityProgramGetResponse id(String id) {
    
    this.id = id;
    return this;
  }

   /**
   * ID of the associated entity program.
   * @return id
  **/
  @ApiModelProperty(example = "entprg_2eRPsDnL66rZ7H", required = true, value = "ID of the associated entity program.")

  public String getId() {
    return id;
  }


  public void setId(String id) {
    this.id = id;
  }


  public WatchlistScreeningEntityProgramGetResponse createdAt(java.sql.Timestamp createdAt) {
    
    this.createdAt = createdAt;
    return this;
  }

   /**
   * Get createdAt
   * @return createdAt
  **/
  @ApiModelProperty(required = true, value = "")

  public java.sql.Timestamp getCreatedAt() {
    return createdAt;
  }


  public void setCreatedAt(java.sql.Timestamp createdAt) {
    this.createdAt = createdAt;
  }


  public WatchlistScreeningEntityProgramGetResponse isRescanningEnabled(Boolean isRescanningEnabled) {
    
    this.isRescanningEnabled = isRescanningEnabled;
    return this;
  }

   /**
   * Indicator specifying whether the program is enabled and will perform daily rescans.
   * @return isRescanningEnabled
  **/
  @ApiModelProperty(example = "true", required = true, value = "Indicator specifying whether the program is enabled and will perform daily rescans.")

  public Boolean getIsRescanningEnabled() {
    return isRescanningEnabled;
  }


  public void setIsRescanningEnabled(Boolean isRescanningEnabled) {
    this.isRescanningEnabled = isRescanningEnabled;
  }


  public WatchlistScreeningEntityProgramGetResponse listsEnabled(Set listsEnabled) {
    
    this.listsEnabled = listsEnabled;
    return this;
  }

  public WatchlistScreeningEntityProgramGetResponse addListsEnabledItem(EntityWatchlistCode listsEnabledItem) {
    this.listsEnabled.add(listsEnabledItem);
    return this;
  }

   /**
   * Watchlists enabled for the associated program
   * @return listsEnabled
  **/
  @ApiModelProperty(example = "[\"EU_CON\"]", required = true, value = "Watchlists enabled for the associated program")

  public Set getListsEnabled() {
    return listsEnabled;
  }


  public void setListsEnabled(Set listsEnabled) {
    this.listsEnabled = listsEnabled;
  }


  public WatchlistScreeningEntityProgramGetResponse name(String name) {
    
    this.name = name;
    return this;
  }

   /**
   * A name for the entity program to define its purpose. For example, \"High Risk Organizations\" or \"Applicants\".
   * @return name
  **/
  @ApiModelProperty(example = "Sample Program", required = true, value = "A name for the entity program to define its purpose. For example, \"High Risk Organizations\" or \"Applicants\".")

  public String getName() {
    return name;
  }


  public void setName(String name) {
    this.name = name;
  }


  public WatchlistScreeningEntityProgramGetResponse nameSensitivity(ProgramNameSensitivity nameSensitivity) {
    
    this.nameSensitivity = nameSensitivity;
    return this;
  }

   /**
   * Get nameSensitivity
   * @return nameSensitivity
  **/
  @ApiModelProperty(required = true, value = "")

  public ProgramNameSensitivity getNameSensitivity() {
    return nameSensitivity;
  }


  public void setNameSensitivity(ProgramNameSensitivity nameSensitivity) {
    this.nameSensitivity = nameSensitivity;
  }


  public WatchlistScreeningEntityProgramGetResponse auditTrail(WatchlistScreeningAuditTrail auditTrail) {
    
    this.auditTrail = auditTrail;
    return this;
  }

   /**
   * Get auditTrail
   * @return auditTrail
  **/
  @ApiModelProperty(required = true, value = "")

  public WatchlistScreeningAuditTrail getAuditTrail() {
    return auditTrail;
  }


  public void setAuditTrail(WatchlistScreeningAuditTrail auditTrail) {
    this.auditTrail = auditTrail;
  }


  public WatchlistScreeningEntityProgramGetResponse isArchived(Boolean isArchived) {
    
    this.isArchived = isArchived;
    return this;
  }

   /**
   * Archived programs are read-only and cannot screen new customers nor participate in ongoing monitoring.
   * @return isArchived
  **/
  @ApiModelProperty(example = "false", required = true, value = "Archived programs are read-only and cannot screen new customers nor participate in ongoing monitoring.")

  public Boolean getIsArchived() {
    return isArchived;
  }


  public void setIsArchived(Boolean isArchived) {
    this.isArchived = isArchived;
  }


  public WatchlistScreeningEntityProgramGetResponse requestId(String requestId) {
    
    this.requestId = requestId;
    return this;
  }

   /**
   * A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
   * @return requestId
  **/
  @ApiModelProperty(required = true, value = "A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.")

  public String getRequestId() {
    return requestId;
  }


  public void setRequestId(String requestId) {
    this.requestId = requestId;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    WatchlistScreeningEntityProgramGetResponse watchlistScreeningEntityProgramGetResponse = (WatchlistScreeningEntityProgramGetResponse) o;
    return Objects.equals(this.id, watchlistScreeningEntityProgramGetResponse.id) &&
        Objects.equals(this.createdAt, watchlistScreeningEntityProgramGetResponse.createdAt) &&
        Objects.equals(this.isRescanningEnabled, watchlistScreeningEntityProgramGetResponse.isRescanningEnabled) &&
        Objects.equals(this.listsEnabled, watchlistScreeningEntityProgramGetResponse.listsEnabled) &&
        Objects.equals(this.name, watchlistScreeningEntityProgramGetResponse.name) &&
        Objects.equals(this.nameSensitivity, watchlistScreeningEntityProgramGetResponse.nameSensitivity) &&
        Objects.equals(this.auditTrail, watchlistScreeningEntityProgramGetResponse.auditTrail) &&
        Objects.equals(this.isArchived, watchlistScreeningEntityProgramGetResponse.isArchived) &&
        Objects.equals(this.requestId, watchlistScreeningEntityProgramGetResponse.requestId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, createdAt, isRescanningEnabled, listsEnabled, name, nameSensitivity, auditTrail, isArchived, requestId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class WatchlistScreeningEntityProgramGetResponse {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
    sb.append("    isRescanningEnabled: ").append(toIndentedString(isRescanningEnabled)).append("\n");
    sb.append("    listsEnabled: ").append(toIndentedString(listsEnabled)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    nameSensitivity: ").append(toIndentedString(nameSensitivity)).append("\n");
    sb.append("    auditTrail: ").append(toIndentedString(auditTrail)).append("\n");
    sb.append("    isArchived: ").append(toIndentedString(isArchived)).append("\n");
    sb.append("    requestId: ").append(toIndentedString(requestId)).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