AWS SDK for C++  1.9.105
AWS SDK for C++
ListOperationsResult.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 ServiceDiscovery
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<OperationSummary>& GetOperations() const{ return m_operations; }
42 
47  inline void SetOperations(const Aws::Vector<OperationSummary>& value) { m_operations = value; }
48 
53  inline void SetOperations(Aws::Vector<OperationSummary>&& value) { m_operations = std::move(value); }
54 
59  inline ListOperationsResult& WithOperations(const Aws::Vector<OperationSummary>& value) { SetOperations(value); return *this;}
60 
65  inline ListOperationsResult& WithOperations(Aws::Vector<OperationSummary>&& value) { SetOperations(std::move(value)); return *this;}
66 
71  inline ListOperationsResult& AddOperations(const OperationSummary& value) { m_operations.push_back(value); return *this; }
72 
77  inline ListOperationsResult& AddOperations(OperationSummary&& value) { m_operations.push_back(std::move(value)); return *this; }
78 
79 
90  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
91 
102  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
103 
114  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
115 
126  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
127 
138  inline ListOperationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
139 
150  inline ListOperationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
151 
162  inline ListOperationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
163 
164  private:
165 
166  Aws::Vector<OperationSummary> m_operations;
167 
168  Aws::String m_nextToken;
169  };
170 
171 } // namespace Model
172 } // namespace ServiceDiscovery
173 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::ListOperationsResult::WithNextToken
ListOperationsResult & WithNextToken(Aws::String &&value)
Definition: ListOperationsResult.h:150
OperationSummary.h
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::ListOperationsResult
Definition: ListOperationsResult.h:30
Aws::ServiceDiscovery::Model::ListOperationsResult::AddOperations
ListOperationsResult & AddOperations(const OperationSummary &value)
Definition: ListOperationsResult.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ServiceDiscovery::Model::ListOperationsResult::AddOperations
ListOperationsResult & AddOperations(OperationSummary &&value)
Definition: ListOperationsResult.h:77
Aws::ServiceDiscovery::Model::ListOperationsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOperationsResult.h:102
Aws::ServiceDiscovery::Model::ListOperationsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOperationsResult.h:114
Aws::ServiceDiscovery::Model::ListOperationsResult::WithOperations
ListOperationsResult & WithOperations(const Aws::Vector< OperationSummary > &value)
Definition: ListOperationsResult.h:59
Aws::ServiceDiscovery::Model::ListOperationsResult::GetOperations
const Aws::Vector< OperationSummary > & GetOperations() const
Definition: ListOperationsResult.h:41
Aws::ServiceDiscovery::Model::ListOperationsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListOperationsResult.h:126
Aws::ServiceDiscovery::Model::ListOperationsResult::SetOperations
void SetOperations(const Aws::Vector< OperationSummary > &value)
Definition: ListOperationsResult.h:47
Aws::ServiceDiscovery::Model::ListOperationsResult::ListOperationsResult
ListOperationsResult()
AWSString.h
Aws::ServiceDiscovery::Model::ListOperationsResult::WithOperations
ListOperationsResult & WithOperations(Aws::Vector< OperationSummary > &&value)
Definition: ListOperationsResult.h:65
Aws::ServiceDiscovery::Model::ListOperationsResult::WithNextToken
ListOperationsResult & WithNextToken(const char *value)
Definition: ListOperationsResult.h:162
Aws::ServiceDiscovery::Model::OperationSummary
Definition: OperationSummary.h:36
Aws::ServiceDiscovery::Model::ListOperationsResult::operator=
ListOperationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::ListOperationsResult::ListOperationsResult
ListOperationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::ListOperationsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOperationsResult.h:90
Aws::ServiceDiscovery::Model::ListOperationsResult::SetOperations
void SetOperations(Aws::Vector< OperationSummary > &&value)
Definition: ListOperationsResult.h:53
Aws::ServiceDiscovery::Model::ListOperationsResult::WithNextToken
ListOperationsResult & WithNextToken(const Aws::String &value)
Definition: ListOperationsResult.h:138