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.
Definition protection_common_settings.h:46
bool GetIsOfflineOnly() const
Gets whether or not ProtectionEngine operation allows for online HTTP operations.
Definition protection_common_settings.h:79
void SetApplicationScenarioId(std::string applicationScenarioId)
Sets the scenario Id provided by the application.
Definition protection_common_settings.h:66
void SetCustomSettings(const std::vector< std::pair< std::string, std::string > > &customSettings)
Set the custom settings, used for feature gating and testing.
Definition protection_common_settings.h:99
ProtectionCommonSettings(std::string applicationScenarioId=std::string())
Definition protection_common_settings.h:48
std::string GetApplicationScenarioId() const
Gets the scenario Id provided by the application which is used to correlate with the server.
Definition protection_common_settings.h:57
virtual void SetIsOfflineOnly(bool isOfflineOnly)
Sets whether or not ProtectionEngine operation allows for online HTTP operations.
Definition protection_common_settings.h:92
const std::vector< std::pair< std::string, std::string > > & GetCustomSettings() const
Get the custom settings, used for feature gating and testing.
Definition protection_common_settings.h:108