/*
 * 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.ProtectIncidentEventResponse;
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;
import java.time.OffsetDateTime;

/**
 * A Protect report associated with a user. Contains details about documented incidents, which may include fraud, investigation outcomes, or other risk events.
 */
@ApiModel(description = "A Protect report associated with a user. Contains details about documented incidents, which may include fraud, investigation outcomes, or other risk events.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class ProtectReport {
  public static final String SERIALIZED_NAME_REPORT_ID = "report_id";
  @SerializedName(SERIALIZED_NAME_REPORT_ID)
  private String reportId;

  public static final String SERIALIZED_NAME_INCIDENT_EVENT = "incident_event";
  @SerializedName(SERIALIZED_NAME_INCIDENT_EVENT)
  private ProtectIncidentEventResponse 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 static final String SERIALIZED_NAME_CREATED_AT = "created_at";
  @SerializedName(SERIALIZED_NAME_CREATED_AT)
  private OffsetDateTime createdAt;


  public ProtectReport reportId(String reportId) {
    
    this.reportId = reportId;
    return this;
  }

   /**
   * A unique identifier representing the submitted report.
   * @return reportId
  **/
  @ApiModelProperty(required = true, value = "A unique identifier representing the submitted report.")

  public String getReportId() {
    return reportId;
  }


  public void setReportId(String reportId) {
    this.reportId = reportId;
  }


  public ProtectReport incidentEvent(ProtectIncidentEventResponse incidentEvent) {
    
    this.incidentEvent = incidentEvent;
    return this;
  }

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

  public ProtectIncidentEventResponse getIncidentEvent() {
    return incidentEvent;
  }


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


  public ProtectReport 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 ProtectReport 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 ProtectReport 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 ProtectReport bankAccount(ProtectBankAccount bankAccount) {
    
    this.bankAccount = bankAccount;
    return this;
  }

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

  public ProtectBankAccount getBankAccount() {
    return bankAccount;
  }


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


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

   /**
   * ACH return code if the report type is &#x60;ACH_RETURN&#x60; (e.g. &#x60;R01&#x60;).
   * @return achReturnCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(required = true, value = "ACH return code if the report type is `ACH_RETURN` (e.g. `R01`).")

  public String getAchReturnCode() {
    return achReturnCode;
  }


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


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

   /**
   * Additional context or details about the report.
   * @return notes
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(required = true, value = "Additional context or details about the report.")

  public String getNotes() {
    return notes;
  }


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


  public ProtectReport createdAt(OffsetDateTime createdAt) {
    
    this.createdAt = createdAt;
    return this;
  }

   /**
   * The timestamp when the report was created, in ISO 8601 format (e.g., &#39;2020-07-24T03:26:02Z&#39;).
   * @return createdAt
  **/
  @ApiModelProperty(required = true, value = "The timestamp when the report was created, in ISO 8601 format (e.g., '2020-07-24T03:26:02Z').")

  public OffsetDateTime getCreatedAt() {
    return createdAt;
  }


  public void setCreatedAt(OffsetDateTime createdAt) {
    this.createdAt = createdAt;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProtectReport protectReport = (ProtectReport) o;
    return Objects.equals(this.reportId, protectReport.reportId) &&
        Objects.equals(this.incidentEvent, protectReport.incidentEvent) &&
        Objects.equals(this.reportConfidence, protectReport.reportConfidence) &&
        Objects.equals(this.reportType, protectReport.reportType) &&
        Objects.equals(this.reportSource, protectReport.reportSource) &&
        Objects.equals(this.bankAccount, protectReport.bankAccount) &&
        Objects.equals(this.achReturnCode, protectReport.achReturnCode) &&
        Objects.equals(this.notes, protectReport.notes) &&
        Objects.equals(this.createdAt, protectReport.createdAt);
  }

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

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProtectReport {\n");
    sb.append("    reportId: ").append(toIndentedString(reportId)).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("    createdAt: ").append(toIndentedString(createdAt)).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    ");
  }

}

