AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RuleDefinition.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkFirewall
24{
25namespace Model
26{
27
37 {
38 public:
43
44
50 inline const MatchAttributes& GetMatchAttributes() const{ return m_matchAttributes; }
51
57 inline bool MatchAttributesHasBeenSet() const { return m_matchAttributesHasBeenSet; }
58
64 inline void SetMatchAttributes(const MatchAttributes& value) { m_matchAttributesHasBeenSet = true; m_matchAttributes = value; }
65
71 inline void SetMatchAttributes(MatchAttributes&& value) { m_matchAttributesHasBeenSet = true; m_matchAttributes = std::move(value); }
72
78 inline RuleDefinition& WithMatchAttributes(const MatchAttributes& value) { SetMatchAttributes(value); return *this;}
79
85 inline RuleDefinition& WithMatchAttributes(MatchAttributes&& value) { SetMatchAttributes(std::move(value)); return *this;}
86
87
113 inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
114
140 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
141
167 inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
168
194 inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
195
221 inline RuleDefinition& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
222
248 inline RuleDefinition& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
249
275 inline RuleDefinition& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
276
302 inline RuleDefinition& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
303
329 inline RuleDefinition& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
330
331 private:
332
333 MatchAttributes m_matchAttributes;
334 bool m_matchAttributesHasBeenSet = false;
335
336 Aws::Vector<Aws::String> m_actions;
337 bool m_actionsHasBeenSet = false;
338 };
339
340} // namespace Model
341} // namespace NetworkFirewall
342} // namespace Aws
#define AWS_NETWORKFIREWALL_API
void SetMatchAttributes(const MatchAttributes &value)
RuleDefinition & WithActions(const Aws::Vector< Aws::String > &value)
void SetMatchAttributes(MatchAttributes &&value)
void SetActions(Aws::Vector< Aws::String > &&value)
AWS_NETWORKFIREWALL_API RuleDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetActions() const
AWS_NETWORKFIREWALL_API RuleDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RuleDefinition & WithMatchAttributes(MatchAttributes &&value)
const MatchAttributes & GetMatchAttributes() const
AWS_NETWORKFIREWALL_API RuleDefinition()
RuleDefinition & WithMatchAttributes(const MatchAttributes &value)
void SetActions(const Aws::Vector< Aws::String > &value)
RuleDefinition & AddActions(const Aws::String &value)
RuleDefinition & AddActions(Aws::String &&value)
RuleDefinition & AddActions(const char *value)
RuleDefinition & WithActions(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector