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.*;
  
  /** IBANAccountIdentifier */
  @JsonPropertyOrder({
    IBANAccountIdentifier.JSON_PROPERTY_BBAN,
    IBANAccountIdentifier.JSON_PROPERTY_BIC,
    IBANAccountIdentifier.JSON_PROPERTY_IBAN
  })
  public class IBANAccountIdentifier {
    public static final String JSON_PROPERTY_BBAN = "bban";
    private String bban;
  
    public static final String JSON_PROPERTY_BIC = "bic";
    private String bic;
  
    public static final String JSON_PROPERTY_IBAN = "iban";
    private String iban;
  
    public IBANAccountIdentifier() {}
  
    /**
     * The Basic Bank Account Number (BBAN) component of the IBAN.
     *
     * @param bban The Basic Bank Account Number (BBAN) component of the IBAN.
     * @return the current {@code IBANAccountIdentifier} instance, allowing for method chaining
     */
    public IBANAccountIdentifier bban(String bban) {
      this.bban = bban;
      return this;
    }
  
    /**
     * The Basic Bank Account Number (BBAN) component of the IBAN.
     *
     * @return bban The Basic Bank Account Number (BBAN) component of the IBAN.
     */
    @JsonProperty(JSON_PROPERTY_BBAN)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getBban() {
      return bban;
    }
  
    /**
     * The Basic Bank Account Number (BBAN) component of the IBAN.
     *
     * @param bban The Basic Bank Account Number (BBAN) component of the IBAN.
     */
    @JsonProperty(JSON_PROPERTY_BBAN)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setBban(String bban) {
      this.bban = bban;
    }
  
    /**
     * BIC of a bank account.
     *
     * @param bic BIC of a bank account.
     * @return the current {@code IBANAccountIdentifier} instance, allowing for method chaining
     */
    public IBANAccountIdentifier bic(String bic) {
      this.bic = bic;
      return this;
    }
  
    /**
     * BIC of a bank account.
     *
     * @return bic BIC of a bank account.
     */
    @JsonProperty(JSON_PROPERTY_BIC)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getBic() {
      return bic;
    }
  
    /**
     * BIC of a bank account.
     *
     * @param bic BIC of a bank account.
     */
    @JsonProperty(JSON_PROPERTY_BIC)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setBic(String bic) {
      this.bic = bic;
    }
  
    /**
     * The international bank account number as defined in the
     * [ISO-13616](https://www.iso.org/standard/81090.html) standard. This is the national identifier
     * for the bank account, following the country-specific format, and is part of the full IBAN.
     *
     * @param iban The international bank account number as defined in the
     *     [ISO-13616](https://www.iso.org/standard/81090.html) standard. This is the national
     *     identifier for the bank account, following the country-specific format, and is part of the
     *     full IBAN.
     * @return the current {@code IBANAccountIdentifier} instance, allowing for method chaining
     */
    public IBANAccountIdentifier iban(String iban) {
      this.iban = iban;
      return this;
    }
  
    /**
     * The international bank account number as defined in the
     * [ISO-13616](https://www.iso.org/standard/81090.html) standard. This is the national identifier
     * for the bank account, following the country-specific format, and is part of the full IBAN.
     *
     * @return iban The international bank account number as defined in the
     *     [ISO-13616](https://www.iso.org/standard/81090.html) standard. This is the national
     *     identifier for the bank account, following the country-specific format, and is part of the
     *     full IBAN.
     */
    @JsonProperty(JSON_PROPERTY_IBAN)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getIban() {
      return iban;
    }
  
    /**
     * The international bank account number as defined in the
     * [ISO-13616](https://www.iso.org/standard/81090.html) standard. This is the national identifier
     * for the bank account, following the country-specific format, and is part of the full IBAN.
     *
     * @param iban The international bank account number as defined in the
     *     [ISO-13616](https://www.iso.org/standard/81090.html) standard. This is the national
     *     identifier for the bank account, following the country-specific format, and is part of the
     *     full IBAN.
     */
    @JsonProperty(JSON_PROPERTY_IBAN)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setIban(String iban) {
      this.iban = iban;
    }
  
    /** Return true if this IBANAccountIdentifier object is equal to o. */
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      IBANAccountIdentifier ibANAccountIdentifier = (IBANAccountIdentifier) o;
      return Objects.equals(this.bban, ibANAccountIdentifier.bban)
          && Objects.equals(this.bic, ibANAccountIdentifier.bic)
          && Objects.equals(this.iban, ibANAccountIdentifier.iban);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(bban, bic, iban);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class IBANAccountIdentifier {\n");
      sb.append("    bban: ").append(toIndentedString(bban)).append("\n");
      sb.append("    bic: ").append(toIndentedString(bic)).append("\n");
      sb.append("    iban: ").append(toIndentedString(iban)).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 IBANAccountIdentifier given an JSON string
     *
     * @param jsonString JSON string
     * @return An instance of IBANAccountIdentifier
     * @throws JsonProcessingException if the JSON string is invalid with respect to
     *     IBANAccountIdentifier
     */
    public static IBANAccountIdentifier fromJson(String jsonString) throws JsonProcessingException {
      return JSON.getMapper().readValue(jsonString, IBANAccountIdentifier.class);
    }
  
    /**
     * Convert an instance of IBANAccountIdentifier to an JSON string
     *
     * @return JSON string
     */
    public String toJson() throws JsonProcessingException {
      return JSON.getMapper().writeValueAsString(this);
    }
  }
  