#pragma once #include "interfaces/trigger_types.hpp" #include class TriggerParams { public: TriggerParams& name(std::string val) { nameProperty = std::move(val); return *this; } const std::string& name() const { return nameProperty; } bool isDiscrete() const { return discreteProperty; } bool logToJournal() const { return logToJournalProperty; } bool logToRedfish() const { return logToRedfishProperty; } bool updateReport() const { return updateReportProperty; } const std::vector>& sensors() const { return sensorsProperty; } const std::vector& reportNames() const { return reportNamesProperty; } const TriggerThresholdParams& thresholds() const { return thresholdsProperty; } private: std::string nameProperty = "Trigger1"; bool discreteProperty = false; bool logToJournalProperty = false; bool logToRedfishProperty = false; bool updateReportProperty = false; std::vector> sensorsProperty = {}; std::vector reportNamesProperty = {}; TriggerThresholdParams thresholdsProperty = {}; };