AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateProbeResult.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 UpdateProbeResult() = 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 UpdateProbeResult& 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 UpdateProbeResult& 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 UpdateProbeResult& WithSourceArn(SourceArnT&& value) {
81 SetSourceArn(std::forward<SourceArnT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetDestination() const { return m_destination; }
91 template <typename DestinationT = Aws::String>
92 void SetDestination(DestinationT&& value) {
93 m_destinationHasBeenSet = true;
94 m_destination = std::forward<DestinationT>(value);
95 }
96 template <typename DestinationT = Aws::String>
97 UpdateProbeResult& WithDestination(DestinationT&& value) {
98 SetDestination(std::forward<DestinationT>(value));
99 return *this;
100 }
102
104
108 inline int GetDestinationPort() const { return m_destinationPort; }
109 inline void SetDestinationPort(int value) {
110 m_destinationPortHasBeenSet = true;
111 m_destinationPort = value;
112 }
114 SetDestinationPort(value);
115 return *this;
116 }
118
120
123 inline Protocol GetProtocol() const { return m_protocol; }
124 inline void SetProtocol(Protocol value) {
125 m_protocolHasBeenSet = true;
126 m_protocol = value;
127 }
129 SetProtocol(value);
130 return *this;
131 }
133
135
138 inline int GetPacketSize() const { return m_packetSize; }
139 inline void SetPacketSize(int value) {
140 m_packetSizeHasBeenSet = true;
141 m_packetSize = value;
142 }
144 SetPacketSize(value);
145 return *this;
146 }
148
150
154 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
155 inline void SetAddressFamily(AddressFamily value) {
156 m_addressFamilyHasBeenSet = true;
157 m_addressFamily = value;
158 }
160 SetAddressFamily(value);
161 return *this;
162 }
164
166
169 inline const Aws::String& GetVpcId() const { return m_vpcId; }
170 template <typename VpcIdT = Aws::String>
171 void SetVpcId(VpcIdT&& value) {
172 m_vpcIdHasBeenSet = true;
173 m_vpcId = std::forward<VpcIdT>(value);
174 }
175 template <typename VpcIdT = Aws::String>
176 UpdateProbeResult& WithVpcId(VpcIdT&& value) {
177 SetVpcId(std::forward<VpcIdT>(value));
178 return *this;
179 }
181
183
186 inline ProbeState GetState() const { return m_state; }
187 inline void SetState(ProbeState value) {
188 m_stateHasBeenSet = true;
189 m_state = value;
190 }
192 SetState(value);
193 return *this;
194 }
196
198
201 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
202 template <typename CreatedAtT = Aws::Utils::DateTime>
203 void SetCreatedAt(CreatedAtT&& value) {
204 m_createdAtHasBeenSet = true;
205 m_createdAt = std::forward<CreatedAtT>(value);
206 }
207 template <typename CreatedAtT = Aws::Utils::DateTime>
208 UpdateProbeResult& WithCreatedAt(CreatedAtT&& value) {
209 SetCreatedAt(std::forward<CreatedAtT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
219 template <typename ModifiedAtT = Aws::Utils::DateTime>
220 void SetModifiedAt(ModifiedAtT&& value) {
221 m_modifiedAtHasBeenSet = true;
222 m_modifiedAt = std::forward<ModifiedAtT>(value);
223 }
224 template <typename ModifiedAtT = Aws::Utils::DateTime>
225 UpdateProbeResult& WithModifiedAt(ModifiedAtT&& value) {
226 SetModifiedAt(std::forward<ModifiedAtT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
236 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
237 void SetTags(TagsT&& value) {
238 m_tagsHasBeenSet = true;
239 m_tags = std::forward<TagsT>(value);
240 }
241 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
242 UpdateProbeResult& WithTags(TagsT&& value) {
243 SetTags(std::forward<TagsT>(value));
244 return *this;
245 }
246 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
247 UpdateProbeResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
248 m_tagsHasBeenSet = true;
249 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
250 return *this;
251 }
253
255
256 inline const Aws::String& GetRequestId() const { return m_requestId; }
257 template <typename RequestIdT = Aws::String>
258 void SetRequestId(RequestIdT&& value) {
259 m_requestIdHasBeenSet = true;
260 m_requestId = std::forward<RequestIdT>(value);
261 }
262 template <typename RequestIdT = Aws::String>
263 UpdateProbeResult& WithRequestId(RequestIdT&& value) {
264 SetRequestId(std::forward<RequestIdT>(value));
265 return *this;
266 }
268 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
269
270 private:
271 Aws::String m_probeId;
272
273 Aws::String m_probeArn;
274
275 Aws::String m_sourceArn;
276
277 Aws::String m_destination;
278
279 int m_destinationPort{0};
280
281 Protocol m_protocol{Protocol::NOT_SET};
282
283 int m_packetSize{0};
284
285 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
286
287 Aws::String m_vpcId;
288
290
291 Aws::Utils::DateTime m_createdAt{};
292
293 Aws::Utils::DateTime m_modifiedAt{};
294
296
297 Aws::String m_requestId;
298 Aws::Http::HttpResponseCode m_HttpResponseCode;
299 bool m_probeIdHasBeenSet = false;
300 bool m_probeArnHasBeenSet = false;
301 bool m_sourceArnHasBeenSet = false;
302 bool m_destinationHasBeenSet = false;
303 bool m_destinationPortHasBeenSet = false;
304 bool m_protocolHasBeenSet = false;
305 bool m_packetSizeHasBeenSet = false;
306 bool m_addressFamilyHasBeenSet = false;
307 bool m_vpcIdHasBeenSet = false;
308 bool m_stateHasBeenSet = false;
309 bool m_createdAtHasBeenSet = false;
310 bool m_modifiedAtHasBeenSet = false;
311 bool m_tagsHasBeenSet = false;
312 bool m_requestIdHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace NetworkMonitor
317} // namespace Aws
UpdateProbeResult & WithPacketSize(int value)
UpdateProbeResult & WithAddressFamily(AddressFamily value)
const Aws::Utils::DateTime & GetModifiedAt() const
UpdateProbeResult & WithState(ProbeState value)
AWS_NETWORKMONITOR_API UpdateProbeResult()=default
UpdateProbeResult & WithProbeArn(ProbeArnT &&value)
UpdateProbeResult & WithDestinationPort(int value)
UpdateProbeResult & WithDestination(DestinationT &&value)
UpdateProbeResult & WithProtocol(Protocol value)
UpdateProbeResult & WithModifiedAt(ModifiedAtT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
UpdateProbeResult & WithCreatedAt(CreatedAtT &&value)
UpdateProbeResult & WithVpcId(VpcIdT &&value)
AWS_NETWORKMONITOR_API UpdateProbeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateProbeResult & WithTags(TagsT &&value)
AWS_NETWORKMONITOR_API UpdateProbeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateProbeResult & WithSourceArn(SourceArnT &&value)
UpdateProbeResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateProbeResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
UpdateProbeResult & WithProbeId(ProbeIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
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