AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StatelessRulesAndCustomActions.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-firewall/model/StatelessRule.h>
10#include <aws/network-firewall/model/CustomAction.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
35 {
36 public:
37 AWS_NETWORKFIREWALL_API StatelessRulesAndCustomActions() = default;
40 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<StatelessRule>& GetStatelessRules() const { return m_statelessRules; }
48 inline bool StatelessRulesHasBeenSet() const { return m_statelessRulesHasBeenSet; }
49 template<typename StatelessRulesT = Aws::Vector<StatelessRule>>
50 void SetStatelessRules(StatelessRulesT&& value) { m_statelessRulesHasBeenSet = true; m_statelessRules = std::forward<StatelessRulesT>(value); }
51 template<typename StatelessRulesT = Aws::Vector<StatelessRule>>
52 StatelessRulesAndCustomActions& WithStatelessRules(StatelessRulesT&& value) { SetStatelessRules(std::forward<StatelessRulesT>(value)); return *this;}
53 template<typename StatelessRulesT = StatelessRule>
54 StatelessRulesAndCustomActions& AddStatelessRules(StatelessRulesT&& value) { m_statelessRulesHasBeenSet = true; m_statelessRules.emplace_back(std::forward<StatelessRulesT>(value)); return *this; }
56
58
66 inline const Aws::Vector<CustomAction>& GetCustomActions() const { return m_customActions; }
67 inline bool CustomActionsHasBeenSet() const { return m_customActionsHasBeenSet; }
68 template<typename CustomActionsT = Aws::Vector<CustomAction>>
69 void SetCustomActions(CustomActionsT&& value) { m_customActionsHasBeenSet = true; m_customActions = std::forward<CustomActionsT>(value); }
70 template<typename CustomActionsT = Aws::Vector<CustomAction>>
71 StatelessRulesAndCustomActions& WithCustomActions(CustomActionsT&& value) { SetCustomActions(std::forward<CustomActionsT>(value)); return *this;}
72 template<typename CustomActionsT = CustomAction>
73 StatelessRulesAndCustomActions& AddCustomActions(CustomActionsT&& value) { m_customActionsHasBeenSet = true; m_customActions.emplace_back(std::forward<CustomActionsT>(value)); return *this; }
75 private:
76
77 Aws::Vector<StatelessRule> m_statelessRules;
78 bool m_statelessRulesHasBeenSet = false;
79
80 Aws::Vector<CustomAction> m_customActions;
81 bool m_customActionsHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace NetworkFirewall
86} // namespace Aws
AWS_NETWORKFIREWALL_API StatelessRulesAndCustomActions(Aws::Utils::Json::JsonView jsonValue)
StatelessRulesAndCustomActions & AddCustomActions(CustomActionsT &&value)
AWS_NETWORKFIREWALL_API StatelessRulesAndCustomActions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API StatelessRulesAndCustomActions()=default
StatelessRulesAndCustomActions & AddStatelessRules(StatelessRulesT &&value)
StatelessRulesAndCustomActions & WithCustomActions(CustomActionsT &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
StatelessRulesAndCustomActions & WithStatelessRules(StatelessRulesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue