AWS SDK for C++  1.8.126
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 CognitoSync
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<Dataset>& GetDatasets() const{ return m_datasets; }
46 
50  inline void SetDatasets(const Aws::Vector<Dataset>& value) { m_datasets = value; }
51 
55  inline void SetDatasets(Aws::Vector<Dataset>&& value) { m_datasets = std::move(value); }
56 
60  inline ListDatasetsResult& WithDatasets(const Aws::Vector<Dataset>& value) { SetDatasets(value); return *this;}
61 
65  inline ListDatasetsResult& WithDatasets(Aws::Vector<Dataset>&& value) { SetDatasets(std::move(value)); return *this;}
66 
70  inline ListDatasetsResult& AddDatasets(const Dataset& value) { m_datasets.push_back(value); return *this; }
71 
75  inline ListDatasetsResult& AddDatasets(Dataset&& value) { m_datasets.push_back(std::move(value)); return *this; }
76 
77 
81  inline int GetCount() const{ return m_count; }
82 
86  inline void SetCount(int value) { m_count = value; }
87 
91  inline ListDatasetsResult& WithCount(int value) { SetCount(value); return *this;}
92 
93 
97  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
98 
102  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
103 
107  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
108 
112  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
113 
117  inline ListDatasetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
118 
122  inline ListDatasetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
123 
127  inline ListDatasetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<Dataset> m_datasets;
132 
133  int m_count;
134 
135  Aws::String m_nextToken;
136  };
137 
138 } // namespace Model
139 } // namespace CognitoSync
140 } // namespace Aws
Dataset.h
Aws::CognitoSync::Model::ListDatasetsResult::ListDatasetsResult
ListDatasetsResult()
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CognitoSync::Model::ListDatasetsResult::GetCount
int GetCount() const
Definition: ListDatasetsResult.h:81
Aws::CognitoSync::Model::ListDatasetsResult::GetDatasets
const Aws::Vector< Dataset > & GetDatasets() const
Definition: ListDatasetsResult.h:45
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::ListDatasetsResult::SetDatasets
void SetDatasets(const Aws::Vector< Dataset > &value)
Definition: ListDatasetsResult.h:50
Aws::CognitoSync::Model::ListDatasetsResult::AddDatasets
ListDatasetsResult & AddDatasets(const Dataset &value)
Definition: ListDatasetsResult.h:70
Aws::CognitoSync::Model::Dataset
Definition: Dataset.h:37
Aws::CognitoSync::Model::ListDatasetsResult::SetDatasets
void SetDatasets(Aws::Vector< Dataset > &&value)
Definition: ListDatasetsResult.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CognitoSync::Model::ListDatasetsResult::SetCount
void SetCount(int value)
Definition: ListDatasetsResult.h:86
AWSVector.h
Aws::CognitoSync::Model::ListDatasetsResult::WithNextToken
ListDatasetsResult & WithNextToken(const char *value)
Definition: ListDatasetsResult.h:127
Aws::CognitoSync::Model::ListDatasetsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDatasetsResult.h:102
Aws::CognitoSync::Model::ListDatasetsResult::ListDatasetsResult
ListDatasetsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CognitoSync::Model::ListDatasetsResult::WithNextToken
ListDatasetsResult & WithNextToken(const Aws::String &value)
Definition: ListDatasetsResult.h:117
Aws::CognitoSync::Model::ListDatasetsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDatasetsResult.h:97
AWSString.h
Aws::CognitoSync::Model::ListDatasetsResult::WithNextToken
ListDatasetsResult & WithNextToken(Aws::String &&value)
Definition: ListDatasetsResult.h:122
Aws::CognitoSync::Model::ListDatasetsResult::WithDatasets
ListDatasetsResult & WithDatasets(Aws::Vector< Dataset > &&value)
Definition: ListDatasetsResult.h:65
Aws
Definition: AccessManagementClient.h:15
AWS_COGNITOSYNC_API
#define AWS_COGNITOSYNC_API
Definition: CognitoSync_EXPORTS.h:28
Aws::CognitoSync::Model::ListDatasetsResult::AddDatasets
ListDatasetsResult & AddDatasets(Dataset &&value)
Definition: ListDatasetsResult.h:75
Aws::CognitoSync::Model::ListDatasetsResult::WithDatasets
ListDatasetsResult & WithDatasets(const Aws::Vector< Dataset > &value)
Definition: ListDatasetsResult.h:60
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CognitoSync::Model::ListDatasetsResult
Definition: ListDatasetsResult.h:35
Aws::CognitoSync::Model::ListDatasetsResult::operator=
ListDatasetsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CognitoSync::Model::ListDatasetsResult::WithCount
ListDatasetsResult & WithCount(int value)
Definition: ListDatasetsResult.h:91
Aws::CognitoSync::Model::ListDatasetsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListDatasetsResult.h:112
Aws::CognitoSync::Model::ListDatasetsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDatasetsResult.h:107