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.*;
  
  /** WebhookLinks */
  @JsonPropertyOrder({
    WebhookLinks.JSON_PROPERTY_COMPANY,
    WebhookLinks.JSON_PROPERTY_GENERATE_HMAC,
    WebhookLinks.JSON_PROPERTY_MERCHANT,
    WebhookLinks.JSON_PROPERTY_SELF,
    WebhookLinks.JSON_PROPERTY_TEST_WEBHOOK
  })
  public class WebhookLinks {
    public static final String JSON_PROPERTY_COMPANY = "company";
    private LinksElement company;
  
    public static final String JSON_PROPERTY_GENERATE_HMAC = "generateHmac";
    private LinksElement generateHmac;
  
    public static final String JSON_PROPERTY_MERCHANT = "merchant";
    private LinksElement merchant;
  
    public static final String JSON_PROPERTY_SELF = "self";
    private LinksElement self;
  
    public static final String JSON_PROPERTY_TEST_WEBHOOK = "testWebhook";
    private LinksElement testWebhook;
  
    public WebhookLinks() {}
  
    /**
     * company
     *
     * @param company
     * @return the current {@code WebhookLinks} instance, allowing for method chaining
     */
    public WebhookLinks company(LinksElement company) {
      this.company = company;
      return this;
    }
  
    /**
     * Get company
     *
     * @return company
     */
    @JsonProperty(JSON_PROPERTY_COMPANY)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public LinksElement getCompany() {
      return company;
    }
  
    /**
     * company
     *
     * @param company
     */
    @JsonProperty(JSON_PROPERTY_COMPANY)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setCompany(LinksElement company) {
      this.company = company;
    }
  
    /**
     * generateHmac
     *
     * @param generateHmac
     * @return the current {@code WebhookLinks} instance, allowing for method chaining
     */
    public WebhookLinks generateHmac(LinksElement generateHmac) {
      this.generateHmac = generateHmac;
      return this;
    }
  
    /**
     * Get generateHmac
     *
     * @return generateHmac
     */
    @JsonProperty(JSON_PROPERTY_GENERATE_HMAC)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public LinksElement getGenerateHmac() {
      return generateHmac;
    }
  
    /**
     * generateHmac
     *
     * @param generateHmac
     */
    @JsonProperty(JSON_PROPERTY_GENERATE_HMAC)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setGenerateHmac(LinksElement generateHmac) {
      this.generateHmac = generateHmac;
    }
  
    /**
     * merchant
     *
     * @param merchant
     * @return the current {@code WebhookLinks} instance, allowing for method chaining
     */
    public WebhookLinks merchant(LinksElement merchant) {
      this.merchant = merchant;
      return this;
    }
  
    /**
     * Get merchant
     *
     * @return merchant
     */
    @JsonProperty(JSON_PROPERTY_MERCHANT)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public LinksElement getMerchant() {
      return merchant;
    }
  
    /**
     * merchant
     *
     * @param merchant
     */
    @JsonProperty(JSON_PROPERTY_MERCHANT)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setMerchant(LinksElement merchant) {
      this.merchant = merchant;
    }
  
    /**
     * self
     *
     * @param self
     * @return the current {@code WebhookLinks} instance, allowing for method chaining
     */
    public WebhookLinks self(LinksElement self) {
      this.self = self;
      return this;
    }
  
    /**
     * Get self
     *
     * @return self
     */
    @JsonProperty(JSON_PROPERTY_SELF)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public LinksElement getSelf() {
      return self;
    }
  
    /**
     * self
     *
     * @param self
     */
    @JsonProperty(JSON_PROPERTY_SELF)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setSelf(LinksElement self) {
      this.self = self;
    }
  
    /**
     * testWebhook
     *
     * @param testWebhook
     * @return the current {@code WebhookLinks} instance, allowing for method chaining
     */
    public WebhookLinks testWebhook(LinksElement testWebhook) {
      this.testWebhook = testWebhook;
      return this;
    }
  
    /**
     * Get testWebhook
     *
     * @return testWebhook
     */
    @JsonProperty(JSON_PROPERTY_TEST_WEBHOOK)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public LinksElement getTestWebhook() {
      return testWebhook;
    }
  
    /**
     * testWebhook
     *
     * @param testWebhook
     */
    @JsonProperty(JSON_PROPERTY_TEST_WEBHOOK)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setTestWebhook(LinksElement testWebhook) {
      this.testWebhook = testWebhook;
    }
  
    /** Return true if this WebhookLinks object is equal to o. */
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      WebhookLinks webhookLinks = (WebhookLinks) o;
      return Objects.equals(this.company, webhookLinks.company)
          && Objects.equals(this.generateHmac, webhookLinks.generateHmac)
          && Objects.equals(this.merchant, webhookLinks.merchant)
          && Objects.equals(this.self, webhookLinks.self)
          && Objects.equals(this.testWebhook, webhookLinks.testWebhook);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(company, generateHmac, merchant, self, testWebhook);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class WebhookLinks {\n");
      sb.append("    company: ").append(toIndentedString(company)).append("\n");
      sb.append("    generateHmac: ").append(toIndentedString(generateHmac)).append("\n");
      sb.append("    merchant: ").append(toIndentedString(merchant)).append("\n");
      sb.append("    self: ").append(toIndentedString(self)).append("\n");
      sb.append("    testWebhook: ").append(toIndentedString(testWebhook)).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 WebhookLinks given an JSON string
     *
     * @param jsonString JSON string
     * @return An instance of WebhookLinks
     * @throws JsonProcessingException if the JSON string is invalid with respect to WebhookLinks
     */
    public static WebhookLinks fromJson(String jsonString) throws JsonProcessingException {
      return JSON.getMapper().readValue(jsonString, WebhookLinks.class);
    }
  
    /**
     * Convert an instance of WebhookLinks to an JSON string
     *
     * @return JSON string
     */
    public String toJson() throws JsonProcessingException {
      return JSON.getMapper().writeValueAsString(this);
    }
  }
  