AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetHealthEventRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/internetmonitor/InternetMonitorRequest.h>
9#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace InternetMonitor {
18namespace Model {
19
23 public:
24 AWS_INTERNETMONITOR_API GetHealthEventRequest() = 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 "GetHealthEvent"; }
31
32 AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override;
33
34 AWS_INTERNETMONITOR_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
41 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
42 template <typename MonitorNameT = Aws::String>
43 void SetMonitorName(MonitorNameT&& value) {
44 m_monitorNameHasBeenSet = true;
45 m_monitorName = std::forward<MonitorNameT>(value);
46 }
47 template <typename MonitorNameT = Aws::String>
48 GetHealthEventRequest& WithMonitorName(MonitorNameT&& value) {
49 SetMonitorName(std::forward<MonitorNameT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetEventId() const { return m_eventId; }
61 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
62 template <typename EventIdT = Aws::String>
63 void SetEventId(EventIdT&& value) {
64 m_eventIdHasBeenSet = true;
65 m_eventId = std::forward<EventIdT>(value);
66 }
67 template <typename EventIdT = Aws::String>
69 SetEventId(std::forward<EventIdT>(value));
70 return *this;
71 }
73
75
83 inline const Aws::String& GetLinkedAccountId() const { return m_linkedAccountId; }
84 inline bool LinkedAccountIdHasBeenSet() const { return m_linkedAccountIdHasBeenSet; }
85 template <typename LinkedAccountIdT = Aws::String>
86 void SetLinkedAccountId(LinkedAccountIdT&& value) {
87 m_linkedAccountIdHasBeenSet = true;
88 m_linkedAccountId = std::forward<LinkedAccountIdT>(value);
89 }
90 template <typename LinkedAccountIdT = Aws::String>
91 GetHealthEventRequest& WithLinkedAccountId(LinkedAccountIdT&& value) {
92 SetLinkedAccountId(std::forward<LinkedAccountIdT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_monitorName;
98
99 Aws::String m_eventId;
100
101 Aws::String m_linkedAccountId;
102 bool m_monitorNameHasBeenSet = false;
103 bool m_eventIdHasBeenSet = false;
104 bool m_linkedAccountIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace InternetMonitor
109} // namespace Aws
AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override
GetHealthEventRequest & WithLinkedAccountId(LinkedAccountIdT &&value)
GetHealthEventRequest & WithEventId(EventIdT &&value)
AWS_INTERNETMONITOR_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_INTERNETMONITOR_API GetHealthEventRequest()=default
virtual const char * GetServiceRequestName() const override
GetHealthEventRequest & WithMonitorName(MonitorNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String