2 # ==================================================================================
3 # Copyright (c) 2020 HCL Technologies Limited.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ==================================================================================
18 #ifndef _ActionToBeSetupList_H
19 #define _ActionToBeSetupList_H
20 #include"SubsequentAction.h"
26 struct ActionToBeSetup: public ModelBase
29 std::string ActionType{""};
30 //std::string SubsequentActionType{""};
31 //std::string TimeToWait{""};
32 SubsequentAction m_SubsequentAction;
33 std::vector<int> ActionDefinition{};
35 nlohmann::json validator_schema = R"(
37 "$schema": "http://json-schema.org/draft-07/schema#",
38 "title": "ActionToBeSetup",
41 "description": "Action Definition",
48 "description": "Identification of Action",
54 "description": "Type of Action",
56 "enum": ["policy", "insert", "report"]
59 "description": "Subsequent Action",
70 virtual nlohmann::json get_validator_schema() const { return validator_schema; }
74 void from_json(const nlohmann::json & j, ActionToBeSetup& ref);
75 void from_json(const nlohmann::json & j, std::vector<ActionToBeSetup>& ref);
76 void to_json(nlohmann::json& j, const ActionToBeSetup& ref);
77 void to_json(nlohmann::json& j, const std::vector<ActionToBeSetup>& ref);