33#ifndef API_MIP_PROTECTION_COMMON_SETTINGS_H_
34#define API_MIP_PROTECTION_COMMON_SETTINGS_H_
49 : mApplicationScenarioId(applicationScenarioId),
50 mIsOfflineOnly(false) {}
58 return mApplicationScenarioId;
99 void SetCustomSettings(
const std::vector<std::pair<std::string, std::string>>& customSettings) {
100 mCustomSettings = customSettings;
109 return mCustomSettings;
115 mApplicationScenarioId = other.mApplicationScenarioId;
116 mIsOfflineOnly = other.mIsOfflineOnly;
121 std::string mApplicationScenarioId;
123 std::vector<std::pair<std::string, std::string>> mCustomSettings;
Settings to use for protection operations.
bool GetIsOfflineOnly() const
Gets whether or not ProtectionEngine operation allows for online HTTP operations.
void SetApplicationScenarioId(std::string applicationScenarioId)
Sets the scenario Id provided by the application.
void SetCustomSettings(const std::vector< std::pair< std::string, std::string > > &customSettings)
Set the custom settings, used for feature gating and testing.
ProtectionCommonSettings(std::string applicationScenarioId=std::string())
std::string GetApplicationScenarioId() const
Gets the scenario Id provided by the application which is used to correlation with the server.
virtual void SetIsOfflineOnly(bool isOfflineOnly)
Sets whether or not ProtectionEngine operation allows for online HTTP operations.
const std::vector< std::pair< std::string, std::string > > & GetCustomSettings() const
Get the custom settings, used for feature gating and testing.