package org.wfc.omada.api.sitesetting.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * OperationResponseListUpgradeScheduleQueryOpenApiVo
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]")

public class OperationResponseListUpgradeScheduleQueryOpenApiVo   {
  @JsonProperty("errorCode")
  private Integer errorCode;

  @JsonProperty("msg")
  private String msg;

  @JsonProperty("result")
  @Valid
  private List<UpgradeScheduleQueryOpenApiVo> result = null;

  public OperationResponseListUpgradeScheduleQueryOpenApiVo errorCode(Integer errorCode) {
    this.errorCode = errorCode;
    return this;
  }

  /**
   * Get errorCode
   * @return errorCode
  */
  @ApiModelProperty(value = "")


  public Integer getErrorCode() {
    return errorCode;
  }

  public void setErrorCode(Integer errorCode) {
    this.errorCode = errorCode;
  }

  public OperationResponseListUpgradeScheduleQueryOpenApiVo msg(String msg) {
    this.msg = msg;
    return this;
  }

  /**
   * Get msg
   * @return msg
  */
  @ApiModelProperty(value = "")


  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }

  public OperationResponseListUpgradeScheduleQueryOpenApiVo result(List<UpgradeScheduleQueryOpenApiVo> result) {
    this.result = result;
    return this;
  }

  public OperationResponseListUpgradeScheduleQueryOpenApiVo addResultItem(UpgradeScheduleQueryOpenApiVo resultItem) {
    if (this.result == null) {
      this.result = new ArrayList<>();
    }
    this.result.add(resultItem);
    return this;
  }

  /**
   * Get result
   * @return result
  */
  @ApiModelProperty(value = "")

  @Valid

  public List<UpgradeScheduleQueryOpenApiVo> getResult() {
    return result;
  }

  public void setResult(List<UpgradeScheduleQueryOpenApiVo> result) {
    this.result = result;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OperationResponseListUpgradeScheduleQueryOpenApiVo operationResponseListUpgradeScheduleQueryOpenApiVo = (OperationResponseListUpgradeScheduleQueryOpenApiVo) o;
    return Objects.equals(this.errorCode, operationResponseListUpgradeScheduleQueryOpenApiVo.errorCode) &&
        Objects.equals(this.msg, operationResponseListUpgradeScheduleQueryOpenApiVo.msg) &&
        Objects.equals(this.result, operationResponseListUpgradeScheduleQueryOpenApiVo.result);
  }

  @Override
  public int hashCode() {
    return Objects.hash(errorCode, msg, result);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OperationResponseListUpgradeScheduleQueryOpenApiVo {\n");
    
    sb.append("    errorCode: ").append(toIndentedString(errorCode)).append("\n");
    sb.append("    msg: ").append(toIndentedString(msg)).append("\n");
    sb.append("    result: ").append(toIndentedString(result)).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    ");
  }
}

