/*
 * ThingPark things management Networks API
 * REST interface for networks 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.common;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * ISM band ID
 */
public enum IsmBandID {

  EU868("eu868"),

  EU433("eu433"),

  CN779("cn779"),

  AS923("as923"),

  KR920("kr920"),

  US915("us915"),

  AU915("au915"),

  CN470("cn470"),

  IN865("in865"),

  RU864("ru864"),

  WW2G4("ww2g4");

  private String value;

  IsmBandID(String value) {
    this.value = value;
  }

  @JsonValue
  public String getValue() {
    return value;
  }

  @Override
  public String toString() {
    return String.valueOf(value);
  }

  @JsonCreator
  public static IsmBandID fromValue(String value) {
    for (IsmBandID b : IsmBandID.values()) {
      if (b.value.equals(value)) {
        return b;
      }
    }
    throw new IllegalArgumentException("Unexpected value '" + value + "'");
  }
}
