AWS SDK for C++  1.9.155
AWS SDK for C++
ListAppsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/amplify/model/App.h>
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 Amplify
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<App>& GetApps() const{ return m_apps; }
47 
51  inline void SetApps(const Aws::Vector<App>& value) { m_apps = value; }
52 
56  inline void SetApps(Aws::Vector<App>&& value) { m_apps = std::move(value); }
57 
61  inline ListAppsResult& WithApps(const Aws::Vector<App>& value) { SetApps(value); return *this;}
62 
66  inline ListAppsResult& WithApps(Aws::Vector<App>&& value) { SetApps(std::move(value)); return *this;}
67 
71  inline ListAppsResult& AddApps(const App& value) { m_apps.push_back(value); return *this; }
72 
76  inline ListAppsResult& AddApps(App&& value) { m_apps.push_back(std::move(value)); return *this; }
77 
78 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
91  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
92 
98  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
99 
105  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
106 
112  inline ListAppsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
113 
119  inline ListAppsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
120 
126  inline ListAppsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
127 
128  private:
129 
130  Aws::Vector<App> m_apps;
131 
132  Aws::String m_nextToken;
133  };
134 
135 } // namespace Model
136 } // namespace Amplify
137 } // namespace Aws
App.h
Amplify_EXPORTS.h
Aws::Amplify::Model::ListAppsResult::AddApps
ListAppsResult & AddApps(App &&value)
Definition: ListAppsResult.h:76
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Amplify::Model::ListAppsResult::GetApps
const Aws::Vector< App > & GetApps() const
Definition: ListAppsResult.h:46
Aws::Amplify::Model::ListAppsResult::WithNextToken
ListAppsResult & WithNextToken(Aws::String &&value)
Definition: ListAppsResult.h:119
Aws::Amplify::Model::ListAppsResult::SetApps
void SetApps(Aws::Vector< App > &&value)
Definition: ListAppsResult.h:56
Aws::Amplify::Model::ListAppsResult::AddApps
ListAppsResult & AddApps(const App &value)
Definition: ListAppsResult.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Amplify::Model::App
Definition: App.h:40
Aws::Amplify::Model::ListAppsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAppsResult.h:98
Aws::Amplify::Model::ListAppsResult::operator=
ListAppsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Amplify::Model::ListAppsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListAppsResult.h:105
Aws::Amplify::Model::ListAppsResult::WithApps
ListAppsResult & WithApps(Aws::Vector< App > &&value)
Definition: ListAppsResult.h:66
Aws::Amplify::Model::ListAppsResult
Definition: ListAppsResult.h:36
AWSString.h
Aws::Amplify::Model::ListAppsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAppsResult.h:91
Aws::Amplify::Model::ListAppsResult::ListAppsResult
ListAppsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Amplify::Model::ListAppsResult::SetApps
void SetApps(const Aws::Vector< App > &value)
Definition: ListAppsResult.h:51
Aws::Amplify::Model::ListAppsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAppsResult.h:84
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::ListAppsResult::WithNextToken
ListAppsResult & WithNextToken(const Aws::String &value)
Definition: ListAppsResult.h:112
Aws::Amplify::Model::ListAppsResult::WithNextToken
ListAppsResult & WithNextToken(const char *value)
Definition: ListAppsResult.h:126
Aws::Amplify::Model::ListAppsResult::ListAppsResult
ListAppsResult()
Aws::Amplify::Model::ListAppsResult::WithApps
ListAppsResult & WithApps(const Aws::Vector< App > &value)
Definition: ListAppsResult.h:61
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28