content: /*
   * Management API
   *
   * The version of the OpenAPI document: 3
   *
   *
   * 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.management;
  
  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.*;
  
  /** UpdatePayoutSettingsRequest */
  @JsonPropertyOrder({UpdatePayoutSettingsRequest.JSON_PROPERTY_ENABLED})
  public class UpdatePayoutSettingsRequest {
    public static final String JSON_PROPERTY_ENABLED = "enabled";
    private Boolean enabled;
  
    public UpdatePayoutSettingsRequest() {}
  
    /**
     * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts
     * into this bank account, both &#x60;enabled&#x60; and &#x60;allowed&#x60; must be **true**.
     *
     * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To
     *     receive payouts into this bank account, both &#x60;enabled&#x60; and &#x60;allowed&#x60;
     *     must be **true**.
     * @return the current {@code UpdatePayoutSettingsRequest} instance, allowing for method chaining
     */
    public UpdatePayoutSettingsRequest enabled(Boolean enabled) {
      this.enabled = enabled;
      return this;
    }
  
    /**
     * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts
     * into this bank account, both &#x60;enabled&#x60; and &#x60;allowed&#x60; must be **true**.
     *
     * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To
     *     receive payouts into this bank account, both &#x60;enabled&#x60; and &#x60;allowed&#x60;
     *     must be **true**.
     */
    @JsonProperty(JSON_PROPERTY_ENABLED)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public Boolean getEnabled() {
      return enabled;
    }
  
    /**
     * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts
     * into this bank account, both &#x60;enabled&#x60; and &#x60;allowed&#x60; must be **true**.
     *
     * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To
     *     receive payouts into this bank account, both &#x60;enabled&#x60; and &#x60;allowed&#x60;
     *     must be **true**.
     */
    @JsonProperty(JSON_PROPERTY_ENABLED)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setEnabled(Boolean enabled) {
      this.enabled = enabled;
    }
  
    /** Return true if this UpdatePayoutSettingsRequest object is equal to o. */
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      UpdatePayoutSettingsRequest updatePayoutSettingsRequest = (UpdatePayoutSettingsRequest) o;
      return Objects.equals(this.enabled, updatePayoutSettingsRequest.enabled);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(enabled);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class UpdatePayoutSettingsRequest {\n");
      sb.append("    enabled: ").append(toIndentedString(enabled)).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 UpdatePayoutSettingsRequest given an JSON string
     *
     * @param jsonString JSON string
     * @return An instance of UpdatePayoutSettingsRequest
     * @throws JsonProcessingException if the JSON string is invalid with respect to
     *     UpdatePayoutSettingsRequest
     */
    public static UpdatePayoutSettingsRequest fromJson(String jsonString)
        throws JsonProcessingException {
      return JSON.getMapper().readValue(jsonString, UpdatePayoutSettingsRequest.class);
    }
  
    /**
     * Convert an instance of UpdatePayoutSettingsRequest to an JSON string
     *
     * @return JSON string
     */
    public String toJson() throws JsonProcessingException {
      return JSON.getMapper().writeValueAsString(this);
    }
  }
  