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

/**
 * Event data for Protect events.
 */
@ApiModel(description = "Event data for Protect events.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class ProtectEvent {
  public static final String SERIALIZED_NAME_TIMESTAMP = "timestamp";
  @SerializedName(SERIALIZED_NAME_TIMESTAMP)
  private OffsetDateTime timestamp;

  public static final String SERIALIZED_NAME_PROTECT_SESSION_ID = "protect_session_id";
  @SerializedName(SERIALIZED_NAME_PROTECT_SESSION_ID)
  private String protectSessionId;

  public static final String SERIALIZED_NAME_APP_VISIT = "app_visit";
  @SerializedName(SERIALIZED_NAME_APP_VISIT)
  private Object appVisit;

  public static final String SERIALIZED_NAME_USER_SIGN_IN = "user_sign_in";
  @SerializedName(SERIALIZED_NAME_USER_SIGN_IN)
  private Object userSignIn;

  public static final String SERIALIZED_NAME_USER_SIGN_UP = "user_sign_up";
  @SerializedName(SERIALIZED_NAME_USER_SIGN_UP)
  private Object userSignUp;


  public ProtectEvent timestamp(OffsetDateTime timestamp) {
    
    this.timestamp = timestamp;
    return this;
  }

   /**
   * The timestamp of the event, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format, e.g. &#x60;\&quot;2017-09-14T14:42:19.350Z\&quot;&#x60;
   * @return timestamp
  **/
  @ApiModelProperty(required = true, value = "The timestamp of the event, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format, e.g. `\"2017-09-14T14:42:19.350Z\"`")

  public OffsetDateTime getTimestamp() {
    return timestamp;
  }


  public void setTimestamp(OffsetDateTime timestamp) {
    this.timestamp = timestamp;
  }


  public ProtectEvent protectSessionId(String protectSessionId) {
    
    this.protectSessionId = protectSessionId;
    return this;
  }

   /**
   * If present, contains the current Protect Session ID from the Plaid Pixel SDK.
   * @return protectSessionId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "If present, contains the current Protect Session ID from the Plaid Pixel SDK.")

  public String getProtectSessionId() {
    return protectSessionId;
  }


  public void setProtectSessionId(String protectSessionId) {
    this.protectSessionId = protectSessionId;
  }


  public ProtectEvent appVisit(Object appVisit) {
    
    this.appVisit = appVisit;
    return this;
  }

   /**
   * This event type represents a user visiting the client application.
   * @return appVisit
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "This event type represents a user visiting the client application.")

  public Object getAppVisit() {
    return appVisit;
  }


  public void setAppVisit(Object appVisit) {
    this.appVisit = appVisit;
  }


  public ProtectEvent userSignIn(Object userSignIn) {
    
    this.userSignIn = userSignIn;
    return this;
  }

   /**
   * This event type represents a user signing in to the application.
   * @return userSignIn
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "This event type represents a user signing in to the application.")

  public Object getUserSignIn() {
    return userSignIn;
  }


  public void setUserSignIn(Object userSignIn) {
    this.userSignIn = userSignIn;
  }


  public ProtectEvent userSignUp(Object userSignUp) {
    
    this.userSignUp = userSignUp;
    return this;
  }

   /**
   * This event type represents a user signing up for the application.
   * @return userSignUp
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "This event type represents a user signing up for the application.")

  public Object getUserSignUp() {
    return userSignUp;
  }


  public void setUserSignUp(Object userSignUp) {
    this.userSignUp = userSignUp;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProtectEvent protectEvent = (ProtectEvent) o;
    return Objects.equals(this.timestamp, protectEvent.timestamp) &&
        Objects.equals(this.protectSessionId, protectEvent.protectSessionId) &&
        Objects.equals(this.appVisit, protectEvent.appVisit) &&
        Objects.equals(this.userSignIn, protectEvent.userSignIn) &&
        Objects.equals(this.userSignUp, protectEvent.userSignUp);
  }

  @Override
  public int hashCode() {
    return Objects.hash(timestamp, protectSessionId, appVisit, userSignIn, userSignUp);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProtectEvent {\n");
    sb.append("    timestamp: ").append(toIndentedString(timestamp)).append("\n");
    sb.append("    protectSessionId: ").append(toIndentedString(protectSessionId)).append("\n");
    sb.append("    appVisit: ").append(toIndentedString(appVisit)).append("\n");
    sb.append("    userSignIn: ").append(toIndentedString(userSignIn)).append("\n");
    sb.append("    userSignUp: ").append(toIndentedString(userSignUp)).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    ");
  }

}

