/*
 * 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.appserver;

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

/**
 * Routing strategy (&#x60;SEQUENTIAL&#x60;, &#x60;BLAST&#x60;). Only the
 * &#x60;SEQUENTIAL&#x60; strategy is supported in **ThingPark Enterprise**.
 */
public enum AppServerStrategy {

  SEQUENTIAL("SEQUENTIAL"),

  BLAST("BLAST");

  private String value;

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

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

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

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