AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Probe.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/networkmonitor/NetworkMonitor_EXPORTS.h>
11#include <aws/networkmonitor/model/AddressFamily.h>
12#include <aws/networkmonitor/model/ProbeState.h>
13#include <aws/networkmonitor/model/Protocol.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkMonitor {
25namespace Model {
26
33class Probe {
34 public:
35 AWS_NETWORKMONITOR_API Probe() = default;
36 AWS_NETWORKMONITOR_API Probe(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NETWORKMONITOR_API Probe& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetProbeId() const { return m_probeId; }
45 inline bool ProbeIdHasBeenSet() const { return m_probeIdHasBeenSet; }
46 template <typename ProbeIdT = Aws::String>
47 void SetProbeId(ProbeIdT&& value) {
48 m_probeIdHasBeenSet = true;
49 m_probeId = std::forward<ProbeIdT>(value);
50 }
51 template <typename ProbeIdT = Aws::String>
52 Probe& WithProbeId(ProbeIdT&& value) {
53 SetProbeId(std::forward<ProbeIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetProbeArn() const { return m_probeArn; }
63 inline bool ProbeArnHasBeenSet() const { return m_probeArnHasBeenSet; }
64 template <typename ProbeArnT = Aws::String>
65 void SetProbeArn(ProbeArnT&& value) {
66 m_probeArnHasBeenSet = true;
67 m_probeArn = std::forward<ProbeArnT>(value);
68 }
69 template <typename ProbeArnT = Aws::String>
70 Probe& WithProbeArn(ProbeArnT&& value) {
71 SetProbeArn(std::forward<ProbeArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
81 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
82 template <typename SourceArnT = Aws::String>
83 void SetSourceArn(SourceArnT&& value) {
84 m_sourceArnHasBeenSet = true;
85 m_sourceArn = std::forward<SourceArnT>(value);
86 }
87 template <typename SourceArnT = Aws::String>
88 Probe& WithSourceArn(SourceArnT&& value) {
89 SetSourceArn(std::forward<SourceArnT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetDestination() const { return m_destination; }
100 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
101 template <typename DestinationT = Aws::String>
102 void SetDestination(DestinationT&& value) {
103 m_destinationHasBeenSet = true;
104 m_destination = std::forward<DestinationT>(value);
105 }
106 template <typename DestinationT = Aws::String>
107 Probe& WithDestination(DestinationT&& value) {
108 SetDestination(std::forward<DestinationT>(value));
109 return *this;
110 }
112
114
119 inline int GetDestinationPort() const { return m_destinationPort; }
120 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
121 inline void SetDestinationPort(int value) {
122 m_destinationPortHasBeenSet = true;
123 m_destinationPort = value;
124 }
125 inline Probe& WithDestinationPort(int value) {
126 SetDestinationPort(value);
127 return *this;
128 }
130
132
137 inline Protocol GetProtocol() const { return m_protocol; }
138 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
139 inline void SetProtocol(Protocol value) {
140 m_protocolHasBeenSet = true;
141 m_protocol = value;
142 }
143 inline Probe& WithProtocol(Protocol value) {
144 SetProtocol(value);
145 return *this;
146 }
148
150
154 inline int GetPacketSize() const { return m_packetSize; }
155 inline bool PacketSizeHasBeenSet() const { return m_packetSizeHasBeenSet; }
156 inline void SetPacketSize(int value) {
157 m_packetSizeHasBeenSet = true;
158 m_packetSize = value;
159 }
160 inline Probe& WithPacketSize(int value) {
161 SetPacketSize(value);
162 return *this;
163 }
165
167
170 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
171 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
172 inline void SetAddressFamily(AddressFamily value) {
173 m_addressFamilyHasBeenSet = true;
174 m_addressFamily = value;
175 }
177 SetAddressFamily(value);
178 return *this;
179 }
181
183
186 inline const Aws::String& GetVpcId() const { return m_vpcId; }
187 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
188 template <typename VpcIdT = Aws::String>
189 void SetVpcId(VpcIdT&& value) {
190 m_vpcIdHasBeenSet = true;
191 m_vpcId = std::forward<VpcIdT>(value);
192 }
193 template <typename VpcIdT = Aws::String>
194 Probe& WithVpcId(VpcIdT&& value) {
195 SetVpcId(std::forward<VpcIdT>(value));
196 return *this;
197 }
199
201
204 inline ProbeState GetState() const { return m_state; }
205 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
206 inline void SetState(ProbeState value) {
207 m_stateHasBeenSet = true;
208 m_state = value;
209 }
210 inline Probe& WithState(ProbeState value) {
211 SetState(value);
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
221 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
222 template <typename CreatedAtT = Aws::Utils::DateTime>
223 void SetCreatedAt(CreatedAtT&& value) {
224 m_createdAtHasBeenSet = true;
225 m_createdAt = std::forward<CreatedAtT>(value);
226 }
227 template <typename CreatedAtT = Aws::Utils::DateTime>
228 Probe& WithCreatedAt(CreatedAtT&& value) {
229 SetCreatedAt(std::forward<CreatedAtT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
239 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
240 template <typename ModifiedAtT = Aws::Utils::DateTime>
241 void SetModifiedAt(ModifiedAtT&& value) {
242 m_modifiedAtHasBeenSet = true;
243 m_modifiedAt = std::forward<ModifiedAtT>(value);
244 }
245 template <typename ModifiedAtT = Aws::Utils::DateTime>
246 Probe& WithModifiedAt(ModifiedAtT&& value) {
247 SetModifiedAt(std::forward<ModifiedAtT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
257 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
258 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
259 void SetTags(TagsT&& value) {
260 m_tagsHasBeenSet = true;
261 m_tags = std::forward<TagsT>(value);
262 }
263 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
264 Probe& WithTags(TagsT&& value) {
265 SetTags(std::forward<TagsT>(value));
266 return *this;
267 }
268 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
269 Probe& AddTags(TagsKeyT&& key, TagsValueT&& value) {
270 m_tagsHasBeenSet = true;
271 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
272 return *this;
273 }
275 private:
276 Aws::String m_probeId;
277
278 Aws::String m_probeArn;
279
280 Aws::String m_sourceArn;
281
282 Aws::String m_destination;
283
284 int m_destinationPort{0};
285
286 Protocol m_protocol{Protocol::NOT_SET};
287
288 int m_packetSize{0};
289
290 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
291
292 Aws::String m_vpcId;
293
295
296 Aws::Utils::DateTime m_createdAt{};
297
298 Aws::Utils::DateTime m_modifiedAt{};
299
301 bool m_probeIdHasBeenSet = false;
302 bool m_probeArnHasBeenSet = false;
303 bool m_sourceArnHasBeenSet = false;
304 bool m_destinationHasBeenSet = false;
305 bool m_destinationPortHasBeenSet = false;
306 bool m_protocolHasBeenSet = false;
307 bool m_packetSizeHasBeenSet = false;
308 bool m_addressFamilyHasBeenSet = false;
309 bool m_vpcIdHasBeenSet = false;
310 bool m_stateHasBeenSet = false;
311 bool m_createdAtHasBeenSet = false;
312 bool m_modifiedAtHasBeenSet = false;
313 bool m_tagsHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace NetworkMonitor
318} // namespace Aws
const Aws::String & GetSourceArn() const
Definition Probe.h:80
bool AddressFamilyHasBeenSet() const
Definition Probe.h:171
const Aws::String & GetProbeId() const
Definition Probe.h:44
bool ProbeArnHasBeenSet() const
Definition Probe.h:63
bool PacketSizeHasBeenSet() const
Definition Probe.h:155
Probe & WithPacketSize(int value)
Definition Probe.h:160
AWS_NETWORKMONITOR_API Probe()=default
void SetVpcId(VpcIdT &&value)
Definition Probe.h:189
bool ModifiedAtHasBeenSet() const
Definition Probe.h:239
void SetDestinationPort(int value)
Definition Probe.h:121
void SetProbeId(ProbeIdT &&value)
Definition Probe.h:47
bool DestinationPortHasBeenSet() const
Definition Probe.h:120
Probe & WithModifiedAt(ModifiedAtT &&value)
Definition Probe.h:246
AWS_NETWORKMONITOR_API Probe(Aws::Utils::Json::JsonView jsonValue)
bool SourceArnHasBeenSet() const
Definition Probe.h:81
void SetAddressFamily(AddressFamily value)
Definition Probe.h:172
Probe & WithProbeId(ProbeIdT &&value)
Definition Probe.h:52
Probe & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Probe.h:269
void SetState(ProbeState value)
Definition Probe.h:206
Probe & WithVpcId(VpcIdT &&value)
Definition Probe.h:194
void SetTags(TagsT &&value)
Definition Probe.h:259
Probe & WithDestination(DestinationT &&value)
Definition Probe.h:107
AWS_NETWORKMONITOR_API Probe & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSourceArn(SourceArnT &&value)
Definition Probe.h:83
void SetPacketSize(int value)
Definition Probe.h:156
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Probe.h:238
Probe & WithTags(TagsT &&value)
Definition Probe.h:264
const Aws::String & GetVpcId() const
Definition Probe.h:186
AddressFamily GetAddressFamily() const
Definition Probe.h:170
const Aws::String & GetProbeArn() const
Definition Probe.h:62
AWS_NETWORKMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedAt(CreatedAtT &&value)
Definition Probe.h:223
bool DestinationHasBeenSet() const
Definition Probe.h:100
void SetProtocol(Protocol value)
Definition Probe.h:139
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Probe.h:220
Probe & WithProtocol(Protocol value)
Definition Probe.h:143
Probe & WithAddressFamily(AddressFamily value)
Definition Probe.h:176
void SetDestination(DestinationT &&value)
Definition Probe.h:102
void SetModifiedAt(ModifiedAtT &&value)
Definition Probe.h:241
Probe & WithState(ProbeState value)
Definition Probe.h:210
void SetProbeArn(ProbeArnT &&value)
Definition Probe.h:65
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Probe.h:256
Probe & WithDestinationPort(int value)
Definition Probe.h:125
Probe & WithSourceArn(SourceArnT &&value)
Definition Probe.h:88
Probe & WithCreatedAt(CreatedAtT &&value)
Definition Probe.h:228
Probe & WithProbeArn(ProbeArnT &&value)
Definition Probe.h:70
Protocol GetProtocol() const
Definition Probe.h:137
const Aws::String & GetDestination() const
Definition Probe.h:99
ProbeState GetState() const
Definition Probe.h:204
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue