AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RulesSourceList.h
Go to the documentation of this file.
1
6#pragma once
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:
51
52
63 inline const Aws::Vector<Aws::String>& GetTargets() const{ return m_targets; }
64
75 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
76
87 inline void SetTargets(const Aws::Vector<Aws::String>& value) { m_targetsHasBeenSet = true; m_targets = value; }
88
99 inline void SetTargets(Aws::Vector<Aws::String>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
100
111 inline RulesSourceList& WithTargets(const Aws::Vector<Aws::String>& value) { SetTargets(value); return *this;}
112
123 inline RulesSourceList& WithTargets(Aws::Vector<Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
124
135 inline RulesSourceList& AddTargets(const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
136
147 inline RulesSourceList& AddTargets(Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
148
159 inline RulesSourceList& AddTargets(const char* value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
160
161
167 inline const Aws::Vector<TargetType>& GetTargetTypes() const{ return m_targetTypes; }
168
174 inline bool TargetTypesHasBeenSet() const { return m_targetTypesHasBeenSet; }
175
181 inline void SetTargetTypes(const Aws::Vector<TargetType>& value) { m_targetTypesHasBeenSet = true; m_targetTypes = value; }
182
188 inline void SetTargetTypes(Aws::Vector<TargetType>&& value) { m_targetTypesHasBeenSet = true; m_targetTypes = std::move(value); }
189
195 inline RulesSourceList& WithTargetTypes(const Aws::Vector<TargetType>& value) { SetTargetTypes(value); return *this;}
196
202 inline RulesSourceList& WithTargetTypes(Aws::Vector<TargetType>&& value) { SetTargetTypes(std::move(value)); return *this;}
203
209 inline RulesSourceList& AddTargetTypes(const TargetType& value) { m_targetTypesHasBeenSet = true; m_targetTypes.push_back(value); return *this; }
210
216 inline RulesSourceList& AddTargetTypes(TargetType&& value) { m_targetTypesHasBeenSet = true; m_targetTypes.push_back(std::move(value)); return *this; }
217
218
223 inline const GeneratedRulesType& GetGeneratedRulesType() const{ return m_generatedRulesType; }
224
229 inline bool GeneratedRulesTypeHasBeenSet() const { return m_generatedRulesTypeHasBeenSet; }
230
235 inline void SetGeneratedRulesType(const GeneratedRulesType& value) { m_generatedRulesTypeHasBeenSet = true; m_generatedRulesType = value; }
236
241 inline void SetGeneratedRulesType(GeneratedRulesType&& value) { m_generatedRulesTypeHasBeenSet = true; m_generatedRulesType = std::move(value); }
242
248
253 inline RulesSourceList& WithGeneratedRulesType(GeneratedRulesType&& value) { SetGeneratedRulesType(std::move(value)); return *this;}
254
255 private:
256
257 Aws::Vector<Aws::String> m_targets;
258 bool m_targetsHasBeenSet = false;
259
260 Aws::Vector<TargetType> m_targetTypes;
261 bool m_targetTypesHasBeenSet = false;
262
263 GeneratedRulesType m_generatedRulesType;
264 bool m_generatedRulesTypeHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace NetworkFirewall
269} // namespace Aws
#define AWS_NETWORKFIREWALL_API
AWS_NETWORKFIREWALL_API RulesSourceList()
void SetTargetTypes(Aws::Vector< TargetType > &&value)
RulesSourceList & WithTargetTypes(const Aws::Vector< TargetType > &value)
AWS_NETWORKFIREWALL_API RulesSourceList & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetTypes(const Aws::Vector< TargetType > &value)
RulesSourceList & WithTargetTypes(Aws::Vector< TargetType > &&value)
RulesSourceList & AddTargetTypes(TargetType &&value)
const Aws::Vector< Aws::String > & GetTargets() const
void SetTargets(const Aws::Vector< Aws::String > &value)
void SetTargets(Aws::Vector< Aws::String > &&value)
RulesSourceList & AddTargetTypes(const TargetType &value)
RulesSourceList & WithTargets(const Aws::Vector< Aws::String > &value)
void SetGeneratedRulesType(GeneratedRulesType &&value)
RulesSourceList & WithTargets(Aws::Vector< Aws::String > &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RulesSourceList & AddTargets(const char *value)
RulesSourceList & WithGeneratedRulesType(const GeneratedRulesType &value)
AWS_NETWORKFIREWALL_API RulesSourceList(Aws::Utils::Json::JsonView jsonValue)
const GeneratedRulesType & GetGeneratedRulesType() const
void SetGeneratedRulesType(const GeneratedRulesType &value)
RulesSourceList & WithGeneratedRulesType(GeneratedRulesType &&value)
const Aws::Vector< TargetType > & GetTargetTypes() const
RulesSourceList & AddTargets(Aws::String &&value)
RulesSourceList & AddTargets(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector