AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RuleOption.h
Go to the documentation of this file.
1
6#pragma once
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:
40
41
45 inline const Aws::String& GetKeyword() const{ return m_keyword; }
46
50 inline bool KeywordHasBeenSet() const { return m_keywordHasBeenSet; }
51
55 inline void SetKeyword(const Aws::String& value) { m_keywordHasBeenSet = true; m_keyword = value; }
56
60 inline void SetKeyword(Aws::String&& value) { m_keywordHasBeenSet = true; m_keyword = std::move(value); }
61
65 inline void SetKeyword(const char* value) { m_keywordHasBeenSet = true; m_keyword.assign(value); }
66
70 inline RuleOption& WithKeyword(const Aws::String& value) { SetKeyword(value); return *this;}
71
75 inline RuleOption& WithKeyword(Aws::String&& value) { SetKeyword(std::move(value)); return *this;}
76
80 inline RuleOption& WithKeyword(const char* value) { SetKeyword(value); return *this;}
81
82
86 inline const Aws::Vector<Aws::String>& GetSettings() const{ return m_settings; }
87
91 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
92
96 inline void SetSettings(const Aws::Vector<Aws::String>& value) { m_settingsHasBeenSet = true; m_settings = value; }
97
101 inline void SetSettings(Aws::Vector<Aws::String>&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
102
106 inline RuleOption& WithSettings(const Aws::Vector<Aws::String>& value) { SetSettings(value); return *this;}
107
111 inline RuleOption& WithSettings(Aws::Vector<Aws::String>&& value) { SetSettings(std::move(value)); return *this;}
112
116 inline RuleOption& AddSettings(const Aws::String& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
117
121 inline RuleOption& AddSettings(Aws::String&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; }
122
126 inline RuleOption& AddSettings(const char* value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
127
128 private:
129
130 Aws::String m_keyword;
131 bool m_keywordHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_settings;
134 bool m_settingsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace NetworkFirewall
139} // namespace Aws
#define AWS_NETWORKFIREWALL_API
AWS_NETWORKFIREWALL_API RuleOption(Aws::Utils::Json::JsonView jsonValue)
RuleOption & AddSettings(const char *value)
Definition: RuleOption.h:126
RuleOption & WithSettings(const Aws::Vector< Aws::String > &value)
Definition: RuleOption.h:106
AWS_NETWORKFIREWALL_API RuleOption()
RuleOption & WithKeyword(const char *value)
Definition: RuleOption.h:80
AWS_NETWORKFIREWALL_API RuleOption & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeyword(const char *value)
Definition: RuleOption.h:65
RuleOption & AddSettings(Aws::String &&value)
Definition: RuleOption.h:121
void SetKeyword(const Aws::String &value)
Definition: RuleOption.h:55
RuleOption & WithKeyword(Aws::String &&value)
Definition: RuleOption.h:75
const Aws::Vector< Aws::String > & GetSettings() const
Definition: RuleOption.h:86
const Aws::String & GetKeyword() const
Definition: RuleOption.h:45
RuleOption & AddSettings(const Aws::String &value)
Definition: RuleOption.h:116
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSettings(Aws::Vector< Aws::String > &&value)
Definition: RuleOption.h:101
void SetSettings(const Aws::Vector< Aws::String > &value)
Definition: RuleOption.h:96
RuleOption & WithSettings(Aws::Vector< Aws::String > &&value)
Definition: RuleOption.h:111
RuleOption & WithKeyword(const Aws::String &value)
Definition: RuleOption.h:70
void SetKeyword(Aws::String &&value)
Definition: RuleOption.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector