AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyword(const Aws::String& value) { m_keywordHasBeenSet = true; m_keyword = value; }
53 inline void SetKeyword(Aws::String&& value) { m_keywordHasBeenSet = true; m_keyword = std::move(value); }
54 inline void SetKeyword(const char* value) { m_keywordHasBeenSet = true; m_keyword.assign(value); }
55 inline RuleOption& WithKeyword(const Aws::String& value) { SetKeyword(value); return *this;}
56 inline RuleOption& WithKeyword(Aws::String&& value) { SetKeyword(std::move(value)); return *this;}
57 inline RuleOption& WithKeyword(const char* value) { SetKeyword(value); return *this;}
59
61
69 inline const Aws::Vector<Aws::String>& GetSettings() const{ return m_settings; }
70 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
71 inline void SetSettings(const Aws::Vector<Aws::String>& value) { m_settingsHasBeenSet = true; m_settings = value; }
72 inline void SetSettings(Aws::Vector<Aws::String>&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
73 inline RuleOption& WithSettings(const Aws::Vector<Aws::String>& value) { SetSettings(value); return *this;}
74 inline RuleOption& WithSettings(Aws::Vector<Aws::String>&& value) { SetSettings(std::move(value)); return *this;}
75 inline RuleOption& AddSettings(const Aws::String& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
76 inline RuleOption& AddSettings(Aws::String&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; }
77 inline RuleOption& AddSettings(const char* value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
79 private:
80
81 Aws::String m_keyword;
82 bool m_keywordHasBeenSet = false;
83
84 Aws::Vector<Aws::String> m_settings;
85 bool m_settingsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace NetworkFirewall
90} // namespace Aws
AWS_NETWORKFIREWALL_API RuleOption(Aws::Utils::Json::JsonView jsonValue)
RuleOption & AddSettings(const char *value)
Definition RuleOption.h:77
RuleOption & WithSettings(const Aws::Vector< Aws::String > &value)
Definition RuleOption.h:73
AWS_NETWORKFIREWALL_API RuleOption()
RuleOption & WithKeyword(const char *value)
Definition RuleOption.h:57
AWS_NETWORKFIREWALL_API RuleOption & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeyword(const char *value)
Definition RuleOption.h:54
RuleOption & AddSettings(Aws::String &&value)
Definition RuleOption.h:76
void SetKeyword(const Aws::String &value)
Definition RuleOption.h:52
RuleOption & WithKeyword(Aws::String &&value)
Definition RuleOption.h:56
const Aws::Vector< Aws::String > & GetSettings() const
Definition RuleOption.h:69
const Aws::String & GetKeyword() const
Definition RuleOption.h:50
RuleOption & AddSettings(const Aws::String &value)
Definition RuleOption.h:75
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSettings(Aws::Vector< Aws::String > &&value)
Definition RuleOption.h:72
void SetSettings(const Aws::Vector< Aws::String > &value)
Definition RuleOption.h:71
RuleOption & WithSettings(Aws::Vector< Aws::String > &&value)
Definition RuleOption.h:74
RuleOption & WithKeyword(const Aws::String &value)
Definition RuleOption.h:55
void SetKeyword(Aws::String &&value)
Definition RuleOption.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue