AWS SDK for C++  1.9.68
AWS SDK for C++
TrafficMirrorFilter.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <aws/ec2/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
29 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetTrafficMirrorFilterId() const{ return m_trafficMirrorFilterId; }
50 
54  inline bool TrafficMirrorFilterIdHasBeenSet() const { return m_trafficMirrorFilterIdHasBeenSet; }
55 
59  inline void SetTrafficMirrorFilterId(const Aws::String& value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId = value; }
60 
64  inline void SetTrafficMirrorFilterId(Aws::String&& value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId = std::move(value); }
65 
69  inline void SetTrafficMirrorFilterId(const char* value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId.assign(value); }
70 
74  inline TrafficMirrorFilter& WithTrafficMirrorFilterId(const Aws::String& value) { SetTrafficMirrorFilterId(value); return *this;}
75 
79  inline TrafficMirrorFilter& WithTrafficMirrorFilterId(Aws::String&& value) { SetTrafficMirrorFilterId(std::move(value)); return *this;}
80 
84  inline TrafficMirrorFilter& WithTrafficMirrorFilterId(const char* value) { SetTrafficMirrorFilterId(value); return *this;}
85 
86 
91  inline const Aws::Vector<TrafficMirrorFilterRule>& GetIngressFilterRules() const{ return m_ingressFilterRules; }
92 
97  inline bool IngressFilterRulesHasBeenSet() const { return m_ingressFilterRulesHasBeenSet; }
98 
103  inline void SetIngressFilterRules(const Aws::Vector<TrafficMirrorFilterRule>& value) { m_ingressFilterRulesHasBeenSet = true; m_ingressFilterRules = value; }
104 
109  inline void SetIngressFilterRules(Aws::Vector<TrafficMirrorFilterRule>&& value) { m_ingressFilterRulesHasBeenSet = true; m_ingressFilterRules = std::move(value); }
110 
115  inline TrafficMirrorFilter& WithIngressFilterRules(const Aws::Vector<TrafficMirrorFilterRule>& value) { SetIngressFilterRules(value); return *this;}
116 
121  inline TrafficMirrorFilter& WithIngressFilterRules(Aws::Vector<TrafficMirrorFilterRule>&& value) { SetIngressFilterRules(std::move(value)); return *this;}
122 
127  inline TrafficMirrorFilter& AddIngressFilterRules(const TrafficMirrorFilterRule& value) { m_ingressFilterRulesHasBeenSet = true; m_ingressFilterRules.push_back(value); return *this; }
128 
133  inline TrafficMirrorFilter& AddIngressFilterRules(TrafficMirrorFilterRule&& value) { m_ingressFilterRulesHasBeenSet = true; m_ingressFilterRules.push_back(std::move(value)); return *this; }
134 
135 
140  inline const Aws::Vector<TrafficMirrorFilterRule>& GetEgressFilterRules() const{ return m_egressFilterRules; }
141 
146  inline bool EgressFilterRulesHasBeenSet() const { return m_egressFilterRulesHasBeenSet; }
147 
152  inline void SetEgressFilterRules(const Aws::Vector<TrafficMirrorFilterRule>& value) { m_egressFilterRulesHasBeenSet = true; m_egressFilterRules = value; }
153 
158  inline void SetEgressFilterRules(Aws::Vector<TrafficMirrorFilterRule>&& value) { m_egressFilterRulesHasBeenSet = true; m_egressFilterRules = std::move(value); }
159 
164  inline TrafficMirrorFilter& WithEgressFilterRules(const Aws::Vector<TrafficMirrorFilterRule>& value) { SetEgressFilterRules(value); return *this;}
165 
170  inline TrafficMirrorFilter& WithEgressFilterRules(Aws::Vector<TrafficMirrorFilterRule>&& value) { SetEgressFilterRules(std::move(value)); return *this;}
171 
176  inline TrafficMirrorFilter& AddEgressFilterRules(const TrafficMirrorFilterRule& value) { m_egressFilterRulesHasBeenSet = true; m_egressFilterRules.push_back(value); return *this; }
177 
182  inline TrafficMirrorFilter& AddEgressFilterRules(TrafficMirrorFilterRule&& value) { m_egressFilterRulesHasBeenSet = true; m_egressFilterRules.push_back(std::move(value)); return *this; }
183 
184 
189  inline const Aws::Vector<TrafficMirrorNetworkService>& GetNetworkServices() const{ return m_networkServices; }
190 
195  inline bool NetworkServicesHasBeenSet() const { return m_networkServicesHasBeenSet; }
196 
201  inline void SetNetworkServices(const Aws::Vector<TrafficMirrorNetworkService>& value) { m_networkServicesHasBeenSet = true; m_networkServices = value; }
202 
207  inline void SetNetworkServices(Aws::Vector<TrafficMirrorNetworkService>&& value) { m_networkServicesHasBeenSet = true; m_networkServices = std::move(value); }
208 
213  inline TrafficMirrorFilter& WithNetworkServices(const Aws::Vector<TrafficMirrorNetworkService>& value) { SetNetworkServices(value); return *this;}
214 
219  inline TrafficMirrorFilter& WithNetworkServices(Aws::Vector<TrafficMirrorNetworkService>&& value) { SetNetworkServices(std::move(value)); return *this;}
220 
225  inline TrafficMirrorFilter& AddNetworkServices(const TrafficMirrorNetworkService& value) { m_networkServicesHasBeenSet = true; m_networkServices.push_back(value); return *this; }
226 
231  inline TrafficMirrorFilter& AddNetworkServices(TrafficMirrorNetworkService&& value) { m_networkServicesHasBeenSet = true; m_networkServices.push_back(std::move(value)); return *this; }
232 
233 
237  inline const Aws::String& GetDescription() const{ return m_description; }
238 
242  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
243 
247  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
248 
252  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
253 
257  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
258 
262  inline TrafficMirrorFilter& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
263 
267  inline TrafficMirrorFilter& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
268 
272  inline TrafficMirrorFilter& WithDescription(const char* value) { SetDescription(value); return *this;}
273 
274 
278  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
279 
283  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
284 
288  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
289 
293  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
294 
298  inline TrafficMirrorFilter& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
299 
303  inline TrafficMirrorFilter& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
304 
308  inline TrafficMirrorFilter& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
309 
313  inline TrafficMirrorFilter& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
314 
315  private:
316 
317  Aws::String m_trafficMirrorFilterId;
318  bool m_trafficMirrorFilterIdHasBeenSet;
319 
320  Aws::Vector<TrafficMirrorFilterRule> m_ingressFilterRules;
321  bool m_ingressFilterRulesHasBeenSet;
322 
323  Aws::Vector<TrafficMirrorFilterRule> m_egressFilterRules;
324  bool m_egressFilterRulesHasBeenSet;
325 
327  bool m_networkServicesHasBeenSet;
328 
329  Aws::String m_description;
330  bool m_descriptionHasBeenSet;
331 
332  Aws::Vector<Tag> m_tags;
333  bool m_tagsHasBeenSet;
334  };
335 
336 } // namespace Model
337 } // namespace EC2
338 } // namespace Aws
Aws::EC2::Model::TrafficMirrorFilter::WithEgressFilterRules
TrafficMirrorFilter & WithEgressFilterRules(const Aws::Vector< TrafficMirrorFilterRule > &value)
Definition: TrafficMirrorFilter.h:164
Aws::EC2::Model::TrafficMirrorFilter::SetIngressFilterRules
void SetIngressFilterRules(const Aws::Vector< TrafficMirrorFilterRule > &value)
Definition: TrafficMirrorFilter.h:103
Aws::EC2::Model::TrafficMirrorFilter::AddIngressFilterRules
TrafficMirrorFilter & AddIngressFilterRules(const TrafficMirrorFilterRule &value)
Definition: TrafficMirrorFilter.h:127
Aws::EC2::Model::TrafficMirrorFilter::IngressFilterRulesHasBeenSet
bool IngressFilterRulesHasBeenSet() const
Definition: TrafficMirrorFilter.h:97
Aws::EC2::Model::TrafficMirrorFilter::AddTags
TrafficMirrorFilter & AddTags(Tag &&value)
Definition: TrafficMirrorFilter.h:313
Aws::EC2::Model::TrafficMirrorFilter::GetIngressFilterRules
const Aws::Vector< TrafficMirrorFilterRule > & GetIngressFilterRules() const
Definition: TrafficMirrorFilter.h:91
Aws::EC2::Model::TrafficMirrorFilter::WithNetworkServices
TrafficMirrorFilter & WithNetworkServices(const Aws::Vector< TrafficMirrorNetworkService > &value)
Definition: TrafficMirrorFilter.h:213
Aws::EC2::Model::TrafficMirrorFilter::WithNetworkServices
TrafficMirrorFilter & WithNetworkServices(Aws::Vector< TrafficMirrorNetworkService > &&value)
Definition: TrafficMirrorFilter.h:219
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::TrafficMirrorFilter::WithEgressFilterRules
TrafficMirrorFilter & WithEgressFilterRules(Aws::Vector< TrafficMirrorFilterRule > &&value)
Definition: TrafficMirrorFilter.h:170
Aws::EC2::Model::TrafficMirrorFilter::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TrafficMirrorFilter::TrafficMirrorFilterIdHasBeenSet
bool TrafficMirrorFilterIdHasBeenSet() const
Definition: TrafficMirrorFilter.h:54
Aws::EC2::Model::TrafficMirrorFilter::TrafficMirrorFilter
TrafficMirrorFilter()
Aws::EC2::Model::TrafficMirrorFilter::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TrafficMirrorFilter.h:278
Aws::EC2::Model::TrafficMirrorFilter::NetworkServicesHasBeenSet
bool NetworkServicesHasBeenSet() const
Definition: TrafficMirrorFilter.h:195
Aws::EC2::Model::TrafficMirrorFilter::SetNetworkServices
void SetNetworkServices(Aws::Vector< TrafficMirrorNetworkService > &&value)
Definition: TrafficMirrorFilter.h:207
Aws::EC2::Model::TrafficMirrorFilter::SetTrafficMirrorFilterId
void SetTrafficMirrorFilterId(const char *value)
Definition: TrafficMirrorFilter.h:69
Aws::EC2::Model::TrafficMirrorFilter::SetDescription
void SetDescription(const char *value)
Definition: TrafficMirrorFilter.h:257
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TrafficMirrorFilter::SetNetworkServices
void SetNetworkServices(const Aws::Vector< TrafficMirrorNetworkService > &value)
Definition: TrafficMirrorFilter.h:201
TrafficMirrorFilterRule.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::TrafficMirrorFilter::SetEgressFilterRules
void SetEgressFilterRules(const Aws::Vector< TrafficMirrorFilterRule > &value)
Definition: TrafficMirrorFilter.h:152
Aws::EC2::Model::TrafficMirrorFilter::AddNetworkServices
TrafficMirrorFilter & AddNetworkServices(const TrafficMirrorNetworkService &value)
Definition: TrafficMirrorFilter.h:225
AWSStreamFwd.h
Aws::EC2::Model::TrafficMirrorFilter::WithTags
TrafficMirrorFilter & WithTags(const Aws::Vector< Tag > &value)
Definition: TrafficMirrorFilter.h:298
AWSVector.h
Tag.h
Aws::EC2::Model::TrafficMirrorFilterRule
Definition: TrafficMirrorFilterRule.h:35
Aws::EC2::Model::TrafficMirrorFilter::SetTrafficMirrorFilterId
void SetTrafficMirrorFilterId(Aws::String &&value)
Definition: TrafficMirrorFilter.h:64
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TrafficMirrorNetworkService
TrafficMirrorNetworkService
Definition: TrafficMirrorNetworkService.h:17
Aws::EC2::Model::TrafficMirrorFilter::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TrafficMirrorFilter.h:288
Aws::EC2::Model::TrafficMirrorFilter::WithDescription
TrafficMirrorFilter & WithDescription(const char *value)
Definition: TrafficMirrorFilter.h:272
Aws::EC2::Model::TrafficMirrorFilter::GetEgressFilterRules
const Aws::Vector< TrafficMirrorFilterRule > & GetEgressFilterRules() const
Definition: TrafficMirrorFilter.h:140
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TrafficMirrorFilter::WithIngressFilterRules
TrafficMirrorFilter & WithIngressFilterRules(const Aws::Vector< TrafficMirrorFilterRule > &value)
Definition: TrafficMirrorFilter.h:115
Aws::EC2::Model::TrafficMirrorFilter::WithDescription
TrafficMirrorFilter & WithDescription(const Aws::String &value)
Definition: TrafficMirrorFilter.h:262
Aws::EC2::Model::TrafficMirrorFilter::AddIngressFilterRules
TrafficMirrorFilter & AddIngressFilterRules(TrafficMirrorFilterRule &&value)
Definition: TrafficMirrorFilter.h:133
Aws::EC2::Model::TrafficMirrorFilter::SetEgressFilterRules
void SetEgressFilterRules(Aws::Vector< TrafficMirrorFilterRule > &&value)
Definition: TrafficMirrorFilter.h:158
Aws::EC2::Model::TrafficMirrorFilter::WithTrafficMirrorFilterId
TrafficMirrorFilter & WithTrafficMirrorFilterId(Aws::String &&value)
Definition: TrafficMirrorFilter.h:79
AWSString.h
Aws::EC2::Model::TrafficMirrorFilter::WithDescription
TrafficMirrorFilter & WithDescription(Aws::String &&value)
Definition: TrafficMirrorFilter.h:267
Aws::EC2::Model::TrafficMirrorFilter::GetTrafficMirrorFilterId
const Aws::String & GetTrafficMirrorFilterId() const
Definition: TrafficMirrorFilter.h:49
Aws::EC2::Model::TrafficMirrorFilter::GetNetworkServices
const Aws::Vector< TrafficMirrorNetworkService > & GetNetworkServices() const
Definition: TrafficMirrorFilter.h:189
Aws::EC2::Model::TrafficMirrorFilter::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: TrafficMirrorFilter.h:242
Aws::EC2::Model::TrafficMirrorFilter::WithTags
TrafficMirrorFilter & WithTags(Aws::Vector< Tag > &&value)
Definition: TrafficMirrorFilter.h:303
Aws::EC2::Model::TrafficMirrorFilter::AddNetworkServices
TrafficMirrorFilter & AddNetworkServices(TrafficMirrorNetworkService &&value)
Definition: TrafficMirrorFilter.h:231
Aws::EC2::Model::TrafficMirrorFilter::SetIngressFilterRules
void SetIngressFilterRules(Aws::Vector< TrafficMirrorFilterRule > &&value)
Definition: TrafficMirrorFilter.h:109
Aws::EC2::Model::TrafficMirrorFilter::WithTrafficMirrorFilterId
TrafficMirrorFilter & WithTrafficMirrorFilterId(const char *value)
Definition: TrafficMirrorFilter.h:84
Aws::EC2::Model::TrafficMirrorFilter::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TrafficMirrorFilter::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TrafficMirrorFilter.h:293
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TrafficMirrorFilter::SetDescription
void SetDescription(Aws::String &&value)
Definition: TrafficMirrorFilter.h:252
Aws::EC2::Model::TrafficMirrorFilter::GetDescription
const Aws::String & GetDescription() const
Definition: TrafficMirrorFilter.h:237
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TrafficMirrorFilter::AddEgressFilterRules
TrafficMirrorFilter & AddEgressFilterRules(const TrafficMirrorFilterRule &value)
Definition: TrafficMirrorFilter.h:176
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TrafficMirrorFilter::SetDescription
void SetDescription(const Aws::String &value)
Definition: TrafficMirrorFilter.h:247
Aws::EC2::Model::TrafficMirrorFilter::SetTrafficMirrorFilterId
void SetTrafficMirrorFilterId(const Aws::String &value)
Definition: TrafficMirrorFilter.h:59
Aws::EC2::Model::TrafficMirrorFilter
Definition: TrafficMirrorFilter.h:36
Aws::EC2::Model::TrafficMirrorFilter::WithIngressFilterRules
TrafficMirrorFilter & WithIngressFilterRules(Aws::Vector< TrafficMirrorFilterRule > &&value)
Definition: TrafficMirrorFilter.h:121
Aws::EC2::Model::TrafficMirrorFilter::WithTrafficMirrorFilterId
TrafficMirrorFilter & WithTrafficMirrorFilterId(const Aws::String &value)
Definition: TrafficMirrorFilter.h:74
Aws::EC2::Model::TrafficMirrorFilter::TrafficMirrorFilter
TrafficMirrorFilter(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TrafficMirrorFilter::operator=
TrafficMirrorFilter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::TrafficMirrorFilter::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TrafficMirrorFilter.h:283
Aws::EC2::Model::TrafficMirrorFilter::EgressFilterRulesHasBeenSet
bool EgressFilterRulesHasBeenSet() const
Definition: TrafficMirrorFilter.h:146
TrafficMirrorNetworkService.h
Aws::EC2::Model::TrafficMirrorFilter::AddEgressFilterRules
TrafficMirrorFilter & AddEgressFilterRules(TrafficMirrorFilterRule &&value)
Definition: TrafficMirrorFilter.h:182
Aws::EC2::Model::TrafficMirrorFilter::AddTags
TrafficMirrorFilter & AddTags(const Tag &value)
Definition: TrafficMirrorFilter.h:308