/*
 * 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.680.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.ProtectBankAccount;
import com.plaid.client.model.ProtectIncidentEvent;
import com.plaid.client.model.ProtectReportConfidence;
import com.plaid.client.model.ProtectReportSource;
import com.plaid.client.model.ProtectReportType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * Request object for &#x60;/protect/report/create&#x60;. Must provide either &#x60;user_id&#x60; or at least one of the following identifiers in &#x60;incident_event&#x60;: &#x60;link_session_id&#x60;, &#x60;idv_session_id&#x60;, &#x60;protect_event_id&#x60;, or &#x60;signal_client_transaction_id&#x60;.
 */
@ApiModel(description = "Request object for `/protect/report/create`. Must provide either `user_id` or at least one of the following identifiers in `incident_event`: `link_session_id`, `idv_session_id`, `protect_event_id`, or `signal_client_transaction_id`.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class ProtectReportCreateRequest {
  public static final String SERIALIZED_NAME_CLIENT_ID = "client_id";
  @SerializedName(SERIALIZED_NAME_CLIENT_ID)
  private String clientId;

  public static final String SERIALIZED_NAME_SECRET = "secret";
  @SerializedName(SERIALIZED_NAME_SECRET)
  private String secret;

  public static final String SERIALIZED_NAME_USER_ID = "user_id";
  @SerializedName(SERIALIZED_NAME_USER_ID)
  private String userId;

  public static final String SERIALIZED_NAME_INCIDENT_EVENT = "incident_event";
  @SerializedName(SERIALIZED_NAME_INCIDENT_EVENT)
  private ProtectIncidentEvent incidentEvent;

  public static final String SERIALIZED_NAME_REPORT_CONFIDENCE = "report_confidence";
  @SerializedName(SERIALIZED_NAME_REPORT_CONFIDENCE)
  private ProtectReportConfidence reportConfidence;

  public static final String SERIALIZED_NAME_REPORT_TYPE = "report_type";
  @SerializedName(SERIALIZED_NAME_REPORT_TYPE)
  private ProtectReportType reportType;

  public static final String SERIALIZED_NAME_REPORT_SOURCE = "report_source";
  @SerializedName(SERIALIZED_NAME_REPORT_SOURCE)
  private ProtectReportSource reportSource;

  public static final String SERIALIZED_NAME_BANK_ACCOUNT = "bank_account";
  @SerializedName(SERIALIZED_NAME_BANK_ACCOUNT)
  private ProtectBankAccount bankAccount;

  public static final String SERIALIZED_NAME_ACH_RETURN_CODE = "ach_return_code";
  @SerializedName(SERIALIZED_NAME_ACH_RETURN_CODE)
  private String achReturnCode;

  public static final String SERIALIZED_NAME_NOTES = "notes";
  @SerializedName(SERIALIZED_NAME_NOTES)
  private String notes;


  public ProtectReportCreateRequest clientId(String clientId) {
    
    this.clientId = clientId;
    return this;
  }

   /**
   * Your Plaid API &#x60;client_id&#x60;. The &#x60;client_id&#x60; is required and may be provided either in the &#x60;PLAID-CLIENT-ID&#x60; header or as part of a request body.
   * @return clientId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Your Plaid API `client_id`. The `client_id` is required and may be provided either in the `PLAID-CLIENT-ID` header or as part of a request body.")

  public String getClientId() {
    return clientId;
  }


  public void setClientId(String clientId) {
    this.clientId = clientId;
  }


  public ProtectReportCreateRequest secret(String secret) {
    
    this.secret = secret;
    return this;
  }

   /**
   * Your Plaid API &#x60;secret&#x60;. The &#x60;secret&#x60; is required and may be provided either in the &#x60;PLAID-SECRET&#x60; header or as part of a request body.
   * @return secret
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Your Plaid API `secret`. The `secret` is required and may be provided either in the `PLAID-SECRET` header or as part of a request body.")

  public String getSecret() {
    return secret;
  }


  public void setSecret(String secret) {
    this.secret = secret;
  }


  public ProtectReportCreateRequest userId(String userId) {
    
    this.userId = userId;
    return this;
  }

   /**
   * The Plaid User ID associated with the report.
   * @return userId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The Plaid User ID associated with the report.")

  public String getUserId() {
    return userId;
  }


  public void setUserId(String userId) {
    this.userId = userId;
  }


  public ProtectReportCreateRequest incidentEvent(ProtectIncidentEvent incidentEvent) {
    
    this.incidentEvent = incidentEvent;
    return this;
  }

   /**
   * Get incidentEvent
   * @return incidentEvent
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public ProtectIncidentEvent getIncidentEvent() {
    return incidentEvent;
  }


  public void setIncidentEvent(ProtectIncidentEvent incidentEvent) {
    this.incidentEvent = incidentEvent;
  }


  public ProtectReportCreateRequest reportConfidence(ProtectReportConfidence reportConfidence) {
    
    this.reportConfidence = reportConfidence;
    return this;
  }

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

  public ProtectReportConfidence getReportConfidence() {
    return reportConfidence;
  }


  public void setReportConfidence(ProtectReportConfidence reportConfidence) {
    this.reportConfidence = reportConfidence;
  }


  public ProtectReportCreateRequest reportType(ProtectReportType reportType) {
    
    this.reportType = reportType;
    return this;
  }

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

  public ProtectReportType getReportType() {
    return reportType;
  }


  public void setReportType(ProtectReportType reportType) {
    this.reportType = reportType;
  }


  public ProtectReportCreateRequest reportSource(ProtectReportSource reportSource) {
    
    this.reportSource = reportSource;
    return this;
  }

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

  public ProtectReportSource getReportSource() {
    return reportSource;
  }


  public void setReportSource(ProtectReportSource reportSource) {
    this.reportSource = reportSource;
  }


  public ProtectReportCreateRequest bankAccount(ProtectBankAccount bankAccount) {
    
    this.bankAccount = bankAccount;
    return this;
  }

   /**
   * Get bankAccount
   * @return bankAccount
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public ProtectBankAccount getBankAccount() {
    return bankAccount;
  }


  public void setBankAccount(ProtectBankAccount bankAccount) {
    this.bankAccount = bankAccount;
  }


  public ProtectReportCreateRequest achReturnCode(String achReturnCode) {
    
    this.achReturnCode = achReturnCode;
    return this;
  }

   /**
   * Must be a valid ACH return code (e.g. &#x60;R01&#x60;), required if &#x60;report_type&#x60; is &#x60;ACH_RETURN&#x60;.
   * @return achReturnCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Must be a valid ACH return code (e.g. `R01`), required if `report_type` is `ACH_RETURN`.")

  public String getAchReturnCode() {
    return achReturnCode;
  }


  public void setAchReturnCode(String achReturnCode) {
    this.achReturnCode = achReturnCode;
  }


  public ProtectReportCreateRequest notes(String notes) {
    
    this.notes = notes;
    return this;
  }

   /**
   * Additional context or details about the report, required if &#x60;report_type&#x60; is &#x60;OTHER&#x60;.
   * @return notes
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Additional context or details about the report, required if `report_type` is `OTHER`.")

  public String getNotes() {
    return notes;
  }


  public void setNotes(String notes) {
    this.notes = notes;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProtectReportCreateRequest protectReportCreateRequest = (ProtectReportCreateRequest) o;
    return Objects.equals(this.clientId, protectReportCreateRequest.clientId) &&
        Objects.equals(this.secret, protectReportCreateRequest.secret) &&
        Objects.equals(this.userId, protectReportCreateRequest.userId) &&
        Objects.equals(this.incidentEvent, protectReportCreateRequest.incidentEvent) &&
        Objects.equals(this.reportConfidence, protectReportCreateRequest.reportConfidence) &&
        Objects.equals(this.reportType, protectReportCreateRequest.reportType) &&
        Objects.equals(this.reportSource, protectReportCreateRequest.reportSource) &&
        Objects.equals(this.bankAccount, protectReportCreateRequest.bankAccount) &&
        Objects.equals(this.achReturnCode, protectReportCreateRequest.achReturnCode) &&
        Objects.equals(this.notes, protectReportCreateRequest.notes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(clientId, secret, userId, incidentEvent, reportConfidence, reportType, reportSource, bankAccount, achReturnCode, notes);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProtectReportCreateRequest {\n");
    sb.append("    clientId: ").append(toIndentedString(clientId)).append("\n");
    sb.append("    secret: ").append(toIndentedString(secret)).append("\n");
    sb.append("    userId: ").append(toIndentedString(userId)).append("\n");
    sb.append("    incidentEvent: ").append(toIndentedString(incidentEvent)).append("\n");
    sb.append("    reportConfidence: ").append(toIndentedString(reportConfidence)).append("\n");
    sb.append("    reportType: ").append(toIndentedString(reportType)).append("\n");
    sb.append("    reportSource: ").append(toIndentedString(reportSource)).append("\n");
    sb.append("    bankAccount: ").append(toIndentedString(bankAccount)).append("\n");
    sb.append("    achReturnCode: ").append(toIndentedString(achReturnCode)).append("\n");
    sb.append("    notes: ").append(toIndentedString(notes)).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    ");
  }

}

