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

/**
 * Plaid Protect details from the Link session
 */
@ApiModel(description = "Plaid Protect details from the Link session")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class LinkSessionProtectResult {
  public static final String SERIALIZED_NAME_EVENT_ID = "event_id";
  @SerializedName(SERIALIZED_NAME_EVENT_ID)
  private String eventId;

  public static final String SERIALIZED_NAME_TRUST_INDEX = "trust_index";
  @SerializedName(SERIALIZED_NAME_TRUST_INDEX)
  private TrustIndex trustIndex;

  public static final String SERIALIZED_NAME_FRAUD_ATTRIBUTES = "fraud_attributes";
  @SerializedName(SERIALIZED_NAME_FRAUD_ATTRIBUTES)
  private Object fraudAttributes;


  public LinkSessionProtectResult eventId(String eventId) {
    
    this.eventId = eventId;
    return this;
  }

   /**
   * The Plaid Protect event ID representing the completion of the link session.
   * @return eventId
  **/
  @ApiModelProperty(required = true, value = "The Plaid Protect event ID representing the completion of the link session.")

  public String getEventId() {
    return eventId;
  }


  public void setEventId(String eventId) {
    this.eventId = eventId;
  }


  public LinkSessionProtectResult trustIndex(TrustIndex trustIndex) {
    
    this.trustIndex = trustIndex;
    return this;
  }

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

  public TrustIndex getTrustIndex() {
    return trustIndex;
  }


  public void setTrustIndex(TrustIndex trustIndex) {
    this.trustIndex = trustIndex;
  }


  public LinkSessionProtectResult fraudAttributes(Object fraudAttributes) {
    
    this.fraudAttributes = fraudAttributes;
    return this;
  }

   /**
   * Contains attributes used during a trust index calculation.
   * @return fraudAttributes
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Contains attributes used during a trust index calculation.")

  public Object getFraudAttributes() {
    return fraudAttributes;
  }


  public void setFraudAttributes(Object fraudAttributes) {
    this.fraudAttributes = fraudAttributes;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LinkSessionProtectResult linkSessionProtectResult = (LinkSessionProtectResult) o;
    return Objects.equals(this.eventId, linkSessionProtectResult.eventId) &&
        Objects.equals(this.trustIndex, linkSessionProtectResult.trustIndex) &&
        Objects.equals(this.fraudAttributes, linkSessionProtectResult.fraudAttributes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(eventId, trustIndex, fraudAttributes);
  }

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

}

