AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrafficMirrorSession.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API TrafficMirrorSession();
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetTrafficMirrorSessionId() const{ return m_trafficMirrorSessionId; }
49 inline bool TrafficMirrorSessionIdHasBeenSet() const { return m_trafficMirrorSessionIdHasBeenSet; }
50 inline void SetTrafficMirrorSessionId(const Aws::String& value) { m_trafficMirrorSessionIdHasBeenSet = true; m_trafficMirrorSessionId = value; }
51 inline void SetTrafficMirrorSessionId(Aws::String&& value) { m_trafficMirrorSessionIdHasBeenSet = true; m_trafficMirrorSessionId = std::move(value); }
52 inline void SetTrafficMirrorSessionId(const char* value) { m_trafficMirrorSessionIdHasBeenSet = true; m_trafficMirrorSessionId.assign(value); }
54 inline TrafficMirrorSession& WithTrafficMirrorSessionId(Aws::String&& value) { SetTrafficMirrorSessionId(std::move(value)); return *this;}
55 inline TrafficMirrorSession& WithTrafficMirrorSessionId(const char* value) { SetTrafficMirrorSessionId(value); return *this;}
57
59
62 inline const Aws::String& GetTrafficMirrorTargetId() const{ return m_trafficMirrorTargetId; }
63 inline bool TrafficMirrorTargetIdHasBeenSet() const { return m_trafficMirrorTargetIdHasBeenSet; }
64 inline void SetTrafficMirrorTargetId(const Aws::String& value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId = value; }
65 inline void SetTrafficMirrorTargetId(Aws::String&& value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId = std::move(value); }
66 inline void SetTrafficMirrorTargetId(const char* value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId.assign(value); }
68 inline TrafficMirrorSession& WithTrafficMirrorTargetId(Aws::String&& value) { SetTrafficMirrorTargetId(std::move(value)); return *this;}
69 inline TrafficMirrorSession& WithTrafficMirrorTargetId(const char* value) { SetTrafficMirrorTargetId(value); return *this;}
71
73
76 inline const Aws::String& GetTrafficMirrorFilterId() const{ return m_trafficMirrorFilterId; }
77 inline bool TrafficMirrorFilterIdHasBeenSet() const { return m_trafficMirrorFilterIdHasBeenSet; }
78 inline void SetTrafficMirrorFilterId(const Aws::String& value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId = value; }
79 inline void SetTrafficMirrorFilterId(Aws::String&& value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId = std::move(value); }
80 inline void SetTrafficMirrorFilterId(const char* value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId.assign(value); }
82 inline TrafficMirrorSession& WithTrafficMirrorFilterId(Aws::String&& value) { SetTrafficMirrorFilterId(std::move(value)); return *this;}
83 inline TrafficMirrorSession& WithTrafficMirrorFilterId(const char* value) { SetTrafficMirrorFilterId(value); return *this;}
85
87
90 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
91 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
92 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
93 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
94 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
96 inline TrafficMirrorSession& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
97 inline TrafficMirrorSession& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
99
101
104 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
105 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
106 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
107 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
108 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
109 inline TrafficMirrorSession& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
110 inline TrafficMirrorSession& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
111 inline TrafficMirrorSession& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
113
115
122 inline int GetPacketLength() const{ return m_packetLength; }
123 inline bool PacketLengthHasBeenSet() const { return m_packetLengthHasBeenSet; }
124 inline void SetPacketLength(int value) { m_packetLengthHasBeenSet = true; m_packetLength = value; }
125 inline TrafficMirrorSession& WithPacketLength(int value) { SetPacketLength(value); return *this;}
127
129
134 inline int GetSessionNumber() const{ return m_sessionNumber; }
135 inline bool SessionNumberHasBeenSet() const { return m_sessionNumberHasBeenSet; }
136 inline void SetSessionNumber(int value) { m_sessionNumberHasBeenSet = true; m_sessionNumber = value; }
137 inline TrafficMirrorSession& WithSessionNumber(int value) { SetSessionNumber(value); return *this;}
139
141
144 inline int GetVirtualNetworkId() const{ return m_virtualNetworkId; }
145 inline bool VirtualNetworkIdHasBeenSet() const { return m_virtualNetworkIdHasBeenSet; }
146 inline void SetVirtualNetworkId(int value) { m_virtualNetworkIdHasBeenSet = true; m_virtualNetworkId = value; }
147 inline TrafficMirrorSession& WithVirtualNetworkId(int value) { SetVirtualNetworkId(value); return *this;}
149
151
154 inline const Aws::String& GetDescription() const{ return m_description; }
155 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
156 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
157 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
158 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
159 inline TrafficMirrorSession& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
160 inline TrafficMirrorSession& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
161 inline TrafficMirrorSession& WithDescription(const char* value) { SetDescription(value); return *this;}
163
165
168 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
169 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
171 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
172 inline TrafficMirrorSession& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
173 inline TrafficMirrorSession& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
174 inline TrafficMirrorSession& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
175 inline TrafficMirrorSession& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
177 private:
178
179 Aws::String m_trafficMirrorSessionId;
180 bool m_trafficMirrorSessionIdHasBeenSet = false;
181
182 Aws::String m_trafficMirrorTargetId;
183 bool m_trafficMirrorTargetIdHasBeenSet = false;
184
185 Aws::String m_trafficMirrorFilterId;
186 bool m_trafficMirrorFilterIdHasBeenSet = false;
187
188 Aws::String m_networkInterfaceId;
189 bool m_networkInterfaceIdHasBeenSet = false;
190
191 Aws::String m_ownerId;
192 bool m_ownerIdHasBeenSet = false;
193
194 int m_packetLength;
195 bool m_packetLengthHasBeenSet = false;
196
197 int m_sessionNumber;
198 bool m_sessionNumberHasBeenSet = false;
199
200 int m_virtualNetworkId;
201 bool m_virtualNetworkIdHasBeenSet = false;
202
203 Aws::String m_description;
204 bool m_descriptionHasBeenSet = false;
205
206 Aws::Vector<Tag> m_tags;
207 bool m_tagsHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace EC2
212} // namespace Aws
TrafficMirrorSession & WithOwnerId(const Aws::String &value)
TrafficMirrorSession & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
void SetTrafficMirrorSessionId(const Aws::String &value)
AWS_EC2_API TrafficMirrorSession & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TrafficMirrorSession & AddTags(Tag &&value)
void SetTrafficMirrorTargetId(const Aws::String &value)
void SetTrafficMirrorFilterId(const Aws::String &value)
TrafficMirrorSession & WithDescription(Aws::String &&value)
TrafficMirrorSession & WithTrafficMirrorSessionId(const char *value)
void SetTrafficMirrorSessionId(const char *value)
void SetNetworkInterfaceId(const Aws::String &value)
TrafficMirrorSession & WithNetworkInterfaceId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTrafficMirrorFilterId(const char *value)
void SetTrafficMirrorTargetId(Aws::String &&value)
AWS_EC2_API TrafficMirrorSession(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::String & GetNetworkInterfaceId() const
void SetNetworkInterfaceId(Aws::String &&value)
TrafficMirrorSession & WithDescription(const char *value)
const Aws::String & GetTrafficMirrorFilterId() const
TrafficMirrorSession & AddTags(const Tag &value)
TrafficMirrorSession & WithOwnerId(Aws::String &&value)
TrafficMirrorSession & WithDescription(const Aws::String &value)
TrafficMirrorSession & WithTrafficMirrorFilterId(Aws::String &&value)
void SetOwnerId(const Aws::String &value)
void SetTrafficMirrorFilterId(Aws::String &&value)
TrafficMirrorSession & WithVirtualNetworkId(int value)
TrafficMirrorSession & WithTrafficMirrorFilterId(const Aws::String &value)
TrafficMirrorSession & WithTrafficMirrorFilterId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TrafficMirrorSession & WithOwnerId(const char *value)
void SetTrafficMirrorSessionId(Aws::String &&value)
const Aws::String & GetTrafficMirrorTargetId() const
void SetTrafficMirrorTargetId(const char *value)
TrafficMirrorSession & WithNetworkInterfaceId(const Aws::String &value)
TrafficMirrorSession & WithPacketLength(int value)
const Aws::String & GetDescription() const
void SetTags(Aws::Vector< Tag > &&value)
TrafficMirrorSession & WithTags(Aws::Vector< Tag > &&value)
void SetDescription(const Aws::String &value)
TrafficMirrorSession & WithTrafficMirrorTargetId(const char *value)
const Aws::String & GetTrafficMirrorSessionId() const
TrafficMirrorSession & WithTrafficMirrorSessionId(Aws::String &&value)
TrafficMirrorSession & WithSessionNumber(int value)
TrafficMirrorSession & WithTrafficMirrorSessionId(const Aws::String &value)
TrafficMirrorSession & WithTrafficMirrorTargetId(Aws::String &&value)
TrafficMirrorSession & WithTrafficMirrorTargetId(const Aws::String &value)
TrafficMirrorSession & WithNetworkInterfaceId(Aws::String &&value)
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