AWS SDK for C++  1.9.157
AWS SDK for C++
ListDataSourcesResult.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 AppSync
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<DataSource>& GetDataSources() const{ return m_dataSources; }
41 
45  inline void SetDataSources(const Aws::Vector<DataSource>& value) { m_dataSources = value; }
46 
50  inline void SetDataSources(Aws::Vector<DataSource>&& value) { m_dataSources = std::move(value); }
51 
55  inline ListDataSourcesResult& WithDataSources(const Aws::Vector<DataSource>& value) { SetDataSources(value); return *this;}
56 
60  inline ListDataSourcesResult& WithDataSources(Aws::Vector<DataSource>&& value) { SetDataSources(std::move(value)); return *this;}
61 
65  inline ListDataSourcesResult& AddDataSources(const DataSource& value) { m_dataSources.push_back(value); return *this; }
66 
70  inline ListDataSourcesResult& AddDataSources(DataSource&& value) { m_dataSources.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
83  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
89  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
95  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
101  inline ListDataSourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListDataSourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListDataSourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<DataSource> m_dataSources;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace AppSync
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::AppSync::Model::ListDataSourcesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDataSourcesResult.h:77
Aws::AppSync::Model::ListDataSourcesResult::WithNextToken
ListDataSourcesResult & WithNextToken(const char *value)
Definition: ListDataSourcesResult.h:113
Aws::AppSync::Model::ListDataSourcesResult::ListDataSourcesResult
ListDataSourcesResult()
Aws::AppSync::Model::ListDataSourcesResult::WithNextToken
ListDataSourcesResult & WithNextToken(const Aws::String &value)
Definition: ListDataSourcesResult.h:101
Aws::AppSync::Model::ListDataSourcesResult::ListDataSourcesResult
ListDataSourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AppSync::Model::ListDataSourcesResult::WithDataSources
ListDataSourcesResult & WithDataSources(Aws::Vector< DataSource > &&value)
Definition: ListDataSourcesResult.h:60
Aws::AppSync::Model::ListDataSourcesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDataSourcesResult.h:83
Aws::AppSync::Model::ListDataSourcesResult
Definition: ListDataSourcesResult.h:30
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppSync::Model::ListDataSourcesResult::SetDataSources
void SetDataSources(const Aws::Vector< DataSource > &value)
Definition: ListDataSourcesResult.h:45
AppSync_EXPORTS.h
Aws::AppSync::Model::ListDataSourcesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListDataSourcesResult.h:95
Aws::AppSync::Model::ListDataSourcesResult::WithNextToken
ListDataSourcesResult & WithNextToken(Aws::String &&value)
Definition: ListDataSourcesResult.h:107
AWSVector.h
Aws::AppSync::Model::DataSource
Definition: DataSource.h:39
Aws::AppSync::Model::ListDataSourcesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDataSourcesResult.h:89
Aws::AppSync::Model::ListDataSourcesResult::AddDataSources
ListDataSourcesResult & AddDataSources(DataSource &&value)
Definition: ListDataSourcesResult.h:70
Aws::AppSync::Model::ListDataSourcesResult::WithDataSources
ListDataSourcesResult & WithDataSources(const Aws::Vector< DataSource > &value)
Definition: ListDataSourcesResult.h:55
AWSString.h
DataSource.h
Aws::AppSync::Model::ListDataSourcesResult::operator=
ListDataSourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AppSync::Model::ListDataSourcesResult::AddDataSources
ListDataSourcesResult & AddDataSources(const DataSource &value)
Definition: ListDataSourcesResult.h:65
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::ListDataSourcesResult::SetDataSources
void SetDataSources(Aws::Vector< DataSource > &&value)
Definition: ListDataSourcesResult.h:50
Aws::AppSync::Model::ListDataSourcesResult::GetDataSources
const Aws::Vector< DataSource > & GetDataSources() const
Definition: ListDataSourcesResult.h:40