AWS SDK for C++  1.9.15
AWS SDK for C++
GetOperationsResult.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 
42  inline const Aws::Vector<Operation>& GetOperations() const{ return m_operations; }
43 
49  inline void SetOperations(const Aws::Vector<Operation>& value) { m_operations = value; }
50 
56  inline void SetOperations(Aws::Vector<Operation>&& value) { m_operations = std::move(value); }
57 
63  inline GetOperationsResult& WithOperations(const Aws::Vector<Operation>& value) { SetOperations(value); return *this;}
64 
70  inline GetOperationsResult& WithOperations(Aws::Vector<Operation>&& value) { SetOperations(std::move(value)); return *this;}
71 
77  inline GetOperationsResult& AddOperations(const Operation& value) { m_operations.push_back(value); return *this; }
78 
84  inline GetOperationsResult& AddOperations(Operation&& value) { m_operations.push_back(std::move(value)); return *this; }
85 
86 
94  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
95 
103  inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
104 
112  inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
113 
121  inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
122 
130  inline GetOperationsResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
131 
139  inline GetOperationsResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
140 
148  inline GetOperationsResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
149 
150  private:
151 
152  Aws::Vector<Operation> m_operations;
153 
154  Aws::String m_nextPageToken;
155  };
156 
157 } // namespace Model
158 } // namespace Lightsail
159 } // namespace Aws
Aws::Lightsail::Model::GetOperationsResult::WithNextPageToken
GetOperationsResult & WithNextPageToken(const char *value)
Definition: GetOperationsResult.h:148
Aws::Lightsail::Model::GetOperationsResult::AddOperations
GetOperationsResult & AddOperations(const Operation &value)
Definition: GetOperationsResult.h:77
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetOperationsResult::AddOperations
GetOperationsResult & AddOperations(Operation &&value)
Definition: GetOperationsResult.h:84
Aws::Lightsail::Model::GetOperationsResult::WithOperations
GetOperationsResult & WithOperations(Aws::Vector< Operation > &&value)
Definition: GetOperationsResult.h:70
Aws::Lightsail::Model::Operation
Definition: Operation.h:37
Aws::Lightsail::Model::GetOperationsResult::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetOperationsResult.h:103
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::GetOperationsResult::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetOperationsResult.h:112
Aws::Lightsail::Model::GetOperationsResult::SetOperations
void SetOperations(const Aws::Vector< Operation > &value)
Definition: GetOperationsResult.h:49
AWSVector.h
Aws::Lightsail::Model::GetOperationsResult::SetOperations
void SetOperations(Aws::Vector< Operation > &&value)
Definition: GetOperationsResult.h:56
Aws::Lightsail::Model::GetOperationsResult::GetOperations
const Aws::Vector< Operation > & GetOperations() const
Definition: GetOperationsResult.h:42
Aws::Lightsail::Model::GetOperationsResult::WithNextPageToken
GetOperationsResult & WithNextPageToken(Aws::String &&value)
Definition: GetOperationsResult.h:139
Aws::Lightsail::Model::GetOperationsResult::operator=
GetOperationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetOperationsResult::GetOperationsResult
GetOperationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::Lightsail::Model::GetOperationsResult::WithOperations
GetOperationsResult & WithOperations(const Aws::Vector< Operation > &value)
Definition: GetOperationsResult.h:63
Lightsail_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetOperationsResult::WithNextPageToken
GetOperationsResult & WithNextPageToken(const Aws::String &value)
Definition: GetOperationsResult.h:130
Aws::Lightsail::Model::GetOperationsResult::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetOperationsResult.h:94
Aws::Lightsail::Model::GetOperationsResult
Definition: GetOperationsResult.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetOperationsResult::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetOperationsResult.h:121
Aws::Lightsail::Model::GetOperationsResult::GetOperationsResult
GetOperationsResult()
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Operation.h