AWS SDK for C++  1.9.109
AWS SDK for C++
GetAlarmsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Lightsail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Alarm>& GetAlarms() const{ return m_alarms; }
41 
45  inline void SetAlarms(const Aws::Vector<Alarm>& value) { m_alarms = value; }
46 
50  inline void SetAlarms(Aws::Vector<Alarm>&& value) { m_alarms = std::move(value); }
51 
55  inline GetAlarmsResult& WithAlarms(const Aws::Vector<Alarm>& value) { SetAlarms(value); return *this;}
56 
60  inline GetAlarmsResult& WithAlarms(Aws::Vector<Alarm>&& value) { SetAlarms(std::move(value)); return *this;}
61 
65  inline GetAlarmsResult& AddAlarms(const Alarm& value) { m_alarms.push_back(value); return *this; }
66 
70  inline GetAlarmsResult& AddAlarms(Alarm&& value) { m_alarms.push_back(std::move(value)); return *this; }
71 
72 
80  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
81 
89  inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
90 
98  inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
99 
107  inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
108 
116  inline GetAlarmsResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
117 
125  inline GetAlarmsResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
126 
134  inline GetAlarmsResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<Alarm> m_alarms;
139 
140  Aws::String m_nextPageToken;
141  };
142 
143 } // namespace Model
144 } // namespace Lightsail
145 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetAlarmsResult::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetAlarmsResult.h:80
Aws::Lightsail::Model::GetAlarmsResult::WithNextPageToken
GetAlarmsResult & WithNextPageToken(const char *value)
Definition: GetAlarmsResult.h:134
Aws::Lightsail::Model::GetAlarmsResult::WithNextPageToken
GetAlarmsResult & WithNextPageToken(const Aws::String &value)
Definition: GetAlarmsResult.h:116
Aws::Lightsail::Model::GetAlarmsResult::AddAlarms
GetAlarmsResult & AddAlarms(Alarm &&value)
Definition: GetAlarmsResult.h:70
Aws::Lightsail::Model::GetAlarmsResult::GetAlarmsResult
GetAlarmsResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::GetAlarmsResult::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetAlarmsResult.h:98
Aws::Lightsail::Model::GetAlarmsResult::SetAlarms
void SetAlarms(const Aws::Vector< Alarm > &value)
Definition: GetAlarmsResult.h:45
Aws::Lightsail::Model::GetAlarmsResult::AddAlarms
GetAlarmsResult & AddAlarms(const Alarm &value)
Definition: GetAlarmsResult.h:65
Alarm.h
AWSString.h
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetAlarmsResult::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetAlarmsResult.h:89
Aws::Lightsail::Model::GetAlarmsResult::WithAlarms
GetAlarmsResult & WithAlarms(Aws::Vector< Alarm > &&value)
Definition: GetAlarmsResult.h:60
Aws::Lightsail::Model::GetAlarmsResult::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetAlarmsResult.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetAlarmsResult::operator=
GetAlarmsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetAlarmsResult::SetAlarms
void SetAlarms(Aws::Vector< Alarm > &&value)
Definition: GetAlarmsResult.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetAlarmsResult::GetAlarmsResult
GetAlarmsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetAlarmsResult::WithAlarms
GetAlarmsResult & WithAlarms(const Aws::Vector< Alarm > &value)
Definition: GetAlarmsResult.h:55
Aws::Lightsail::Model::GetAlarmsResult::WithNextPageToken
GetAlarmsResult & WithNextPageToken(Aws::String &&value)
Definition: GetAlarmsResult.h:125
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::Alarm
Definition: Alarm.h:47
Aws::Lightsail::Model::GetAlarmsResult::GetAlarms
const Aws::Vector< Alarm > & GetAlarms() const
Definition: GetAlarmsResult.h:40
Aws::Lightsail::Model::GetAlarmsResult
Definition: GetAlarmsResult.h:30