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

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

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

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

public class SsidDhcpOptionOpenApiVo   {
  @JsonProperty("dhcpEnable")
  private Boolean dhcpEnable;

  @JsonProperty("format")
  private Integer format;

  @JsonProperty("delimiter")
  private String delimiter;

  @JsonProperty("circuitId")
  @Valid
  private List<Integer> circuitId = null;

  @JsonProperty("remoteId")
  @Valid
  private List<Integer> remoteId = null;

  public SsidDhcpOptionOpenApiVo dhcpEnable(Boolean dhcpEnable) {
    this.dhcpEnable = dhcpEnable;
    return this;
  }

  /**
   * SSID DHCP Option 82 global config status. True: enable, false: disable.
   * @return dhcpEnable
  */
  @ApiModelProperty(value = "SSID DHCP Option 82 global config status. True: enable, false: disable.")


  public Boolean getDhcpEnable() {
    return dhcpEnable;
  }

  public void setDhcpEnable(Boolean dhcpEnable) {
    this.dhcpEnable = dhcpEnable;
  }

  public SsidDhcpOptionOpenApiVo format(Integer format) {
    this.format = format;
    return this;
  }

  /**
   * SSID DHCP Option 82 format config; It should be a value as follows: 0: ASCII; 1: Binary.
   * @return format
  */
  @ApiModelProperty(value = "SSID DHCP Option 82 format config; It should be a value as follows: 0: ASCII; 1: Binary.")


  public Integer getFormat() {
    return format;
  }

  public void setFormat(Integer format) {
    this.format = format;
  }

  public SsidDhcpOptionOpenApiVo delimiter(String delimiter) {
    this.delimiter = delimiter;
    return this;
  }

  /**
   * SSID DHCP Option 82 delimiter config (A single arbitrary ASCII character is acceptable).
   * @return delimiter
  */
  @ApiModelProperty(value = "SSID DHCP Option 82 delimiter config (A single arbitrary ASCII character is acceptable).")


  public String getDelimiter() {
    return delimiter;
  }

  public void setDelimiter(String delimiter) {
    this.delimiter = delimiter;
  }

  public SsidDhcpOptionOpenApiVo circuitId(List<Integer> circuitId) {
    this.circuitId = circuitId;
    return this;
  }

  public SsidDhcpOptionOpenApiVo addCircuitIdItem(Integer circuitIdItem) {
    if (this.circuitId == null) {
      this.circuitId = new ArrayList<>();
    }
    this.circuitId.add(circuitIdItem);
    return this;
  }

  /**
   * SSID DHCP Option 82 Circuit-ID config. Circuit-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name.
   * @return circuitId
  */
  @ApiModelProperty(value = "SSID DHCP Option 82 Circuit-ID config. Circuit-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name.")


  public List<Integer> getCircuitId() {
    return circuitId;
  }

  public void setCircuitId(List<Integer> circuitId) {
    this.circuitId = circuitId;
  }

  public SsidDhcpOptionOpenApiVo remoteId(List<Integer> remoteId) {
    this.remoteId = remoteId;
    return this;
  }

  public SsidDhcpOptionOpenApiVo addRemoteIdItem(Integer remoteIdItem) {
    if (this.remoteId == null) {
      this.remoteId = new ArrayList<>();
    }
    this.remoteId.add(remoteIdItem);
    return this;
  }

  /**
   * SSID DHCP Option 82 Remote-ID config. Remote-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name.
   * @return remoteId
  */
  @ApiModelProperty(value = "SSID DHCP Option 82 Remote-ID config. Remote-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name.")


  public List<Integer> getRemoteId() {
    return remoteId;
  }

  public void setRemoteId(List<Integer> remoteId) {
    this.remoteId = remoteId;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SsidDhcpOptionOpenApiVo ssidDhcpOptionOpenApiVo = (SsidDhcpOptionOpenApiVo) o;
    return Objects.equals(this.dhcpEnable, ssidDhcpOptionOpenApiVo.dhcpEnable) &&
        Objects.equals(this.format, ssidDhcpOptionOpenApiVo.format) &&
        Objects.equals(this.delimiter, ssidDhcpOptionOpenApiVo.delimiter) &&
        Objects.equals(this.circuitId, ssidDhcpOptionOpenApiVo.circuitId) &&
        Objects.equals(this.remoteId, ssidDhcpOptionOpenApiVo.remoteId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(dhcpEnable, format, delimiter, circuitId, remoteId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SsidDhcpOptionOpenApiVo {\n");
    
    sb.append("    dhcpEnable: ").append(toIndentedString(dhcpEnable)).append("\n");
    sb.append("    format: ").append(toIndentedString(format)).append("\n");
    sb.append("    delimiter: ").append(toIndentedString(delimiter)).append("\n");
    sb.append("    circuitId: ").append(toIndentedString(circuitId)).append("\n");
    sb.append("    remoteId: ").append(toIndentedString(remoteId)).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    ");
  }
}

