content: /*
   * Classic Platforms - Notifications
   *
   * The version of the OpenAPI document: 6
   *
   *
   * 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.marketpaywebhooks;
  
  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 io.swagger.annotations.ApiModelProperty;
  import java.util.Objects;
  
  /** OperationStatus */
  @JsonPropertyOrder({
    OperationStatus.JSON_PROPERTY_MESSAGE,
    OperationStatus.JSON_PROPERTY_STATUS_CODE
  })
  public class OperationStatus {
    public static final String JSON_PROPERTY_MESSAGE = "message";
    private Message message;
  
    public static final String JSON_PROPERTY_STATUS_CODE = "statusCode";
    private String statusCode;
  
    public OperationStatus() {}
  
    public OperationStatus message(Message message) {
      this.message = message;
      return this;
    }
  
    /**
     * Get message
     *
     * @return message
     */
    @ApiModelProperty(value = "")
    @JsonProperty(JSON_PROPERTY_MESSAGE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public Message getMessage() {
      return message;
    }
  
    @JsonProperty(JSON_PROPERTY_MESSAGE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setMessage(Message message) {
      this.message = message;
    }
  
    public OperationStatus statusCode(String statusCode) {
      this.statusCode = statusCode;
      return this;
    }
  
    /**
     * The status code.
     *
     * @return statusCode
     */
    @ApiModelProperty(value = "The status code.")
    @JsonProperty(JSON_PROPERTY_STATUS_CODE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getStatusCode() {
      return statusCode;
    }
  
    @JsonProperty(JSON_PROPERTY_STATUS_CODE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setStatusCode(String statusCode) {
      this.statusCode = statusCode;
    }
  
    /** Return true if this OperationStatus object is equal to o. */
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      OperationStatus operationStatus = (OperationStatus) o;
      return Objects.equals(this.message, operationStatus.message)
          && Objects.equals(this.statusCode, operationStatus.statusCode);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(message, statusCode);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class OperationStatus {\n");
      sb.append("    message: ").append(toIndentedString(message)).append("\n");
      sb.append("    statusCode: ").append(toIndentedString(statusCode)).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 OperationStatus given an JSON string
     *
     * @param jsonString JSON string
     * @return An instance of OperationStatus
     * @throws JsonProcessingException if the JSON string is invalid with respect to OperationStatus
     */
    public static OperationStatus fromJson(String jsonString) throws JsonProcessingException {
      return JSON.getMapper().readValue(jsonString, OperationStatus.class);
    }
  
    /**
     * Convert an instance of OperationStatus to an JSON string
     *
     * @return JSON string
     */
    public String toJson() throws JsonProcessingException {
      return JSON.getMapper().writeValueAsString(this);
    }
  }
  