AWS SDK for C++  1.9.124
AWS SDK for C++
ListDatasetsResult.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 ForecastService
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<DatasetSummary>& GetDatasets() const{ return m_datasets; }
41 
45  inline void SetDatasets(const Aws::Vector<DatasetSummary>& value) { m_datasets = value; }
46 
50  inline void SetDatasets(Aws::Vector<DatasetSummary>&& value) { m_datasets = std::move(value); }
51 
55  inline ListDatasetsResult& WithDatasets(const Aws::Vector<DatasetSummary>& value) { SetDatasets(value); return *this;}
56 
60  inline ListDatasetsResult& WithDatasets(Aws::Vector<DatasetSummary>&& value) { SetDatasets(std::move(value)); return *this;}
61 
65  inline ListDatasetsResult& AddDatasets(const DatasetSummary& value) { m_datasets.push_back(value); return *this; }
66 
70  inline ListDatasetsResult& AddDatasets(DatasetSummary&& value) { m_datasets.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 ListDatasetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListDatasetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListDatasetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<DatasetSummary> m_datasets;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace ForecastService
124 } // namespace Aws
Aws::ForecastService::Model::ListDatasetsResult::AddDatasets
ListDatasetsResult & AddDatasets(DatasetSummary &&value)
Definition: ListDatasetsResult.h:70
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ForecastService::Model::ListDatasetsResult::ListDatasetsResult
ListDatasetsResult()
ForecastService_EXPORTS.h
Aws::ForecastService::Model::ListDatasetsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDatasetsResult.h:77
Aws::ForecastService::Model::ListDatasetsResult::operator=
ListDatasetsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ForecastService::Model::ListDatasetsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListDatasetsResult.h:95
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ForecastService::Model::ListDatasetsResult::AddDatasets
ListDatasetsResult & AddDatasets(const DatasetSummary &value)
Definition: ListDatasetsResult.h:65
Aws::ForecastService::Model::ListDatasetsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDatasetsResult.h:83
AWSVector.h
Aws::ForecastService::Model::ListDatasetsResult::WithDatasets
ListDatasetsResult & WithDatasets(Aws::Vector< DatasetSummary > &&value)
Definition: ListDatasetsResult.h:60
Aws::ForecastService::Model::ListDatasetsResult::WithNextToken
ListDatasetsResult & WithNextToken(const Aws::String &value)
Definition: ListDatasetsResult.h:101
Aws::ForecastService::Model::ListDatasetsResult::ListDatasetsResult
ListDatasetsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ForecastService::Model::ListDatasetsResult::SetDatasets
void SetDatasets(const Aws::Vector< DatasetSummary > &value)
Definition: ListDatasetsResult.h:45
Aws::ForecastService::Model::ListDatasetsResult::GetDatasets
const Aws::Vector< DatasetSummary > & GetDatasets() const
Definition: ListDatasetsResult.h:40
Aws::ForecastService::Model::DatasetSummary
Definition: DatasetSummary.h:38
Aws::ForecastService::Model::ListDatasetsResult
Definition: ListDatasetsResult.h:30
AWSString.h
Aws::ForecastService::Model::ListDatasetsResult::SetDatasets
void SetDatasets(Aws::Vector< DatasetSummary > &&value)
Definition: ListDatasetsResult.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::ForecastService::Model::ListDatasetsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDatasetsResult.h:89
Aws::ForecastService::Model::ListDatasetsResult::WithDatasets
ListDatasetsResult & WithDatasets(const Aws::Vector< DatasetSummary > &value)
Definition: ListDatasetsResult.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ForecastService::Model::ListDatasetsResult::WithNextToken
ListDatasetsResult & WithNextToken(Aws::String &&value)
Definition: ListDatasetsResult.h:107
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
DatasetSummary.h
Aws::ForecastService::Model::ListDatasetsResult::WithNextToken
ListDatasetsResult & WithNextToken(const char *value)
Definition: ListDatasetsResult.h:113