AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleOption.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkFirewall
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NETWORKFIREWALL_API RuleOption() = default;
37 AWS_NETWORKFIREWALL_API RuleOption(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKFIREWALL_API RuleOption& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::String& GetKeyword() const { return m_keyword; }
51 inline bool KeywordHasBeenSet() const { return m_keywordHasBeenSet; }
52 template<typename KeywordT = Aws::String>
53 void SetKeyword(KeywordT&& value) { m_keywordHasBeenSet = true; m_keyword = std::forward<KeywordT>(value); }
54 template<typename KeywordT = Aws::String>
55 RuleOption& WithKeyword(KeywordT&& value) { SetKeyword(std::forward<KeywordT>(value)); return *this;}
57
59
67 inline const Aws::Vector<Aws::String>& GetSettings() const { return m_settings; }
68 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
69 template<typename SettingsT = Aws::Vector<Aws::String>>
70 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
71 template<typename SettingsT = Aws::Vector<Aws::String>>
72 RuleOption& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
73 template<typename SettingsT = Aws::String>
74 RuleOption& AddSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings.emplace_back(std::forward<SettingsT>(value)); return *this; }
76 private:
77
78 Aws::String m_keyword;
79 bool m_keywordHasBeenSet = false;
80
81 Aws::Vector<Aws::String> m_settings;
82 bool m_settingsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace NetworkFirewall
87} // namespace Aws
AWS_NETWORKFIREWALL_API RuleOption(Aws::Utils::Json::JsonView jsonValue)
RuleOption & WithKeyword(KeywordT &&value)
Definition RuleOption.h:55
void SetSettings(SettingsT &&value)
Definition RuleOption.h:70
AWS_NETWORKFIREWALL_API RuleOption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API RuleOption()=default
const Aws::Vector< Aws::String > & GetSettings() const
Definition RuleOption.h:67
const Aws::String & GetKeyword() const
Definition RuleOption.h:50
void SetKeyword(KeywordT &&value)
Definition RuleOption.h:53
RuleOption & AddSettings(SettingsT &&value)
Definition RuleOption.h:74
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RuleOption & WithSettings(SettingsT &&value)
Definition RuleOption.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue