AWS SDK for C++  1.9.109
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 Personalize
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<DatasetSummary>& GetDatasets() const{ return m_datasets; }
42 
47  inline void SetDatasets(const Aws::Vector<DatasetSummary>& value) { m_datasets = value; }
48 
53  inline void SetDatasets(Aws::Vector<DatasetSummary>&& value) { m_datasets = std::move(value); }
54 
59  inline ListDatasetsResult& WithDatasets(const Aws::Vector<DatasetSummary>& value) { SetDatasets(value); return *this;}
60 
65  inline ListDatasetsResult& WithDatasets(Aws::Vector<DatasetSummary>&& value) { SetDatasets(std::move(value)); return *this;}
66 
71  inline ListDatasetsResult& AddDatasets(const DatasetSummary& value) { m_datasets.push_back(value); return *this; }
72 
77  inline ListDatasetsResult& AddDatasets(DatasetSummary&& value) { m_datasets.push_back(std::move(value)); return *this; }
78 
79 
83  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 
88  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
89 
93  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
94 
98  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
99 
103  inline ListDatasetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
104 
108  inline ListDatasetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
109 
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 Personalize
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Personalize::Model::ListDatasetsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDatasetsResult.h:88
Aws::Personalize::Model::ListDatasetsResult::SetDatasets
void SetDatasets(Aws::Vector< DatasetSummary > &&value)
Definition: ListDatasetsResult.h:53
Aws::Personalize::Model::ListDatasetsResult::WithNextToken
ListDatasetsResult & WithNextToken(Aws::String &&value)
Definition: ListDatasetsResult.h:108
Aws::Personalize::Model::ListDatasetsResult::ListDatasetsResult
ListDatasetsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Personalize::Model::ListDatasetsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListDatasetsResult.h:98
Aws::Personalize::Model::ListDatasetsResult::ListDatasetsResult
ListDatasetsResult()
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Personalize::Model::ListDatasetsResult::WithNextToken
ListDatasetsResult & WithNextToken(const char *value)
Definition: ListDatasetsResult.h:113
Aws::Personalize::Model::ListDatasetsResult::WithDatasets
ListDatasetsResult & WithDatasets(const Aws::Vector< DatasetSummary > &value)
Definition: ListDatasetsResult.h:59
AWSVector.h
Aws::Personalize::Model::ListDatasetsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDatasetsResult.h:83
DatasetSummary.h
Aws::Personalize::Model::ListDatasetsResult::AddDatasets
ListDatasetsResult & AddDatasets(const DatasetSummary &value)
Definition: ListDatasetsResult.h:71
Aws::Personalize::Model::ListDatasetsResult::SetDatasets
void SetDatasets(const Aws::Vector< DatasetSummary > &value)
Definition: ListDatasetsResult.h:47
Aws::Personalize::Model::ListDatasetsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDatasetsResult.h:93
AWSString.h
Aws::Personalize::Model::ListDatasetsResult::operator=
ListDatasetsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Personalize::Model::ListDatasetsResult
Definition: ListDatasetsResult.h:30
Aws::Personalize::Model::ListDatasetsResult::WithDatasets
ListDatasetsResult & WithDatasets(Aws::Vector< DatasetSummary > &&value)
Definition: ListDatasetsResult.h:65
Aws::Personalize::Model::ListDatasetsResult::WithNextToken
ListDatasetsResult & WithNextToken(const Aws::String &value)
Definition: ListDatasetsResult.h:103
Aws::Personalize::Model::ListDatasetsResult::AddDatasets
ListDatasetsResult & AddDatasets(DatasetSummary &&value)
Definition: ListDatasetsResult.h:77
Aws::Personalize::Model::ListDatasetsResult::GetDatasets
const Aws::Vector< DatasetSummary > & GetDatasets() const
Definition: ListDatasetsResult.h:41
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::DatasetSummary
Definition: DatasetSummary.h:34
Personalize_EXPORTS.h