AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetAlarmsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Lightsail {
15namespace Model {
16
20 public:
21 AWS_LIGHTSAIL_API GetAlarmsRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetAlarms"; }
28
29 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
39 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
40 template <typename AlarmNameT = Aws::String>
41 void SetAlarmName(AlarmNameT&& value) {
42 m_alarmNameHasBeenSet = true;
43 m_alarmName = std::forward<AlarmNameT>(value);
44 }
45 template <typename AlarmNameT = Aws::String>
46 GetAlarmsRequest& WithAlarmName(AlarmNameT&& value) {
47 SetAlarmName(std::forward<AlarmNameT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetPageToken() const { return m_pageToken; }
60 inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
61 template <typename PageTokenT = Aws::String>
62 void SetPageToken(PageTokenT&& value) {
63 m_pageTokenHasBeenSet = true;
64 m_pageToken = std::forward<PageTokenT>(value);
65 }
66 template <typename PageTokenT = Aws::String>
67 GetAlarmsRequest& WithPageToken(PageTokenT&& value) {
68 SetPageToken(std::forward<PageTokenT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetMonitoredResourceName() const { return m_monitoredResourceName; }
80 inline bool MonitoredResourceNameHasBeenSet() const { return m_monitoredResourceNameHasBeenSet; }
81 template <typename MonitoredResourceNameT = Aws::String>
82 void SetMonitoredResourceName(MonitoredResourceNameT&& value) {
83 m_monitoredResourceNameHasBeenSet = true;
84 m_monitoredResourceName = std::forward<MonitoredResourceNameT>(value);
85 }
86 template <typename MonitoredResourceNameT = Aws::String>
87 GetAlarmsRequest& WithMonitoredResourceName(MonitoredResourceNameT&& value) {
88 SetMonitoredResourceName(std::forward<MonitoredResourceNameT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_alarmName;
94
95 Aws::String m_pageToken;
96
97 Aws::String m_monitoredResourceName;
98 bool m_alarmNameHasBeenSet = false;
99 bool m_pageTokenHasBeenSet = false;
100 bool m_monitoredResourceNameHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Lightsail
105} // namespace Aws
const Aws::String & GetPageToken() const
const Aws::String & GetMonitoredResourceName() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAlarmName() const
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetAlarmsRequest & WithMonitoredResourceName(MonitoredResourceNameT &&value)
AWS_LIGHTSAIL_API GetAlarmsRequest()=default
void SetMonitoredResourceName(MonitoredResourceNameT &&value)
GetAlarmsRequest & WithPageToken(PageTokenT &&value)
GetAlarmsRequest & WithAlarmName(AlarmNameT &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String