/*
 * 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;

/**
 * Rules are run in numerical order. The first rule with a logic match is triggered. These are the details of that rule.
 */
@ApiModel(description = "Rules are run in numerical order. The first rule with a logic match is triggered. These are the details of that rule.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class RuleDetails {
  public static final String SERIALIZED_NAME_INTERNAL_NOTE = "internal_note";
  @SerializedName(SERIALIZED_NAME_INTERNAL_NOTE)
  private String internalNote;

  public static final String SERIALIZED_NAME_CUSTOM_ACTION_KEY = "custom_action_key";
  @SerializedName(SERIALIZED_NAME_CUSTOM_ACTION_KEY)
  private String customActionKey;


  public RuleDetails internalNote(String internalNote) {
    
    this.internalNote = internalNote;
    return this;
  }

   /**
   * An optional message attached to the triggered rule, defined within the Dashboard, for your internal use. Useful for debugging, such as “Account appears to be closed.”
   * @return internalNote
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "An optional message attached to the triggered rule, defined within the Dashboard, for your internal use. Useful for debugging, such as “Account appears to be closed.”")

  public String getInternalNote() {
    return internalNote;
  }


  public void setInternalNote(String internalNote) {
    this.internalNote = internalNote;
  }


  public RuleDetails customActionKey(String customActionKey) {
    
    this.customActionKey = customActionKey;
    return this;
  }

   /**
   * A string key, defined within the Dashboard, used to trigger programmatic behavior for a certain result. For instance, you could optionally choose to define a \&quot;3-day-hold\&quot; &#x60;custom_action_key&#x60; for an ACCEPT result.
   * @return customActionKey
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A string key, defined within the Dashboard, used to trigger programmatic behavior for a certain result. For instance, you could optionally choose to define a \"3-day-hold\" `custom_action_key` for an ACCEPT result.")

  public String getCustomActionKey() {
    return customActionKey;
  }


  public void setCustomActionKey(String customActionKey) {
    this.customActionKey = customActionKey;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RuleDetails ruleDetails = (RuleDetails) o;
    return Objects.equals(this.internalNote, ruleDetails.internalNote) &&
        Objects.equals(this.customActionKey, ruleDetails.customActionKey);
  }

  @Override
  public int hashCode() {
    return Objects.hash(internalNote, customActionKey);
  }

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

}

