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

/**
 * Application Server activation state: - &#x60;ACTIVE&#x60;: Uplink frames from
 * the associated devices are forwarded to the application server and the
 * application server is able to send downlink payloads. -
 * &#x60;DEACTIVATED&#x60;: Uplink frames from the associated devices are not
 * forwarded to the application server and the application server is not able to
 * send downlink payloads. The Application Server activation state only applies
 * when the Application Server validation state is VALIDATED.
 */
public enum AppServerState {

  ACTIVE("ACTIVE"),

  DEACTIVATED("DEACTIVATED");

  private String value;

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

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

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

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