AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleDefinition.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/model/MatchAttributes.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
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:
39 AWS_NETWORKFIREWALL_API RuleDefinition();
40 AWS_NETWORKFIREWALL_API RuleDefinition(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKFIREWALL_API RuleDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const MatchAttributes& GetMatchAttributes() const{ return m_matchAttributes; }
52 inline bool MatchAttributesHasBeenSet() const { return m_matchAttributesHasBeenSet; }
53 inline void SetMatchAttributes(const MatchAttributes& value) { m_matchAttributesHasBeenSet = true; m_matchAttributes = value; }
54 inline void SetMatchAttributes(MatchAttributes&& value) { m_matchAttributesHasBeenSet = true; m_matchAttributes = std::move(value); }
55 inline RuleDefinition& WithMatchAttributes(const MatchAttributes& value) { SetMatchAttributes(value); return *this;}
56 inline RuleDefinition& WithMatchAttributes(MatchAttributes&& value) { SetMatchAttributes(std::move(value)); return *this;}
58
60
85 inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
86 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
87 inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
88 inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
89 inline RuleDefinition& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
90 inline RuleDefinition& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
91 inline RuleDefinition& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
92 inline RuleDefinition& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
93 inline RuleDefinition& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
95 private:
96
97 MatchAttributes m_matchAttributes;
98 bool m_matchAttributesHasBeenSet = false;
99
100 Aws::Vector<Aws::String> m_actions;
101 bool m_actionsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace NetworkFirewall
106} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue