AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrafficMirrorTarget.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/TrafficMirrorTargetType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API TrafficMirrorTarget();
38 AWS_EC2_API TrafficMirrorTarget(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetTrafficMirrorTargetId() const{ return m_trafficMirrorTargetId; }
50 inline bool TrafficMirrorTargetIdHasBeenSet() const { return m_trafficMirrorTargetIdHasBeenSet; }
51 inline void SetTrafficMirrorTargetId(const Aws::String& value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId = value; }
52 inline void SetTrafficMirrorTargetId(Aws::String&& value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId = std::move(value); }
53 inline void SetTrafficMirrorTargetId(const char* value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId.assign(value); }
55 inline TrafficMirrorTarget& WithTrafficMirrorTargetId(Aws::String&& value) { SetTrafficMirrorTargetId(std::move(value)); return *this;}
56 inline TrafficMirrorTarget& WithTrafficMirrorTargetId(const char* value) { SetTrafficMirrorTargetId(value); return *this;}
58
60
63 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
64 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
65 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
66 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
67 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
68 inline TrafficMirrorTarget& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
69 inline TrafficMirrorTarget& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
70 inline TrafficMirrorTarget& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
72
74
77 inline const Aws::String& GetNetworkLoadBalancerArn() const{ return m_networkLoadBalancerArn; }
78 inline bool NetworkLoadBalancerArnHasBeenSet() const { return m_networkLoadBalancerArnHasBeenSet; }
79 inline void SetNetworkLoadBalancerArn(const Aws::String& value) { m_networkLoadBalancerArnHasBeenSet = true; m_networkLoadBalancerArn = value; }
80 inline void SetNetworkLoadBalancerArn(Aws::String&& value) { m_networkLoadBalancerArnHasBeenSet = true; m_networkLoadBalancerArn = std::move(value); }
81 inline void SetNetworkLoadBalancerArn(const char* value) { m_networkLoadBalancerArnHasBeenSet = true; m_networkLoadBalancerArn.assign(value); }
83 inline TrafficMirrorTarget& WithNetworkLoadBalancerArn(Aws::String&& value) { SetNetworkLoadBalancerArn(std::move(value)); return *this;}
84 inline TrafficMirrorTarget& WithNetworkLoadBalancerArn(const char* value) { SetNetworkLoadBalancerArn(value); return *this;}
86
88
91 inline const TrafficMirrorTargetType& GetType() const{ return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(const TrafficMirrorTargetType& value) { m_typeHasBeenSet = true; m_type = value; }
94 inline void SetType(TrafficMirrorTargetType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
95 inline TrafficMirrorTarget& WithType(const TrafficMirrorTargetType& value) { SetType(value); return *this;}
96 inline TrafficMirrorTarget& WithType(TrafficMirrorTargetType&& value) { SetType(std::move(value)); return *this;}
98
100
103 inline const Aws::String& GetDescription() const{ return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
106 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
107 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
108 inline TrafficMirrorTarget& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 inline TrafficMirrorTarget& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
110 inline TrafficMirrorTarget& WithDescription(const char* value) { SetDescription(value); return *this;}
112
114
117 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
118 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
119 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
120 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
121 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
122 inline TrafficMirrorTarget& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
123 inline TrafficMirrorTarget& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
124 inline TrafficMirrorTarget& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
126
128
131 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
134 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
135 inline TrafficMirrorTarget& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
136 inline TrafficMirrorTarget& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
137 inline TrafficMirrorTarget& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
138 inline TrafficMirrorTarget& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
140
142
145 inline const Aws::String& GetGatewayLoadBalancerEndpointId() const{ return m_gatewayLoadBalancerEndpointId; }
146 inline bool GatewayLoadBalancerEndpointIdHasBeenSet() const { return m_gatewayLoadBalancerEndpointIdHasBeenSet; }
147 inline void SetGatewayLoadBalancerEndpointId(const Aws::String& value) { m_gatewayLoadBalancerEndpointIdHasBeenSet = true; m_gatewayLoadBalancerEndpointId = value; }
148 inline void SetGatewayLoadBalancerEndpointId(Aws::String&& value) { m_gatewayLoadBalancerEndpointIdHasBeenSet = true; m_gatewayLoadBalancerEndpointId = std::move(value); }
149 inline void SetGatewayLoadBalancerEndpointId(const char* value) { m_gatewayLoadBalancerEndpointIdHasBeenSet = true; m_gatewayLoadBalancerEndpointId.assign(value); }
154 private:
155
156 Aws::String m_trafficMirrorTargetId;
157 bool m_trafficMirrorTargetIdHasBeenSet = false;
158
159 Aws::String m_networkInterfaceId;
160 bool m_networkInterfaceIdHasBeenSet = false;
161
162 Aws::String m_networkLoadBalancerArn;
163 bool m_networkLoadBalancerArnHasBeenSet = false;
164
166 bool m_typeHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::String m_ownerId;
172 bool m_ownerIdHasBeenSet = false;
173
174 Aws::Vector<Tag> m_tags;
175 bool m_tagsHasBeenSet = false;
176
177 Aws::String m_gatewayLoadBalancerEndpointId;
178 bool m_gatewayLoadBalancerEndpointIdHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace EC2
183} // namespace Aws
const Aws::String & GetNetworkInterfaceId() const
void SetTrafficMirrorTargetId(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
TrafficMirrorTarget & WithGatewayLoadBalancerEndpointId(Aws::String &&value)
void SetNetworkLoadBalancerArn(const char *value)
TrafficMirrorTarget & WithTags(const Aws::Vector< Tag > &value)
TrafficMirrorTarget & WithTrafficMirrorTargetId(const char *value)
const Aws::String & GetTrafficMirrorTargetId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TrafficMirrorTarget & WithTrafficMirrorTargetId(const Aws::String &value)
void SetGatewayLoadBalancerEndpointId(const char *value)
TrafficMirrorTarget & WithNetworkInterfaceId(Aws::String &&value)
void SetGatewayLoadBalancerEndpointId(Aws::String &&value)
TrafficMirrorTarget & WithDescription(const Aws::String &value)
const Aws::String & GetGatewayLoadBalancerEndpointId() const
void SetTags(const Aws::Vector< Tag > &value)
const TrafficMirrorTargetType & GetType() const
TrafficMirrorTarget & WithNetworkLoadBalancerArn(Aws::String &&value)
void SetNetworkLoadBalancerArn(Aws::String &&value)
void SetType(TrafficMirrorTargetType &&value)
TrafficMirrorTarget & WithNetworkInterfaceId(const Aws::String &value)
void SetGatewayLoadBalancerEndpointId(const Aws::String &value)
void SetTrafficMirrorTargetId(const Aws::String &value)
TrafficMirrorTarget & WithGatewayLoadBalancerEndpointId(const Aws::String &value)
TrafficMirrorTarget & AddTags(Tag &&value)
void SetNetworkInterfaceId(const char *value)
const Aws::String & GetDescription() const
AWS_EC2_API TrafficMirrorTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TrafficMirrorTarget & WithNetworkLoadBalancerArn(const char *value)
void SetNetworkLoadBalancerArn(const Aws::String &value)
const Aws::String & GetOwnerId() const
TrafficMirrorTarget & WithTrafficMirrorTargetId(Aws::String &&value)
TrafficMirrorTarget & WithOwnerId(Aws::String &&value)
TrafficMirrorTarget & AddTags(const Tag &value)
TrafficMirrorTarget & WithNetworkInterfaceId(const char *value)
TrafficMirrorTarget & WithDescription(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
TrafficMirrorTarget & WithTags(Aws::Vector< Tag > &&value)
void SetOwnerId(const Aws::String &value)
TrafficMirrorTarget & WithOwnerId(const Aws::String &value)
const Aws::String & GetNetworkLoadBalancerArn() const
TrafficMirrorTarget & WithNetworkLoadBalancerArn(const Aws::String &value)
TrafficMirrorTarget & WithOwnerId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTrafficMirrorTargetId(Aws::String &&value)
TrafficMirrorTarget & WithType(TrafficMirrorTargetType &&value)
void SetDescription(const Aws::String &value)
void SetNetworkInterfaceId(Aws::String &&value)
void SetNetworkInterfaceId(const Aws::String &value)
TrafficMirrorTarget & WithGatewayLoadBalancerEndpointId(const char *value)
TrafficMirrorTarget & WithType(const TrafficMirrorTargetType &value)
TrafficMirrorTarget & WithDescription(const char *value)
void SetType(const TrafficMirrorTargetType &value)
AWS_EC2_API TrafficMirrorTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream