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;

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

public class LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo   {
  @JsonProperty("totalRows")
  private Long totalRows;

  @JsonProperty("currentPage")
  private Integer currentPage;

  @JsonProperty("currentSize")
  private Integer currentSize;

  @JsonProperty("data")
  @Valid
  private List<LanNetworkQueryOpenApiV2Vo> data = null;

  @JsonProperty("supportMultiVlan")
  private Boolean supportMultiVlan;

  @JsonProperty("supportRA")
  private Boolean supportRA;

  @JsonProperty("supportCustomDhcpOption")
  private Boolean supportCustomDhcpOption;

  @JsonProperty("dhcpRangePoolSize")
  private Integer dhcpRangePoolSize;

  public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo totalRows(Long totalRows) {
    this.totalRows = totalRows;
    return this;
  }

  /**
   * Total rows of all items.
   * @return totalRows
  */
  @ApiModelProperty(value = "Total rows of all items.")


  public Long getTotalRows() {
    return totalRows;
  }

  public void setTotalRows(Long totalRows) {
    this.totalRows = totalRows;
  }

  public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo currentPage(Integer currentPage) {
    this.currentPage = currentPage;
    return this;
  }

  /**
   * Current page number.
   * @return currentPage
  */
  @ApiModelProperty(value = "Current page number.")


  public Integer getCurrentPage() {
    return currentPage;
  }

  public void setCurrentPage(Integer currentPage) {
    this.currentPage = currentPage;
  }

  public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo currentSize(Integer currentSize) {
    this.currentSize = currentSize;
    return this;
  }

  /**
   * Number of entries per page.
   * @return currentSize
  */
  @ApiModelProperty(value = "Number of entries per page.")


  public Integer getCurrentSize() {
    return currentSize;
  }

  public void setCurrentSize(Integer currentSize) {
    this.currentSize = currentSize;
  }

  public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo data(List<LanNetworkQueryOpenApiV2Vo> data) {
    this.data = data;
    return this;
  }

  public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo addDataItem(LanNetworkQueryOpenApiV2Vo dataItem) {
    if (this.data == null) {
      this.data = new ArrayList<>();
    }
    this.data.add(dataItem);
    return this;
  }

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

  @Valid

  public List<LanNetworkQueryOpenApiV2Vo> getData() {
    return data;
  }

  public void setData(List<LanNetworkQueryOpenApiV2Vo> data) {
    this.data = data;
  }

  public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo supportMultiVlan(Boolean supportMultiVlan) {
    this.supportMultiVlan = supportMultiVlan;
    return this;
  }

  /**
   * Whether multi vlan configuration is supported of the lan netowrk.
   * @return supportMultiVlan
  */
  @ApiModelProperty(value = "Whether multi vlan configuration is supported of the lan netowrk.")


  public Boolean getSupportMultiVlan() {
    return supportMultiVlan;
  }

  public void setSupportMultiVlan(Boolean supportMultiVlan) {
    this.supportMultiVlan = supportMultiVlan;
  }

  public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo supportRA(Boolean supportRA) {
    this.supportRA = supportRA;
    return this;
  }

  /**
   * Whether Router Advertisement configuration is supported of the lan netowrk.
   * @return supportRA
  */
  @ApiModelProperty(value = "Whether Router Advertisement configuration is supported of the lan netowrk.")


  public Boolean getSupportRA() {
    return supportRA;
  }

  public void setSupportRA(Boolean supportRA) {
    this.supportRA = supportRA;
  }

  public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo supportCustomDhcpOption(Boolean supportCustomDhcpOption) {
    this.supportCustomDhcpOption = supportCustomDhcpOption;
    return this;
  }

  /**
   * Whether custom DHCP option configuration is supported of the lan netowrk.
   * @return supportCustomDhcpOption
  */
  @ApiModelProperty(value = "Whether custom DHCP option configuration is supported of the lan netowrk.")


  public Boolean getSupportCustomDhcpOption() {
    return supportCustomDhcpOption;
  }

  public void setSupportCustomDhcpOption(Boolean supportCustomDhcpOption) {
    this.supportCustomDhcpOption = supportCustomDhcpOption;
  }

  public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo dhcpRangePoolSize(Integer dhcpRangePoolSize) {
    this.dhcpRangePoolSize = dhcpRangePoolSize;
    return this;
  }

  /**
   * The size of DHCP range pool supported by the lan network DHCP.
   * @return dhcpRangePoolSize
  */
  @ApiModelProperty(value = "The size of DHCP range pool supported by the lan network DHCP.")


  public Integer getDhcpRangePoolSize() {
    return dhcpRangePoolSize;
  }

  public void setDhcpRangePoolSize(Integer dhcpRangePoolSize) {
    this.dhcpRangePoolSize = dhcpRangePoolSize;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo = (LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo) o;
    return Objects.equals(this.totalRows, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.totalRows) &&
        Objects.equals(this.currentPage, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.currentPage) &&
        Objects.equals(this.currentSize, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.currentSize) &&
        Objects.equals(this.data, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.data) &&
        Objects.equals(this.supportMultiVlan, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.supportMultiVlan) &&
        Objects.equals(this.supportRA, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.supportRA) &&
        Objects.equals(this.supportCustomDhcpOption, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.supportCustomDhcpOption) &&
        Objects.equals(this.dhcpRangePoolSize, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.dhcpRangePoolSize);
  }

  @Override
  public int hashCode() {
    return Objects.hash(totalRows, currentPage, currentSize, data, supportMultiVlan, supportRA, supportCustomDhcpOption, dhcpRangePoolSize);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo {\n");
    
    sb.append("    totalRows: ").append(toIndentedString(totalRows)).append("\n");
    sb.append("    currentPage: ").append(toIndentedString(currentPage)).append("\n");
    sb.append("    currentSize: ").append(toIndentedString(currentSize)).append("\n");
    sb.append("    data: ").append(toIndentedString(data)).append("\n");
    sb.append("    supportMultiVlan: ").append(toIndentedString(supportMultiVlan)).append("\n");
    sb.append("    supportRA: ").append(toIndentedString(supportRA)).append("\n");
    sb.append("    supportCustomDhcpOption: ").append(toIndentedString(supportCustomDhcpOption)).append("\n");
    sb.append("    dhcpRangePoolSize: ").append(toIndentedString(dhcpRangePoolSize)).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    ");
  }
}

