AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MatchAttributesT = MatchAttributes>
54 void SetMatchAttributes(MatchAttributesT&& value) { m_matchAttributesHasBeenSet = true; m_matchAttributes = std::forward<MatchAttributesT>(value); }
55 template<typename MatchAttributesT = MatchAttributes>
56 RuleDefinition& WithMatchAttributes(MatchAttributesT&& value) { SetMatchAttributes(std::forward<MatchAttributesT>(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 template<typename ActionsT = Aws::Vector<Aws::String>>
88 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
89 template<typename ActionsT = Aws::Vector<Aws::String>>
90 RuleDefinition& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
91 template<typename ActionsT = Aws::String>
92 RuleDefinition& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
94 private:
95
96 MatchAttributes m_matchAttributes;
97 bool m_matchAttributesHasBeenSet = false;
98
100 bool m_actionsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace NetworkFirewall
105} // namespace Aws
AWS_NETWORKFIREWALL_API RuleDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleDefinition & WithMatchAttributes(MatchAttributesT &&value)
const Aws::Vector< Aws::String > & GetActions() const
RuleDefinition & WithActions(ActionsT &&value)
AWS_NETWORKFIREWALL_API RuleDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RuleDefinition & AddActions(ActionsT &&value)
const MatchAttributes & GetMatchAttributes() const
AWS_NETWORKFIREWALL_API RuleDefinition()=default
void SetMatchAttributes(MatchAttributesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue