AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateProbeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmonitor/NetworkMonitorRequest.h>
9#include <aws/networkmonitor/NetworkMonitor_EXPORTS.h>
10#include <aws/networkmonitor/model/ProbeState.h>
11#include <aws/networkmonitor/model/Protocol.h>
12
13#include <utility>
14
15namespace Aws {
16namespace NetworkMonitor {
17namespace Model {
18
22 public:
23 AWS_NETWORKMONITOR_API UpdateProbeRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateProbe"; }
30
31 AWS_NETWORKMONITOR_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
38 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
39 template <typename MonitorNameT = Aws::String>
40 void SetMonitorName(MonitorNameT&& value) {
41 m_monitorNameHasBeenSet = true;
42 m_monitorName = std::forward<MonitorNameT>(value);
43 }
44 template <typename MonitorNameT = Aws::String>
45 UpdateProbeRequest& WithMonitorName(MonitorNameT&& value) {
46 SetMonitorName(std::forward<MonitorNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetProbeId() const { return m_probeId; }
56 inline bool ProbeIdHasBeenSet() const { return m_probeIdHasBeenSet; }
57 template <typename ProbeIdT = Aws::String>
58 void SetProbeId(ProbeIdT&& value) {
59 m_probeIdHasBeenSet = true;
60 m_probeId = std::forward<ProbeIdT>(value);
61 }
62 template <typename ProbeIdT = Aws::String>
63 UpdateProbeRequest& WithProbeId(ProbeIdT&& value) {
64 SetProbeId(std::forward<ProbeIdT>(value));
65 return *this;
66 }
68
70
73 inline ProbeState GetState() const { return m_state; }
74 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
75 inline void SetState(ProbeState value) {
76 m_stateHasBeenSet = true;
77 m_state = value;
78 }
80 SetState(value);
81 return *this;
82 }
84
86
90 inline const Aws::String& GetDestination() const { return m_destination; }
91 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
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 UpdateProbeRequest& 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 bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
112 inline void SetDestinationPort(int value) {
113 m_destinationPortHasBeenSet = true;
114 m_destinationPort = value;
115 }
117 SetDestinationPort(value);
118 return *this;
119 }
121
123
128 inline Protocol GetProtocol() const { return m_protocol; }
129 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
130 inline void SetProtocol(Protocol value) {
131 m_protocolHasBeenSet = true;
132 m_protocol = value;
133 }
135 SetProtocol(value);
136 return *this;
137 }
139
141
146 inline int GetPacketSize() const { return m_packetSize; }
147 inline bool PacketSizeHasBeenSet() const { return m_packetSizeHasBeenSet; }
148 inline void SetPacketSize(int value) {
149 m_packetSizeHasBeenSet = true;
150 m_packetSize = value;
151 }
153 SetPacketSize(value);
154 return *this;
155 }
157 private:
158 Aws::String m_monitorName;
159
160 Aws::String m_probeId;
161
163
164 Aws::String m_destination;
165
166 int m_destinationPort{0};
167
168 Protocol m_protocol{Protocol::NOT_SET};
169
170 int m_packetSize{0};
171 bool m_monitorNameHasBeenSet = false;
172 bool m_probeIdHasBeenSet = false;
173 bool m_stateHasBeenSet = false;
174 bool m_destinationHasBeenSet = false;
175 bool m_destinationPortHasBeenSet = false;
176 bool m_protocolHasBeenSet = false;
177 bool m_packetSizeHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace NetworkMonitor
182} // namespace Aws
AWS_NETWORKMONITOR_API UpdateProbeRequest()=default
UpdateProbeRequest & WithProbeId(ProbeIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_NETWORKMONITOR_API Aws::String SerializePayload() const override
UpdateProbeRequest & WithState(ProbeState value)
UpdateProbeRequest & WithMonitorName(MonitorNameT &&value)
UpdateProbeRequest & WithDestinationPort(int value)
UpdateProbeRequest & WithProtocol(Protocol value)
UpdateProbeRequest & WithDestination(DestinationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String