AWS SDK for C++  1.9.102
AWS SDK for C++
GetAlarmsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lightsail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
42 
47  inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
48 
53  inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
54 
59  inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
60 
65  inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
66 
71  inline GetAlarmsRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
72 
77  inline GetAlarmsRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
78 
83  inline GetAlarmsRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
84 
85 
92  inline const Aws::String& GetPageToken() const{ return m_pageToken; }
93 
100  inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
101 
108  inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; }
109 
116  inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); }
117 
124  inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); }
125 
132  inline GetAlarmsRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;}
133 
140  inline GetAlarmsRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;}
141 
148  inline GetAlarmsRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;}
149 
150 
156  inline const Aws::String& GetMonitoredResourceName() const{ return m_monitoredResourceName; }
157 
163  inline bool MonitoredResourceNameHasBeenSet() const { return m_monitoredResourceNameHasBeenSet; }
164 
170  inline void SetMonitoredResourceName(const Aws::String& value) { m_monitoredResourceNameHasBeenSet = true; m_monitoredResourceName = value; }
171 
177  inline void SetMonitoredResourceName(Aws::String&& value) { m_monitoredResourceNameHasBeenSet = true; m_monitoredResourceName = std::move(value); }
178 
184  inline void SetMonitoredResourceName(const char* value) { m_monitoredResourceNameHasBeenSet = true; m_monitoredResourceName.assign(value); }
185 
191  inline GetAlarmsRequest& WithMonitoredResourceName(const Aws::String& value) { SetMonitoredResourceName(value); return *this;}
192 
198  inline GetAlarmsRequest& WithMonitoredResourceName(Aws::String&& value) { SetMonitoredResourceName(std::move(value)); return *this;}
199 
205  inline GetAlarmsRequest& WithMonitoredResourceName(const char* value) { SetMonitoredResourceName(value); return *this;}
206 
207  private:
208 
209  Aws::String m_alarmName;
210  bool m_alarmNameHasBeenSet;
211 
212  Aws::String m_pageToken;
213  bool m_pageTokenHasBeenSet;
214 
215  Aws::String m_monitoredResourceName;
216  bool m_monitoredResourceNameHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace Lightsail
221 } // namespace Aws
Aws::Lightsail::Model::GetAlarmsRequest::SetMonitoredResourceName
void SetMonitoredResourceName(const char *value)
Definition: GetAlarmsRequest.h:184
Aws::Lightsail::Model::GetAlarmsRequest::WithMonitoredResourceName
GetAlarmsRequest & WithMonitoredResourceName(const Aws::String &value)
Definition: GetAlarmsRequest.h:191
Aws::Lightsail::Model::GetAlarmsRequest::SetMonitoredResourceName
void SetMonitoredResourceName(Aws::String &&value)
Definition: GetAlarmsRequest.h:177
Aws::Lightsail::Model::GetAlarmsRequest::SetMonitoredResourceName
void SetMonitoredResourceName(const Aws::String &value)
Definition: GetAlarmsRequest.h:170
Aws::Lightsail::Model::GetAlarmsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetAlarmsRequest.h:30
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetAlarmsRequest::AlarmNameHasBeenSet
bool AlarmNameHasBeenSet() const
Definition: GetAlarmsRequest.h:47
Aws::Lightsail::Model::GetAlarmsRequest::WithAlarmName
GetAlarmsRequest & WithAlarmName(const Aws::String &value)
Definition: GetAlarmsRequest.h:71
Aws::Lightsail::Model::GetAlarmsRequest::WithAlarmName
GetAlarmsRequest & WithAlarmName(Aws::String &&value)
Definition: GetAlarmsRequest.h:77
Aws::Lightsail::Model::GetAlarmsRequest::SetAlarmName
void SetAlarmName(const char *value)
Definition: GetAlarmsRequest.h:65
Aws::Lightsail::Model::GetAlarmsRequest::WithAlarmName
GetAlarmsRequest & WithAlarmName(const char *value)
Definition: GetAlarmsRequest.h:83
Aws::Lightsail::Model::GetAlarmsRequest::SetPageToken
void SetPageToken(const char *value)
Definition: GetAlarmsRequest.h:124
Aws::Lightsail::Model::GetAlarmsRequest::PageTokenHasBeenSet
bool PageTokenHasBeenSet() const
Definition: GetAlarmsRequest.h:100
LightsailRequest.h
Aws::Lightsail::Model::GetAlarmsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::GetAlarmsRequest::GetMonitoredResourceName
const Aws::String & GetMonitoredResourceName() const
Definition: GetAlarmsRequest.h:156
Aws::Lightsail::Model::GetAlarmsRequest::WithPageToken
GetAlarmsRequest & WithPageToken(const char *value)
Definition: GetAlarmsRequest.h:148
Aws::Lightsail::Model::GetAlarmsRequest::GetAlarmsRequest
GetAlarmsRequest()
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::GetAlarmsRequest::SetAlarmName
void SetAlarmName(const Aws::String &value)
Definition: GetAlarmsRequest.h:53
Aws::Lightsail::Model::GetAlarmsRequest::SetPageToken
void SetPageToken(Aws::String &&value)
Definition: GetAlarmsRequest.h:116
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetAlarmsRequest::GetAlarmName
const Aws::String & GetAlarmName() const
Definition: GetAlarmsRequest.h:41
Aws::Lightsail::Model::GetAlarmsRequest
Definition: GetAlarmsRequest.h:22
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetAlarmsRequest::WithMonitoredResourceName
GetAlarmsRequest & WithMonitoredResourceName(Aws::String &&value)
Definition: GetAlarmsRequest.h:198
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetAlarmsRequest::WithMonitoredResourceName
GetAlarmsRequest & WithMonitoredResourceName(const char *value)
Definition: GetAlarmsRequest.h:205
Aws::Lightsail::Model::GetAlarmsRequest::GetPageToken
const Aws::String & GetPageToken() const
Definition: GetAlarmsRequest.h:92
Aws::Lightsail::Model::GetAlarmsRequest::WithPageToken
GetAlarmsRequest & WithPageToken(Aws::String &&value)
Definition: GetAlarmsRequest.h:140
Aws::Lightsail::Model::GetAlarmsRequest::MonitoredResourceNameHasBeenSet
bool MonitoredResourceNameHasBeenSet() const
Definition: GetAlarmsRequest.h:163
Aws::Lightsail::Model::GetAlarmsRequest::SetPageToken
void SetPageToken(const Aws::String &value)
Definition: GetAlarmsRequest.h:108
Aws::Lightsail::Model::GetAlarmsRequest::SetAlarmName
void SetAlarmName(Aws::String &&value)
Definition: GetAlarmsRequest.h:59
Aws::Lightsail::Model::GetAlarmsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::GetAlarmsRequest::WithPageToken
GetAlarmsRequest & WithPageToken(const Aws::String &value)
Definition: GetAlarmsRequest.h:132