AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStatelessRules(const Aws::Vector<StatelessRule>& value) { m_statelessRulesHasBeenSet = true; m_statelessRules = value; }
50 inline void SetStatelessRules(Aws::Vector<StatelessRule>&& value) { m_statelessRulesHasBeenSet = true; m_statelessRules = std::move(value); }
53 inline StatelessRulesAndCustomActions& AddStatelessRules(const StatelessRule& value) { m_statelessRulesHasBeenSet = true; m_statelessRules.push_back(value); return *this; }
54 inline StatelessRulesAndCustomActions& AddStatelessRules(StatelessRule&& value) { m_statelessRulesHasBeenSet = true; m_statelessRules.push_back(std::move(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 inline void SetCustomActions(const Aws::Vector<CustomAction>& value) { m_customActionsHasBeenSet = true; m_customActions = value; }
69 inline void SetCustomActions(Aws::Vector<CustomAction>&& value) { m_customActionsHasBeenSet = true; m_customActions = std::move(value); }
72 inline StatelessRulesAndCustomActions& AddCustomActions(const CustomAction& value) { m_customActionsHasBeenSet = true; m_customActions.push_back(value); return *this; }
73 inline StatelessRulesAndCustomActions& AddCustomActions(CustomAction&& value) { m_customActionsHasBeenSet = true; m_customActions.push_back(std::move(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(CustomAction &&value)
StatelessRulesAndCustomActions & WithCustomActions(Aws::Vector< CustomAction > &&value)
StatelessRulesAndCustomActions & AddCustomActions(const CustomAction &value)
StatelessRulesAndCustomActions & WithStatelessRules(const Aws::Vector< StatelessRule > &value)
AWS_NETWORKFIREWALL_API StatelessRulesAndCustomActions & operator=(Aws::Utils::Json::JsonView jsonValue)
StatelessRulesAndCustomActions & WithStatelessRules(Aws::Vector< StatelessRule > &&value)
StatelessRulesAndCustomActions & AddStatelessRules(const StatelessRule &value)
StatelessRulesAndCustomActions & AddStatelessRules(StatelessRule &&value)
void SetStatelessRules(const Aws::Vector< StatelessRule > &value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
StatelessRulesAndCustomActions & WithCustomActions(const Aws::Vector< CustomAction > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue