/*
 * ThingPark things management Devices API
 * REST interface for Devices management. 
 *
 * The version of the OpenAPI document: 7.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 lora.ns.actility.api.model.device;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * DeviceLorawanAppServer
 */
@JsonPropertyOrder({ DeviceLorawanAppServer.JSON_PROPERTY_I_D, DeviceLorawanAppServer.JSON_PROPERTY_HREF,
    DeviceLorawanAppServer.JSON_PROPERTY_NAME })
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-05-29T01:47:08.521515962+02:00[Europe/Paris]", comments = "Generator version: 7.6.0")
public class DeviceLorawanAppServer {
  public static final String JSON_PROPERTY_I_D = "ID";
  private String ID;

  public static final String JSON_PROPERTY_HREF = "href";
  private String href;

  public static final String JSON_PROPERTY_NAME = "name";
  private String name;

  public DeviceLorawanAppServer() {
  }

  @JsonCreator
  public DeviceLorawanAppServer(@JsonProperty(JSON_PROPERTY_HREF) String href,
          @JsonProperty(JSON_PROPERTY_NAME) String name) {
    this();
    this.href = href;
    this.name = name;
  }

  public DeviceLorawanAppServer ID(String ID) {

    this.ID = ID;
    return this;
  }

  /**
   * Application Server ID
   * 
   * @return ID
   **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_I_D)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getID() {
    return ID;
  }

  @JsonProperty(JSON_PROPERTY_I_D)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setID(String ID) {
    this.ID = ID;
  }

  /**
   * Application Server href
   * 
   * @return href
   **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_HREF)

  public String getHref() {
    return href;
  }

  /**
   * Application Server name
   * 
   * @return name
   **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_NAME)

  public String getName() {
    return name;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DeviceLorawanAppServer deviceLorawanAppServer = (DeviceLorawanAppServer) o;
    return Objects.equals(this.ID, deviceLorawanAppServer.ID) && Objects.equals(this.href, deviceLorawanAppServer.href)
            && Objects.equals(this.name, deviceLorawanAppServer.name);
  }

  @Override
  public int hashCode() {
    return Objects.hash(ID, href, name);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DeviceLorawanAppServer {\n");
    sb.append("    ID: ").append(toIndentedString(ID)).append("\n");
    sb.append("    href: ").append(toIndentedString(href)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).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    ");
  }

}
