AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateProbeResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/networkmonitor/NetworkMonitor_EXPORTS.h>
12#include <aws/networkmonitor/model/AddressFamily.h>
13#include <aws/networkmonitor/model/ProbeState.h>
14#include <aws/networkmonitor/model/Protocol.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace NetworkMonitor {
28namespace Model {
30 public:
31 AWS_NETWORKMONITOR_API CreateProbeResult() = default;
34
36
39 inline const Aws::String& GetProbeId() const { return m_probeId; }
40 template <typename ProbeIdT = Aws::String>
41 void SetProbeId(ProbeIdT&& value) {
42 m_probeIdHasBeenSet = true;
43 m_probeId = std::forward<ProbeIdT>(value);
44 }
45 template <typename ProbeIdT = Aws::String>
46 CreateProbeResult& WithProbeId(ProbeIdT&& value) {
47 SetProbeId(std::forward<ProbeIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetProbeArn() const { return m_probeArn; }
57 template <typename ProbeArnT = Aws::String>
58 void SetProbeArn(ProbeArnT&& value) {
59 m_probeArnHasBeenSet = true;
60 m_probeArn = std::forward<ProbeArnT>(value);
61 }
62 template <typename ProbeArnT = Aws::String>
63 CreateProbeResult& WithProbeArn(ProbeArnT&& value) {
64 SetProbeArn(std::forward<ProbeArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
74 template <typename SourceArnT = Aws::String>
75 void SetSourceArn(SourceArnT&& value) {
76 m_sourceArnHasBeenSet = true;
77 m_sourceArn = std::forward<SourceArnT>(value);
78 }
79 template <typename SourceArnT = Aws::String>
80 CreateProbeResult& WithSourceArn(SourceArnT&& value) {
81 SetSourceArn(std::forward<SourceArnT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetDestination() const { return m_destination; }
92 template <typename DestinationT = Aws::String>
93 void SetDestination(DestinationT&& value) {
94 m_destinationHasBeenSet = true;
95 m_destination = std::forward<DestinationT>(value);
96 }
97 template <typename DestinationT = Aws::String>
98 CreateProbeResult& WithDestination(DestinationT&& value) {
99 SetDestination(std::forward<DestinationT>(value));
100 return *this;
101 }
103
105
110 inline int GetDestinationPort() const { return m_destinationPort; }
111 inline void SetDestinationPort(int value) {
112 m_destinationPortHasBeenSet = true;
113 m_destinationPort = value;
114 }
116 SetDestinationPort(value);
117 return *this;
118 }
120
122
127 inline Protocol GetProtocol() const { return m_protocol; }
128 inline void SetProtocol(Protocol value) {
129 m_protocolHasBeenSet = true;
130 m_protocol = value;
131 }
133 SetProtocol(value);
134 return *this;
135 }
137
139
143 inline int GetPacketSize() const { return m_packetSize; }
144 inline void SetPacketSize(int value) {
145 m_packetSizeHasBeenSet = true;
146 m_packetSize = value;
147 }
149 SetPacketSize(value);
150 return *this;
151 }
153
155
159 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
160 inline void SetAddressFamily(AddressFamily value) {
161 m_addressFamilyHasBeenSet = true;
162 m_addressFamily = value;
163 }
165 SetAddressFamily(value);
166 return *this;
167 }
169
171
174 inline const Aws::String& GetVpcId() const { return m_vpcId; }
175 template <typename VpcIdT = Aws::String>
176 void SetVpcId(VpcIdT&& value) {
177 m_vpcIdHasBeenSet = true;
178 m_vpcId = std::forward<VpcIdT>(value);
179 }
180 template <typename VpcIdT = Aws::String>
181 CreateProbeResult& WithVpcId(VpcIdT&& value) {
182 SetVpcId(std::forward<VpcIdT>(value));
183 return *this;
184 }
186
188
191 inline ProbeState GetState() const { return m_state; }
192 inline void SetState(ProbeState value) {
193 m_stateHasBeenSet = true;
194 m_state = value;
195 }
197 SetState(value);
198 return *this;
199 }
201
203
206 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
207 template <typename CreatedAtT = Aws::Utils::DateTime>
208 void SetCreatedAt(CreatedAtT&& value) {
209 m_createdAtHasBeenSet = true;
210 m_createdAt = std::forward<CreatedAtT>(value);
211 }
212 template <typename CreatedAtT = Aws::Utils::DateTime>
213 CreateProbeResult& WithCreatedAt(CreatedAtT&& value) {
214 SetCreatedAt(std::forward<CreatedAtT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
224 template <typename ModifiedAtT = Aws::Utils::DateTime>
225 void SetModifiedAt(ModifiedAtT&& value) {
226 m_modifiedAtHasBeenSet = true;
227 m_modifiedAt = std::forward<ModifiedAtT>(value);
228 }
229 template <typename ModifiedAtT = Aws::Utils::DateTime>
230 CreateProbeResult& WithModifiedAt(ModifiedAtT&& value) {
231 SetModifiedAt(std::forward<ModifiedAtT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
241 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
242 void SetTags(TagsT&& value) {
243 m_tagsHasBeenSet = true;
244 m_tags = std::forward<TagsT>(value);
245 }
246 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
247 CreateProbeResult& WithTags(TagsT&& value) {
248 SetTags(std::forward<TagsT>(value));
249 return *this;
250 }
251 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
252 CreateProbeResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
253 m_tagsHasBeenSet = true;
254 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
255 return *this;
256 }
258
260
261 inline const Aws::String& GetRequestId() const { return m_requestId; }
262 template <typename RequestIdT = Aws::String>
263 void SetRequestId(RequestIdT&& value) {
264 m_requestIdHasBeenSet = true;
265 m_requestId = std::forward<RequestIdT>(value);
266 }
267 template <typename RequestIdT = Aws::String>
268 CreateProbeResult& WithRequestId(RequestIdT&& value) {
269 SetRequestId(std::forward<RequestIdT>(value));
270 return *this;
271 }
273 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
274
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
302 Aws::String m_requestId;
303 Aws::Http::HttpResponseCode m_HttpResponseCode;
304 bool m_probeIdHasBeenSet = false;
305 bool m_probeArnHasBeenSet = false;
306 bool m_sourceArnHasBeenSet = false;
307 bool m_destinationHasBeenSet = false;
308 bool m_destinationPortHasBeenSet = false;
309 bool m_protocolHasBeenSet = false;
310 bool m_packetSizeHasBeenSet = false;
311 bool m_addressFamilyHasBeenSet = false;
312 bool m_vpcIdHasBeenSet = false;
313 bool m_stateHasBeenSet = false;
314 bool m_createdAtHasBeenSet = false;
315 bool m_modifiedAtHasBeenSet = false;
316 bool m_tagsHasBeenSet = false;
317 bool m_requestIdHasBeenSet = false;
318};
319
320} // namespace Model
321} // namespace NetworkMonitor
322} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
CreateProbeResult & WithRequestId(RequestIdT &&value)
CreateProbeResult & WithDestination(DestinationT &&value)
CreateProbeResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateProbeResult & WithDestinationPort(int value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_NETWORKMONITOR_API CreateProbeResult()=default
AWS_NETWORKMONITOR_API CreateProbeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateProbeResult & WithProbeId(ProbeIdT &&value)
CreateProbeResult & WithProtocol(Protocol value)
CreateProbeResult & WithVpcId(VpcIdT &&value)
CreateProbeResult & WithPacketSize(int value)
CreateProbeResult & WithTags(TagsT &&value)
CreateProbeResult & WithCreatedAt(CreatedAtT &&value)
CreateProbeResult & WithProbeArn(ProbeArnT &&value)
AWS_NETWORKMONITOR_API CreateProbeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateProbeResult & WithModifiedAt(ModifiedAtT &&value)
const Aws::Utils::DateTime & GetModifiedAt() const
CreateProbeResult & WithState(ProbeState value)
CreateProbeResult & WithAddressFamily(AddressFamily value)
CreateProbeResult & WithSourceArn(SourceArnT &&value)
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