AWS SDK for C++  1.9.16
AWS SDK for C++
GetOperationsForResourceResult.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 GetOperationsForResourceResult& WithOperations(const Aws::Vector<Operation>& value) { SetOperations(value); return *this;}
64 
70  inline GetOperationsForResourceResult& WithOperations(Aws::Vector<Operation>&& value) { SetOperations(std::move(value)); return *this;}
71 
77  inline GetOperationsForResourceResult& AddOperations(const Operation& value) { m_operations.push_back(value); return *this; }
78 
84  inline GetOperationsForResourceResult& 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 GetOperationsForResourceResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
131 
139  inline GetOperationsForResourceResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
140 
148  inline GetOperationsForResourceResult& 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::GetOperationsForResourceResult::operator=
GetOperationsForResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetOperationsForResourceResult::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetOperationsForResourceResult.h:112
Aws::Lightsail::Model::GetOperationsForResourceResult::AddOperations
GetOperationsForResourceResult & AddOperations(Operation &&value)
Definition: GetOperationsForResourceResult.h:84
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetOperationsForResourceResult::WithNextPageToken
GetOperationsForResourceResult & WithNextPageToken(Aws::String &&value)
Definition: GetOperationsForResourceResult.h:139
Aws::Lightsail::Model::GetOperationsForResourceResult::GetOperationsForResourceResult
GetOperationsForResourceResult()
Aws::Lightsail::Model::GetOperationsForResourceResult::WithNextPageToken
GetOperationsForResourceResult & WithNextPageToken(const Aws::String &value)
Definition: GetOperationsForResourceResult.h:130
Aws::Lightsail::Model::Operation
Definition: Operation.h:37
Aws::Lightsail::Model::GetOperationsForResourceResult::WithOperations
GetOperationsForResourceResult & WithOperations(Aws::Vector< Operation > &&value)
Definition: GetOperationsForResourceResult.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::GetOperationsForResourceResult::SetOperations
void SetOperations(Aws::Vector< Operation > &&value)
Definition: GetOperationsForResourceResult.h:56
AWSVector.h
Aws::Lightsail::Model::GetOperationsForResourceResult::AddOperations
GetOperationsForResourceResult & AddOperations(const Operation &value)
Definition: GetOperationsForResourceResult.h:77
Aws::Lightsail::Model::GetOperationsForResourceResult::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetOperationsForResourceResult.h:94
Aws::Lightsail::Model::GetOperationsForResourceResult::WithNextPageToken
GetOperationsForResourceResult & WithNextPageToken(const char *value)
Definition: GetOperationsForResourceResult.h:148
Aws::Lightsail::Model::GetOperationsForResourceResult::GetOperations
const Aws::Vector< Operation > & GetOperations() const
Definition: GetOperationsForResourceResult.h:42
AWSString.h
Aws::Lightsail::Model::GetOperationsForResourceResult::SetOperations
void SetOperations(const Aws::Vector< Operation > &value)
Definition: GetOperationsForResourceResult.h:49
Aws::Lightsail::Model::GetOperationsForResourceResult::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetOperationsForResourceResult.h:103
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetOperationsForResourceResult::GetOperationsForResourceResult
GetOperationsForResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetOperationsForResourceResult
Definition: GetOperationsForResourceResult.h:30
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_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Operation.h
Aws::Lightsail::Model::GetOperationsForResourceResult::WithOperations
GetOperationsForResourceResult & WithOperations(const Aws::Vector< Operation > &value)
Definition: GetOperationsForResourceResult.h:63
Aws::Lightsail::Model::GetOperationsForResourceResult::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetOperationsForResourceResult.h:121