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

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

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

/**
 * Base station admin state: - INIT: Initial configuration. - VALIDATING:
 * Waiting operator validation (DEPRECATED). - ACTIVE: Validated and activated.
 * - SUSPENDED: Validated and deactivated. Note: The INIT state is not used for
 * now.
 */
public enum BsState {

  INIT("INIT"),

  VALIDATING("VALIDATING"),

  ACTIVE("ACTIVE"),

  SUSPENDED("SUSPENDED");

  private String value;

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

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

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

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