AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateProbeRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/networkmonitor/NetworkMonitorRequest.h>
11#include <aws/networkmonitor/NetworkMonitor_EXPORTS.h>
12#include <aws/networkmonitor/model/ProbeInput.h>
13
14#include <utility>
15
16namespace Aws {
17namespace NetworkMonitor {
18namespace Model {
19
23 public:
24 AWS_NETWORKMONITOR_API CreateProbeRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateProbe"; }
31
32 AWS_NETWORKMONITOR_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
39 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
40 template <typename MonitorNameT = Aws::String>
41 void SetMonitorName(MonitorNameT&& value) {
42 m_monitorNameHasBeenSet = true;
43 m_monitorName = std::forward<MonitorNameT>(value);
44 }
45 template <typename MonitorNameT = Aws::String>
46 CreateProbeRequest& WithMonitorName(MonitorNameT&& value) {
47 SetMonitorName(std::forward<MonitorNameT>(value));
48 return *this;
49 }
51
53
56 inline const ProbeInput& GetProbe() const { return m_probe; }
57 inline bool ProbeHasBeenSet() const { return m_probeHasBeenSet; }
58 template <typename ProbeT = ProbeInput>
59 void SetProbe(ProbeT&& value) {
60 m_probeHasBeenSet = true;
61 m_probe = std::forward<ProbeT>(value);
62 }
63 template <typename ProbeT = ProbeInput>
64 CreateProbeRequest& WithProbe(ProbeT&& value) {
65 SetProbe(std::forward<ProbeT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetClientToken() const { return m_clientToken; }
76 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
77 template <typename ClientTokenT = Aws::String>
78 void SetClientToken(ClientTokenT&& value) {
79 m_clientTokenHasBeenSet = true;
80 m_clientToken = std::forward<ClientTokenT>(value);
81 }
82 template <typename ClientTokenT = Aws::String>
83 CreateProbeRequest& WithClientToken(ClientTokenT&& value) {
84 SetClientToken(std::forward<ClientTokenT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 CreateProbeRequest& WithTags(TagsT&& value) {
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 CreateProbeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_monitorName;
114
115 ProbeInput m_probe;
116
118
120 bool m_monitorNameHasBeenSet = false;
121 bool m_probeHasBeenSet = false;
122 bool m_clientTokenHasBeenSet = true;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace NetworkMonitor
128} // namespace Aws
CreateProbeRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProbeRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_NETWORKMONITOR_API Aws::String SerializePayload() const override
CreateProbeRequest & WithMonitorName(MonitorNameT &&value)
CreateProbeRequest & WithProbe(ProbeT &&value)
AWS_NETWORKMONITOR_API CreateProbeRequest()=default
CreateProbeRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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