AWS SDK for C++  1.9.132
AWS SDK for C++
TrafficMirrorTarget.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetTrafficMirrorTargetId() const{ return m_trafficMirrorTargetId; }
49 
53  inline bool TrafficMirrorTargetIdHasBeenSet() const { return m_trafficMirrorTargetIdHasBeenSet; }
54 
58  inline void SetTrafficMirrorTargetId(const Aws::String& value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId = value; }
59 
63  inline void SetTrafficMirrorTargetId(Aws::String&& value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId = std::move(value); }
64 
68  inline void SetTrafficMirrorTargetId(const char* value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId.assign(value); }
69 
73  inline TrafficMirrorTarget& WithTrafficMirrorTargetId(const Aws::String& value) { SetTrafficMirrorTargetId(value); return *this;}
74 
78  inline TrafficMirrorTarget& WithTrafficMirrorTargetId(Aws::String&& value) { SetTrafficMirrorTargetId(std::move(value)); return *this;}
79 
83  inline TrafficMirrorTarget& WithTrafficMirrorTargetId(const char* value) { SetTrafficMirrorTargetId(value); return *this;}
84 
85 
89  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
90 
94  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
95 
99  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
100 
104  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
105 
109  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
110 
114  inline TrafficMirrorTarget& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
115 
119  inline TrafficMirrorTarget& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
120 
124  inline TrafficMirrorTarget& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
125 
126 
130  inline const Aws::String& GetNetworkLoadBalancerArn() const{ return m_networkLoadBalancerArn; }
131 
135  inline bool NetworkLoadBalancerArnHasBeenSet() const { return m_networkLoadBalancerArnHasBeenSet; }
136 
140  inline void SetNetworkLoadBalancerArn(const Aws::String& value) { m_networkLoadBalancerArnHasBeenSet = true; m_networkLoadBalancerArn = value; }
141 
145  inline void SetNetworkLoadBalancerArn(Aws::String&& value) { m_networkLoadBalancerArnHasBeenSet = true; m_networkLoadBalancerArn = std::move(value); }
146 
150  inline void SetNetworkLoadBalancerArn(const char* value) { m_networkLoadBalancerArnHasBeenSet = true; m_networkLoadBalancerArn.assign(value); }
151 
155  inline TrafficMirrorTarget& WithNetworkLoadBalancerArn(const Aws::String& value) { SetNetworkLoadBalancerArn(value); return *this;}
156 
160  inline TrafficMirrorTarget& WithNetworkLoadBalancerArn(Aws::String&& value) { SetNetworkLoadBalancerArn(std::move(value)); return *this;}
161 
165  inline TrafficMirrorTarget& WithNetworkLoadBalancerArn(const char* value) { SetNetworkLoadBalancerArn(value); return *this;}
166 
167 
171  inline const TrafficMirrorTargetType& GetType() const{ return m_type; }
172 
176  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
177 
181  inline void SetType(const TrafficMirrorTargetType& value) { m_typeHasBeenSet = true; m_type = value; }
182 
186  inline void SetType(TrafficMirrorTargetType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
187 
191  inline TrafficMirrorTarget& WithType(const TrafficMirrorTargetType& value) { SetType(value); return *this;}
192 
196  inline TrafficMirrorTarget& WithType(TrafficMirrorTargetType&& value) { SetType(std::move(value)); return *this;}
197 
198 
202  inline const Aws::String& GetDescription() const{ return m_description; }
203 
207  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
208 
212  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
213 
217  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
218 
222  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
223 
227  inline TrafficMirrorTarget& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
228 
232  inline TrafficMirrorTarget& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
233 
237  inline TrafficMirrorTarget& WithDescription(const char* value) { SetDescription(value); return *this;}
238 
239 
243  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
244 
248  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
249 
253  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
254 
258  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
259 
263  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
264 
268  inline TrafficMirrorTarget& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
269 
273  inline TrafficMirrorTarget& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
274 
278  inline TrafficMirrorTarget& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
279 
280 
284  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
285 
289  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
290 
294  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
295 
299  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
300 
304  inline TrafficMirrorTarget& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
305 
309  inline TrafficMirrorTarget& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
310 
314  inline TrafficMirrorTarget& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
315 
319  inline TrafficMirrorTarget& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
320 
321  private:
322 
323  Aws::String m_trafficMirrorTargetId;
324  bool m_trafficMirrorTargetIdHasBeenSet;
325 
326  Aws::String m_networkInterfaceId;
327  bool m_networkInterfaceIdHasBeenSet;
328 
329  Aws::String m_networkLoadBalancerArn;
330  bool m_networkLoadBalancerArnHasBeenSet;
331 
333  bool m_typeHasBeenSet;
334 
335  Aws::String m_description;
336  bool m_descriptionHasBeenSet;
337 
338  Aws::String m_ownerId;
339  bool m_ownerIdHasBeenSet;
340 
341  Aws::Vector<Tag> m_tags;
342  bool m_tagsHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace EC2
347 } // namespace Aws
Aws::EC2::Model::TrafficMirrorTarget::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: TrafficMirrorTarget.h:104
Aws::EC2::Model::TrafficMirrorTargetType
TrafficMirrorTargetType
Definition: TrafficMirrorTargetType.h:17
Aws::EC2::Model::TrafficMirrorTarget::WithTrafficMirrorTargetId
TrafficMirrorTarget & WithTrafficMirrorTargetId(Aws::String &&value)
Definition: TrafficMirrorTarget.h:78
Aws::EC2::Model::TrafficMirrorTarget::SetTrafficMirrorTargetId
void SetTrafficMirrorTargetId(const char *value)
Definition: TrafficMirrorTarget.h:68
Aws::EC2::Model::TrafficMirrorTarget::WithNetworkLoadBalancerArn
TrafficMirrorTarget & WithNetworkLoadBalancerArn(const Aws::String &value)
Definition: TrafficMirrorTarget.h:155
Aws::EC2::Model::TrafficMirrorTarget::SetNetworkLoadBalancerArn
void SetNetworkLoadBalancerArn(const Aws::String &value)
Definition: TrafficMirrorTarget.h:140
Aws::EC2::Model::TrafficMirrorTarget::WithNetworkInterfaceId
TrafficMirrorTarget & WithNetworkInterfaceId(const char *value)
Definition: TrafficMirrorTarget.h:124
Aws::EC2::Model::TrafficMirrorTarget::SetType
void SetType(const TrafficMirrorTargetType &value)
Definition: TrafficMirrorTarget.h:181
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::TrafficMirrorTarget::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: TrafficMirrorTarget.h:109
Aws::EC2::Model::TrafficMirrorTarget::GetNetworkLoadBalancerArn
const Aws::String & GetNetworkLoadBalancerArn() const
Definition: TrafficMirrorTarget.h:130
Aws::EC2::Model::TrafficMirrorTarget::WithTrafficMirrorTargetId
TrafficMirrorTarget & WithTrafficMirrorTargetId(const char *value)
Definition: TrafficMirrorTarget.h:83
Aws::EC2::Model::TrafficMirrorTarget::GetTrafficMirrorTargetId
const Aws::String & GetTrafficMirrorTargetId() const
Definition: TrafficMirrorTarget.h:48
Aws::EC2::Model::TrafficMirrorTarget::WithTrafficMirrorTargetId
TrafficMirrorTarget & WithTrafficMirrorTargetId(const Aws::String &value)
Definition: TrafficMirrorTarget.h:73
Aws::EC2::Model::TrafficMirrorTarget::GetType
const TrafficMirrorTargetType & GetType() const
Definition: TrafficMirrorTarget.h:171
Aws::EC2::Model::TrafficMirrorTarget::TrafficMirrorTarget
TrafficMirrorTarget()
Aws::EC2::Model::TrafficMirrorTarget::AddTags
TrafficMirrorTarget & AddTags(Tag &&value)
Definition: TrafficMirrorTarget.h:319
Aws::EC2::Model::TrafficMirrorTarget::SetTrafficMirrorTargetId
void SetTrafficMirrorTargetId(const Aws::String &value)
Definition: TrafficMirrorTarget.h:58
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TrafficMirrorTarget::WithTags
TrafficMirrorTarget & WithTags(const Aws::Vector< Tag > &value)
Definition: TrafficMirrorTarget.h:304
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::TrafficMirrorTarget::WithNetworkLoadBalancerArn
TrafficMirrorTarget & WithNetworkLoadBalancerArn(const char *value)
Definition: TrafficMirrorTarget.h:165
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::EC2::Model::TrafficMirrorTarget::SetOwnerId
void SetOwnerId(const char *value)
Definition: TrafficMirrorTarget.h:263
Aws::EC2::Model::TrafficMirrorTarget::WithOwnerId
TrafficMirrorTarget & WithOwnerId(const Aws::String &value)
Definition: TrafficMirrorTarget.h:268
Aws::EC2::Model::TrafficMirrorTarget::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: TrafficMirrorTarget.h:253
Aws::EC2::Model::TrafficMirrorTarget::GetDescription
const Aws::String & GetDescription() const
Definition: TrafficMirrorTarget.h:202
Aws::EC2::Model::TrafficMirrorTarget::WithNetworkInterfaceId
TrafficMirrorTarget & WithNetworkInterfaceId(Aws::String &&value)
Definition: TrafficMirrorTarget.h:119
Aws::EC2::Model::TrafficMirrorTarget::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: TrafficMirrorTarget.h:207
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TrafficMirrorTarget::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: TrafficMirrorTarget.h:99
Aws::EC2::Model::TrafficMirrorTarget::SetDescription
void SetDescription(Aws::String &&value)
Definition: TrafficMirrorTarget.h:217
Aws::EC2::Model::TrafficMirrorTarget::WithDescription
TrafficMirrorTarget & WithDescription(Aws::String &&value)
Definition: TrafficMirrorTarget.h:232
Aws::EC2::Model::TrafficMirrorTarget::AddTags
TrafficMirrorTarget & AddTags(const Tag &value)
Definition: TrafficMirrorTarget.h:314
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TrafficMirrorTarget::WithType
TrafficMirrorTarget & WithType(TrafficMirrorTargetType &&value)
Definition: TrafficMirrorTarget.h:196
Aws::EC2::Model::TrafficMirrorTarget::operator=
TrafficMirrorTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TrafficMirrorTarget::WithDescription
TrafficMirrorTarget & WithDescription(const Aws::String &value)
Definition: TrafficMirrorTarget.h:227
Aws::EC2::Model::TrafficMirrorTarget::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TrafficMirrorTarget.h:294
Aws::EC2::Model::TrafficMirrorTarget::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TrafficMirrorTarget.h:289
Aws::EC2::Model::TrafficMirrorTarget::WithNetworkLoadBalancerArn
TrafficMirrorTarget & WithNetworkLoadBalancerArn(Aws::String &&value)
Definition: TrafficMirrorTarget.h:160
Aws::EC2::Model::TrafficMirrorTarget::SetDescription
void SetDescription(const char *value)
Definition: TrafficMirrorTarget.h:222
AWSString.h
Aws::EC2::Model::TrafficMirrorTarget::WithOwnerId
TrafficMirrorTarget & WithOwnerId(Aws::String &&value)
Definition: TrafficMirrorTarget.h:273
Aws::EC2::Model::TrafficMirrorTarget::WithType
TrafficMirrorTarget & WithType(const TrafficMirrorTargetType &value)
Definition: TrafficMirrorTarget.h:191
Aws::EC2::Model::TrafficMirrorTarget::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TrafficMirrorTarget::TrafficMirrorTargetIdHasBeenSet
bool TrafficMirrorTargetIdHasBeenSet() const
Definition: TrafficMirrorTarget.h:53
Aws::EC2::Model::TrafficMirrorTarget::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: TrafficMirrorTarget.h:243
Aws::EC2::Model::TrafficMirrorTarget::SetTrafficMirrorTargetId
void SetTrafficMirrorTargetId(Aws::String &&value)
Definition: TrafficMirrorTarget.h:63
Aws::EC2::Model::TrafficMirrorTarget::NetworkLoadBalancerArnHasBeenSet
bool NetworkLoadBalancerArnHasBeenSet() const
Definition: TrafficMirrorTarget.h:135
Aws::EC2::Model::TrafficMirrorTarget::SetType
void SetType(TrafficMirrorTargetType &&value)
Definition: TrafficMirrorTarget.h:186
Aws::EC2::Model::TrafficMirrorTarget::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: TrafficMirrorTarget.h:94
Aws::EC2::Model::TrafficMirrorTarget
Definition: TrafficMirrorTarget.h:35
Aws::EC2::Model::TrafficMirrorTarget::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: TrafficMirrorTarget.h:258
Aws::EC2::Model::TrafficMirrorTarget::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TrafficMirrorTarget.h:284
Aws::EC2::Model::TrafficMirrorTarget::SetNetworkLoadBalancerArn
void SetNetworkLoadBalancerArn(const char *value)
Definition: TrafficMirrorTarget.h:150
Aws::EC2::Model::TrafficMirrorTarget::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: TrafficMirrorTarget.h:89
Aws::EC2::Model::TrafficMirrorTarget::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: TrafficMirrorTarget.h:248
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TrafficMirrorTarget::WithDescription
TrafficMirrorTarget & WithDescription(const char *value)
Definition: TrafficMirrorTarget.h:237
Aws::EC2::Model::TrafficMirrorTarget::WithOwnerId
TrafficMirrorTarget & WithOwnerId(const char *value)
Definition: TrafficMirrorTarget.h:278
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TrafficMirrorTarget::WithNetworkInterfaceId
TrafficMirrorTarget & WithNetworkInterfaceId(const Aws::String &value)
Definition: TrafficMirrorTarget.h:114
TrafficMirrorTargetType.h
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TrafficMirrorTarget::SetNetworkLoadBalancerArn
void SetNetworkLoadBalancerArn(Aws::String &&value)
Definition: TrafficMirrorTarget.h:145
Aws::EC2::Model::TrafficMirrorTarget::TrafficMirrorTarget
TrafficMirrorTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TrafficMirrorTarget::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TrafficMirrorTarget::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: TrafficMirrorTarget.h:176
Aws::EC2::Model::TrafficMirrorTarget::WithTags
TrafficMirrorTarget & WithTags(Aws::Vector< Tag > &&value)
Definition: TrafficMirrorTarget.h:309
EC2_EXPORTS.h
Aws::EC2::Model::TrafficMirrorTarget::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TrafficMirrorTarget.h:299
Aws::EC2::Model::TrafficMirrorTarget::SetDescription
void SetDescription(const Aws::String &value)
Definition: TrafficMirrorTarget.h:212