AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetAlarmsRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Lightsail
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_LIGHTSAIL_API GetAlarmsRequest();
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 "GetAlarms"; }
31
32 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
43 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
44 inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
45 inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
46 inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
47 inline GetAlarmsRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
48 inline GetAlarmsRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
49 inline GetAlarmsRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
51
53
59 inline const Aws::String& GetPageToken() const{ return m_pageToken; }
60 inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
61 inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; }
62 inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); }
63 inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); }
64 inline GetAlarmsRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;}
65 inline GetAlarmsRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;}
66 inline GetAlarmsRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;}
68
70
75 inline const Aws::String& GetMonitoredResourceName() const{ return m_monitoredResourceName; }
76 inline bool MonitoredResourceNameHasBeenSet() const { return m_monitoredResourceNameHasBeenSet; }
77 inline void SetMonitoredResourceName(const Aws::String& value) { m_monitoredResourceNameHasBeenSet = true; m_monitoredResourceName = value; }
78 inline void SetMonitoredResourceName(Aws::String&& value) { m_monitoredResourceNameHasBeenSet = true; m_monitoredResourceName = std::move(value); }
79 inline void SetMonitoredResourceName(const char* value) { m_monitoredResourceNameHasBeenSet = true; m_monitoredResourceName.assign(value); }
81 inline GetAlarmsRequest& WithMonitoredResourceName(Aws::String&& value) { SetMonitoredResourceName(std::move(value)); return *this;}
82 inline GetAlarmsRequest& WithMonitoredResourceName(const char* value) { SetMonitoredResourceName(value); return *this;}
84 private:
85
86 Aws::String m_alarmName;
87 bool m_alarmNameHasBeenSet = false;
88
89 Aws::String m_pageToken;
90 bool m_pageTokenHasBeenSet = false;
91
92 Aws::String m_monitoredResourceName;
93 bool m_monitoredResourceNameHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Lightsail
98} // namespace Aws
GetAlarmsRequest & WithMonitoredResourceName(Aws::String &&value)
const Aws::String & GetPageToken() const
void SetMonitoredResourceName(const char *value)
const Aws::String & GetMonitoredResourceName() const
void SetMonitoredResourceName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAlarmName() const
GetAlarmsRequest & WithPageToken(Aws::String &&value)
GetAlarmsRequest & WithMonitoredResourceName(const char *value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetAlarmsRequest & WithAlarmName(const char *value)
void SetMonitoredResourceName(const Aws::String &value)
GetAlarmsRequest & WithAlarmName(const Aws::String &value)
GetAlarmsRequest & WithPageToken(const char *value)
GetAlarmsRequest & WithPageToken(const Aws::String &value)
GetAlarmsRequest & WithAlarmName(Aws::String &&value)
void SetAlarmName(const Aws::String &value)
GetAlarmsRequest & WithMonitoredResourceName(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
void SetPageToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String