content: /*
   * Open Banking API
   *
   * The version of the OpenAPI document: 1
   *
   *
   * 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.adyen.model.openbanking;
  
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  import com.fasterxml.jackson.core.JsonProcessingException;
  import java.util.*;
  import java.util.ArrayList;
  import java.util.List;
  
  /** AccountVerificationRoutesResponse */
  @JsonPropertyOrder({AccountVerificationRoutesResponse.JSON_PROPERTY_ROUTES})
  public class AccountVerificationRoutesResponse {
    public static final String JSON_PROPERTY_ROUTES = "routes";
    private List<Route> routes;
  
    public AccountVerificationRoutesResponse() {}
  
    /**
     * This array lists available open banking redirection links, each with its associated provider
     * metadata.
     *
     * @param routes This array lists available open banking redirection links, each with its
     *     associated provider metadata.
     * @return the current {@code AccountVerificationRoutesResponse} instance, allowing for method
     *     chaining
     */
    public AccountVerificationRoutesResponse routes(List<Route> routes) {
      this.routes = routes;
      return this;
    }
  
    public AccountVerificationRoutesResponse addRoutesItem(Route routesItem) {
      if (this.routes == null) {
        this.routes = new ArrayList<>();
      }
      this.routes.add(routesItem);
      return this;
    }
  
    /**
     * This array lists available open banking redirection links, each with its associated provider
     * metadata.
     *
     * @return routes This array lists available open banking redirection links, each with its
     *     associated provider metadata.
     */
    @JsonProperty(JSON_PROPERTY_ROUTES)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public List<Route> getRoutes() {
      return routes;
    }
  
    /**
     * This array lists available open banking redirection links, each with its associated provider
     * metadata.
     *
     * @param routes This array lists available open banking redirection links, each with its
     *     associated provider metadata.
     */
    @JsonProperty(JSON_PROPERTY_ROUTES)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setRoutes(List<Route> routes) {
      this.routes = routes;
    }
  
    /** Return true if this AccountVerificationRoutesResponse object is equal to o. */
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      AccountVerificationRoutesResponse accountVerificationRoutesResponse =
          (AccountVerificationRoutesResponse) o;
      return Objects.equals(this.routes, accountVerificationRoutesResponse.routes);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(routes);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class AccountVerificationRoutesResponse {\n");
      sb.append("    routes: ").append(toIndentedString(routes)).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    ");
    }
  
    /**
     * Create an instance of AccountVerificationRoutesResponse given an JSON string
     *
     * @param jsonString JSON string
     * @return An instance of AccountVerificationRoutesResponse
     * @throws JsonProcessingException if the JSON string is invalid with respect to
     *     AccountVerificationRoutesResponse
     */
    public static AccountVerificationRoutesResponse fromJson(String jsonString)
        throws JsonProcessingException {
      return JSON.getMapper().readValue(jsonString, AccountVerificationRoutesResponse.class);
    }
  
    /**
     * Convert an instance of AccountVerificationRoutesResponse to an JSON string
     *
     * @return JSON string
     */
    public String toJson() throws JsonProcessingException {
      return JSON.getMapper().writeValueAsString(this);
    }
  }
  