1 #pragma once
2 #include <nlohmann/json.hpp>
3 
4 namespace outbound_connection
5 {
6 // clang-format off
7 
8 enum class OutboundConnectionRetryPolicyType{
9     Invalid,
10     None,
11     RetryForever,
12     RetryCount,
13 };
14 
15 enum class AuthenticationType{
16     Invalid,
17     MTLS,
18     JWT,
19     None,
20     OEM,
21 };
22 
23 NLOHMANN_JSON_SERIALIZE_ENUM(OutboundConnectionRetryPolicyType, {
24     {OutboundConnectionRetryPolicyType::Invalid, "Invalid"},
25     {OutboundConnectionRetryPolicyType::None, "None"},
26     {OutboundConnectionRetryPolicyType::RetryForever, "RetryForever"},
27     {OutboundConnectionRetryPolicyType::RetryCount, "RetryCount"},
28 });
29 
30 NLOHMANN_JSON_SERIALIZE_ENUM(AuthenticationType, {
31     {AuthenticationType::Invalid, "Invalid"},
32     {AuthenticationType::MTLS, "MTLS"},
33     {AuthenticationType::JWT, "JWT"},
34     {AuthenticationType::None, "None"},
35     {AuthenticationType::OEM, "OEM"},
36 });
37 
38 }
39 // clang-format on
40