/*
 *
 *    Copyright (c) 2022 Project CHIP Authors
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

// THIS FILE IS GENERATED BY ZAP
// This file is generated from clusters-Enums-Check.h.zapt

#pragma once

#include <clusters/WiFiNetworkDiagnostics/Enums.h>

namespace chip {
namespace app {
namespace Clusters {
static auto __attribute__((unused))
EnsureKnownEnumValue(WiFiNetworkDiagnostics::AssociationFailureCauseEnum val) {
  using EnumType = WiFiNetworkDiagnostics::AssociationFailureCauseEnum;
  switch (val) {
  case EnumType::kUnknown:
  case EnumType::kAssociationFailed:
  case EnumType::kAuthenticationFailed:
  case EnumType::kSsidNotFound:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(WiFiNetworkDiagnostics::ConnectionStatusEnum val) {
  using EnumType = WiFiNetworkDiagnostics::ConnectionStatusEnum;
  switch (val) {
  case EnumType::kConnected:
  case EnumType::kNotConnected:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(WiFiNetworkDiagnostics::SecurityTypeEnum val) {
  using EnumType = WiFiNetworkDiagnostics::SecurityTypeEnum;
  switch (val) {
  case EnumType::kUnspecified:
  case EnumType::kNone:
  case EnumType::kWep:
  case EnumType::kWpa:
  case EnumType::kWpa2:
  case EnumType::kWpa3:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(WiFiNetworkDiagnostics::WiFiVersionEnum val) {
  using EnumType = WiFiNetworkDiagnostics::WiFiVersionEnum;
  switch (val) {
  case EnumType::kA:
  case EnumType::kB:
  case EnumType::kG:
  case EnumType::kN:
  case EnumType::kAc:
  case EnumType::kAx:
  case EnumType::kAh:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
} // namespace Clusters
} // namespace app
} // namespace chip
