AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetHealthEventRequest.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/internetmonitor/InternetMonitorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace InternetMonitor
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_INTERNETMONITOR_API GetHealthEventRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetHealthEvent"; }
35
36 AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override;
37
38 AWS_INTERNETMONITOR_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
45 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
46 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
47 template<typename MonitorNameT = Aws::String>
48 void SetMonitorName(MonitorNameT&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::forward<MonitorNameT>(value); }
49 template<typename MonitorNameT = Aws::String>
50 GetHealthEventRequest& WithMonitorName(MonitorNameT&& value) { SetMonitorName(std::forward<MonitorNameT>(value)); return *this;}
52
54
59 inline const Aws::String& GetEventId() const { return m_eventId; }
60 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
61 template<typename EventIdT = Aws::String>
62 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
63 template<typename EventIdT = Aws::String>
64 GetHealthEventRequest& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
66
68
76 inline const Aws::String& GetLinkedAccountId() const { return m_linkedAccountId; }
77 inline bool LinkedAccountIdHasBeenSet() const { return m_linkedAccountIdHasBeenSet; }
78 template<typename LinkedAccountIdT = Aws::String>
79 void SetLinkedAccountId(LinkedAccountIdT&& value) { m_linkedAccountIdHasBeenSet = true; m_linkedAccountId = std::forward<LinkedAccountIdT>(value); }
80 template<typename LinkedAccountIdT = Aws::String>
81 GetHealthEventRequest& WithLinkedAccountId(LinkedAccountIdT&& value) { SetLinkedAccountId(std::forward<LinkedAccountIdT>(value)); return *this;}
83 private:
84
85 Aws::String m_monitorName;
86 bool m_monitorNameHasBeenSet = false;
87
88 Aws::String m_eventId;
89 bool m_eventIdHasBeenSet = false;
90
91 Aws::String m_linkedAccountId;
92 bool m_linkedAccountIdHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace InternetMonitor
97} // 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