/*
 * 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.ProtectIncidentAmount;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.OffsetDateTime;

/**
 * details about the incident event.
 */
@ApiModel(description = "details about the incident event.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class ProtectIncidentEvent {
  public static final String SERIALIZED_NAME_PROTECT_EVENT_ID = "protect_event_id";
  @SerializedName(SERIALIZED_NAME_PROTECT_EVENT_ID)
  private String protectEventId;

  public static final String SERIALIZED_NAME_LINK_SESSION_ID = "link_session_id";
  @SerializedName(SERIALIZED_NAME_LINK_SESSION_ID)
  private String linkSessionId;

  public static final String SERIALIZED_NAME_IDV_SESSION_ID = "idv_session_id";
  @SerializedName(SERIALIZED_NAME_IDV_SESSION_ID)
  private String idvSessionId;

  public static final String SERIALIZED_NAME_SIGNAL_CLIENT_TRANSACTION_ID = "signal_client_transaction_id";
  @SerializedName(SERIALIZED_NAME_SIGNAL_CLIENT_TRANSACTION_ID)
  private String signalClientTransactionId;

  public static final String SERIALIZED_NAME_INTERNAL_REFERENCE = "internal_reference";
  @SerializedName(SERIALIZED_NAME_INTERNAL_REFERENCE)
  private String internalReference;

  public static final String SERIALIZED_NAME_TIME = "time";
  @SerializedName(SERIALIZED_NAME_TIME)
  private OffsetDateTime time;

  public static final String SERIALIZED_NAME_AMOUNT = "amount";
  @SerializedName(SERIALIZED_NAME_AMOUNT)
  private ProtectIncidentAmount amount;

  public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token";
  @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN)
  private String accessToken;


  public ProtectIncidentEvent protectEventId(String protectEventId) {
    
    this.protectEventId = protectEventId;
    return this;
  }

   /**
   * A globally unique identifier representing a Protect event that may be associated with this incident.
   * @return protectEventId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A globally unique identifier representing a Protect event that may be associated with this incident.")

  public String getProtectEventId() {
    return protectEventId;
  }


  public void setProtectEventId(String protectEventId) {
    this.protectEventId = protectEventId;
  }


  public ProtectIncidentEvent linkSessionId(String linkSessionId) {
    
    this.linkSessionId = linkSessionId;
    return this;
  }

   /**
   * A unique identifier for a Link session that may be associated with this incident.
   * @return linkSessionId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A unique identifier for a Link session that may be associated with this incident.")

  public String getLinkSessionId() {
    return linkSessionId;
  }


  public void setLinkSessionId(String linkSessionId) {
    this.linkSessionId = linkSessionId;
  }


  public ProtectIncidentEvent idvSessionId(String idvSessionId) {
    
    this.idvSessionId = idvSessionId;
    return this;
  }

   /**
   * A unique identifier for an Identity Verification session that may be associated with this incident.
   * @return idvSessionId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A unique identifier for an Identity Verification session that may be associated with this incident.")

  public String getIdvSessionId() {
    return idvSessionId;
  }


  public void setIdvSessionId(String idvSessionId) {
    this.idvSessionId = idvSessionId;
  }


  public ProtectIncidentEvent signalClientTransactionId(String signalClientTransactionId) {
    
    this.signalClientTransactionId = signalClientTransactionId;
    return this;
  }

   /**
   * The unique ID used to refer to a Signal transaction evaluation that may be associated with this incident.
   * @return signalClientTransactionId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The unique ID used to refer to a Signal transaction evaluation that may be associated with this incident.")

  public String getSignalClientTransactionId() {
    return signalClientTransactionId;
  }


  public void setSignalClientTransactionId(String signalClientTransactionId) {
    this.signalClientTransactionId = signalClientTransactionId;
  }


  public ProtectIncidentEvent internalReference(String internalReference) {
    
    this.internalReference = internalReference;
    return this;
  }

   /**
   * A unique ID representing the incident in your system. Personally identifiable information, such as an email address or phone number, should not be used in this field.
   * @return internalReference
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A unique ID representing the incident in your system. Personally identifiable information, such as an email address or phone number, should not be used in this field.")

  public String getInternalReference() {
    return internalReference;
  }


  public void setInternalReference(String internalReference) {
    this.internalReference = internalReference;
  }


  public ProtectIncidentEvent time(OffsetDateTime time) {
    
    this.time = time;
    return this;
  }

   /**
   * The timestamp when the incident occurred, in ISO 8601 format (e.g., &#39;2020-07-24T03:26:02Z&#39;).
   * @return time
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The timestamp when the incident occurred, in ISO 8601 format (e.g., '2020-07-24T03:26:02Z').")

  public OffsetDateTime getTime() {
    return time;
  }


  public void setTime(OffsetDateTime time) {
    this.time = time;
  }


  public ProtectIncidentEvent amount(ProtectIncidentAmount amount) {
    
    this.amount = amount;
    return this;
  }

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

  public ProtectIncidentAmount getAmount() {
    return amount;
  }


  public void setAmount(ProtectIncidentAmount amount) {
    this.amount = amount;
  }


  public ProtectIncidentEvent accessToken(String accessToken) {
    
    this.accessToken = accessToken;
    return this;
  }

   /**
   * An access token associated with the Item related to this incident.
   * @return accessToken
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "An access token associated with the Item related to this incident.")

  public String getAccessToken() {
    return accessToken;
  }


  public void setAccessToken(String accessToken) {
    this.accessToken = accessToken;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProtectIncidentEvent protectIncidentEvent = (ProtectIncidentEvent) o;
    return Objects.equals(this.protectEventId, protectIncidentEvent.protectEventId) &&
        Objects.equals(this.linkSessionId, protectIncidentEvent.linkSessionId) &&
        Objects.equals(this.idvSessionId, protectIncidentEvent.idvSessionId) &&
        Objects.equals(this.signalClientTransactionId, protectIncidentEvent.signalClientTransactionId) &&
        Objects.equals(this.internalReference, protectIncidentEvent.internalReference) &&
        Objects.equals(this.time, protectIncidentEvent.time) &&
        Objects.equals(this.amount, protectIncidentEvent.amount) &&
        Objects.equals(this.accessToken, protectIncidentEvent.accessToken);
  }

  @Override
  public int hashCode() {
    return Objects.hash(protectEventId, linkSessionId, idvSessionId, signalClientTransactionId, internalReference, time, amount, accessToken);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProtectIncidentEvent {\n");
    sb.append("    protectEventId: ").append(toIndentedString(protectEventId)).append("\n");
    sb.append("    linkSessionId: ").append(toIndentedString(linkSessionId)).append("\n");
    sb.append("    idvSessionId: ").append(toIndentedString(idvSessionId)).append("\n");
    sb.append("    signalClientTransactionId: ").append(toIndentedString(signalClientTransactionId)).append("\n");
    sb.append("    internalReference: ").append(toIndentedString(internalReference)).append("\n");
    sb.append("    time: ").append(toIndentedString(time)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    accessToken: ").append(toIndentedString(accessToken)).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    ");
  }

}

