AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RulesSourceList.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/GeneratedRulesType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/network-firewall/model/TargetType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkFirewall
25{
26namespace Model
27{
28
45 {
46 public:
47 AWS_NETWORKFIREWALL_API RulesSourceList() = default;
48 AWS_NETWORKFIREWALL_API RulesSourceList(Aws::Utils::Json::JsonView jsonValue);
49 AWS_NETWORKFIREWALL_API RulesSourceList& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
64 inline const Aws::Vector<Aws::String>& GetTargets() const { return m_targets; }
65 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
66 template<typename TargetsT = Aws::Vector<Aws::String>>
67 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
68 template<typename TargetsT = Aws::Vector<Aws::String>>
69 RulesSourceList& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
70 template<typename TargetsT = Aws::String>
71 RulesSourceList& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
73
75
80 inline const Aws::Vector<TargetType>& GetTargetTypes() const { return m_targetTypes; }
81 inline bool TargetTypesHasBeenSet() const { return m_targetTypesHasBeenSet; }
82 template<typename TargetTypesT = Aws::Vector<TargetType>>
83 void SetTargetTypes(TargetTypesT&& value) { m_targetTypesHasBeenSet = true; m_targetTypes = std::forward<TargetTypesT>(value); }
84 template<typename TargetTypesT = Aws::Vector<TargetType>>
85 RulesSourceList& WithTargetTypes(TargetTypesT&& value) { SetTargetTypes(std::forward<TargetTypesT>(value)); return *this;}
86 inline RulesSourceList& AddTargetTypes(TargetType value) { m_targetTypesHasBeenSet = true; m_targetTypes.push_back(value); return *this; }
88
90
94 inline GeneratedRulesType GetGeneratedRulesType() const { return m_generatedRulesType; }
95 inline bool GeneratedRulesTypeHasBeenSet() const { return m_generatedRulesTypeHasBeenSet; }
96 inline void SetGeneratedRulesType(GeneratedRulesType value) { m_generatedRulesTypeHasBeenSet = true; m_generatedRulesType = value; }
99 private:
100
101 Aws::Vector<Aws::String> m_targets;
102 bool m_targetsHasBeenSet = false;
103
104 Aws::Vector<TargetType> m_targetTypes;
105 bool m_targetTypesHasBeenSet = false;
106
108 bool m_generatedRulesTypeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace NetworkFirewall
113} // namespace Aws
RulesSourceList & AddTargetTypes(TargetType value)
AWS_NETWORKFIREWALL_API RulesSourceList & operator=(Aws::Utils::Json::JsonView jsonValue)
RulesSourceList & AddTargets(TargetsT &&value)
const Aws::Vector< Aws::String > & GetTargets() const
RulesSourceList & WithTargets(TargetsT &&value)
AWS_NETWORKFIREWALL_API RulesSourceList()=default
RulesSourceList & WithTargetTypes(TargetTypesT &&value)
void SetGeneratedRulesType(GeneratedRulesType value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RulesSourceList & WithGeneratedRulesType(GeneratedRulesType value)
AWS_NETWORKFIREWALL_API RulesSourceList(Aws::Utils::Json::JsonView jsonValue)
GeneratedRulesType GetGeneratedRulesType() const
const Aws::Vector< TargetType > & GetTargetTypes() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue