AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RulesSource.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/network-firewall/model/RulesSourceList.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/network-firewall/model/StatelessRulesAndCustomActions.h>
12#include <aws/network-firewall/model/StatefulRule.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkFirewall
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_NETWORKFIREWALL_API RulesSource() = default;
42 AWS_NETWORKFIREWALL_API RulesSource(Aws::Utils::Json::JsonView jsonValue);
43 AWS_NETWORKFIREWALL_API RulesSource& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
58 inline const Aws::String& GetRulesString() const { return m_rulesString; }
59 inline bool RulesStringHasBeenSet() const { return m_rulesStringHasBeenSet; }
60 template<typename RulesStringT = Aws::String>
61 void SetRulesString(RulesStringT&& value) { m_rulesStringHasBeenSet = true; m_rulesString = std::forward<RulesStringT>(value); }
62 template<typename RulesStringT = Aws::String>
63 RulesSource& WithRulesString(RulesStringT&& value) { SetRulesString(std::forward<RulesStringT>(value)); return *this;}
65
67
70 inline const RulesSourceList& GetRulesSourceList() const { return m_rulesSourceList; }
71 inline bool RulesSourceListHasBeenSet() const { return m_rulesSourceListHasBeenSet; }
72 template<typename RulesSourceListT = RulesSourceList>
73 void SetRulesSourceList(RulesSourceListT&& value) { m_rulesSourceListHasBeenSet = true; m_rulesSourceList = std::forward<RulesSourceListT>(value); }
74 template<typename RulesSourceListT = RulesSourceList>
75 RulesSource& WithRulesSourceList(RulesSourceListT&& value) { SetRulesSourceList(std::forward<RulesSourceListT>(value)); return *this;}
77
79
87 inline const Aws::Vector<StatefulRule>& GetStatefulRules() const { return m_statefulRules; }
88 inline bool StatefulRulesHasBeenSet() const { return m_statefulRulesHasBeenSet; }
89 template<typename StatefulRulesT = Aws::Vector<StatefulRule>>
90 void SetStatefulRules(StatefulRulesT&& value) { m_statefulRulesHasBeenSet = true; m_statefulRules = std::forward<StatefulRulesT>(value); }
91 template<typename StatefulRulesT = Aws::Vector<StatefulRule>>
92 RulesSource& WithStatefulRules(StatefulRulesT&& value) { SetStatefulRules(std::forward<StatefulRulesT>(value)); return *this;}
93 template<typename StatefulRulesT = StatefulRule>
94 RulesSource& AddStatefulRules(StatefulRulesT&& value) { m_statefulRulesHasBeenSet = true; m_statefulRules.emplace_back(std::forward<StatefulRulesT>(value)); return *this; }
96
98
101 inline const StatelessRulesAndCustomActions& GetStatelessRulesAndCustomActions() const { return m_statelessRulesAndCustomActions; }
102 inline bool StatelessRulesAndCustomActionsHasBeenSet() const { return m_statelessRulesAndCustomActionsHasBeenSet; }
103 template<typename StatelessRulesAndCustomActionsT = StatelessRulesAndCustomActions>
104 void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT&& value) { m_statelessRulesAndCustomActionsHasBeenSet = true; m_statelessRulesAndCustomActions = std::forward<StatelessRulesAndCustomActionsT>(value); }
105 template<typename StatelessRulesAndCustomActionsT = StatelessRulesAndCustomActions>
106 RulesSource& WithStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT&& value) { SetStatelessRulesAndCustomActions(std::forward<StatelessRulesAndCustomActionsT>(value)); return *this;}
108 private:
109
110 Aws::String m_rulesString;
111 bool m_rulesStringHasBeenSet = false;
112
113 RulesSourceList m_rulesSourceList;
114 bool m_rulesSourceListHasBeenSet = false;
115
116 Aws::Vector<StatefulRule> m_statefulRules;
117 bool m_statefulRulesHasBeenSet = false;
118
119 StatelessRulesAndCustomActions m_statelessRulesAndCustomActions;
120 bool m_statelessRulesAndCustomActionsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace NetworkFirewall
125} // namespace Aws
void SetRulesSourceList(RulesSourceListT &&value)
Definition RulesSource.h:73
RulesSource & WithRulesSourceList(RulesSourceListT &&value)
Definition RulesSource.h:75
const StatelessRulesAndCustomActions & GetStatelessRulesAndCustomActions() const
void SetRulesString(RulesStringT &&value)
Definition RulesSource.h:61
RulesSource & WithRulesString(RulesStringT &&value)
Definition RulesSource.h:63
AWS_NETWORKFIREWALL_API RulesSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API RulesSource(Aws::Utils::Json::JsonView jsonValue)
void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT &&value)
const Aws::Vector< StatefulRule > & GetStatefulRules() const
Definition RulesSource.h:87
RulesSource & WithStatefulRules(StatefulRulesT &&value)
Definition RulesSource.h:92
AWS_NETWORKFIREWALL_API RulesSource()=default
RulesSource & WithStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT &&value)
RulesSource & AddStatefulRules(StatefulRulesT &&value)
Definition RulesSource.h:94
const Aws::String & GetRulesString() const
Definition RulesSource.h:58
const RulesSourceList & GetRulesSourceList() const
Definition RulesSource.h:70
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatefulRules(StatefulRulesT &&value)
Definition RulesSource.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue