1*0ec8b83dSEd Tanous #pragma once 2*0ec8b83dSEd Tanous #include <nlohmann/json.hpp> 3*0ec8b83dSEd Tanous 4*0ec8b83dSEd Tanous namespace settings 5*0ec8b83dSEd Tanous { 6*0ec8b83dSEd Tanous // clang-format off 7*0ec8b83dSEd Tanous 8*0ec8b83dSEd Tanous enum class OperationApplyTime{ 9*0ec8b83dSEd Tanous Invalid, 10*0ec8b83dSEd Tanous Immediate, 11*0ec8b83dSEd Tanous OnReset, 12*0ec8b83dSEd Tanous AtMaintenanceWindowStart, 13*0ec8b83dSEd Tanous InMaintenanceWindowOnReset, 14*0ec8b83dSEd Tanous OnStartUpdateRequest, 15*0ec8b83dSEd Tanous }; 16*0ec8b83dSEd Tanous 17*0ec8b83dSEd Tanous enum class ApplyTime{ 18*0ec8b83dSEd Tanous Invalid, 19*0ec8b83dSEd Tanous Immediate, 20*0ec8b83dSEd Tanous OnReset, 21*0ec8b83dSEd Tanous AtMaintenanceWindowStart, 22*0ec8b83dSEd Tanous InMaintenanceWindowOnReset, 23*0ec8b83dSEd Tanous }; 24*0ec8b83dSEd Tanous 25*0ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(OperationApplyTime, { 26*0ec8b83dSEd Tanous {OperationApplyTime::Invalid, "Invalid"}, 27*0ec8b83dSEd Tanous {OperationApplyTime::Immediate, "Immediate"}, 28*0ec8b83dSEd Tanous {OperationApplyTime::OnReset, "OnReset"}, 29*0ec8b83dSEd Tanous {OperationApplyTime::AtMaintenanceWindowStart, "AtMaintenanceWindowStart"}, 30*0ec8b83dSEd Tanous {OperationApplyTime::InMaintenanceWindowOnReset, "InMaintenanceWindowOnReset"}, 31*0ec8b83dSEd Tanous {OperationApplyTime::OnStartUpdateRequest, "OnStartUpdateRequest"}, 32*0ec8b83dSEd Tanous }); 33*0ec8b83dSEd Tanous 34*0ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(ApplyTime, { 35*0ec8b83dSEd Tanous {ApplyTime::Invalid, "Invalid"}, 36*0ec8b83dSEd Tanous {ApplyTime::Immediate, "Immediate"}, 37*0ec8b83dSEd Tanous {ApplyTime::OnReset, "OnReset"}, 38*0ec8b83dSEd Tanous {ApplyTime::AtMaintenanceWindowStart, "AtMaintenanceWindowStart"}, 39*0ec8b83dSEd Tanous {ApplyTime::InMaintenanceWindowOnReset, "InMaintenanceWindowOnReset"}, 40*0ec8b83dSEd Tanous }); 41*0ec8b83dSEd Tanous 42*0ec8b83dSEd Tanous } 43*0ec8b83dSEd Tanous // clang-format on 44