AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListDatasetsResult.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cognito-sync/model/Dataset.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CognitoSync
26{
27namespace Model
28{
35 {
36 public:
37 AWS_COGNITOSYNC_API ListDatasetsResult();
40
41
43
46 inline const Aws::Vector<Dataset>& GetDatasets() const{ return m_datasets; }
47 inline void SetDatasets(const Aws::Vector<Dataset>& value) { m_datasets = value; }
48 inline void SetDatasets(Aws::Vector<Dataset>&& value) { m_datasets = std::move(value); }
49 inline ListDatasetsResult& WithDatasets(const Aws::Vector<Dataset>& value) { SetDatasets(value); return *this;}
50 inline ListDatasetsResult& WithDatasets(Aws::Vector<Dataset>&& value) { SetDatasets(std::move(value)); return *this;}
51 inline ListDatasetsResult& AddDatasets(const Dataset& value) { m_datasets.push_back(value); return *this; }
52 inline ListDatasetsResult& AddDatasets(Dataset&& value) { m_datasets.push_back(std::move(value)); return *this; }
54
56
59 inline int GetCount() const{ return m_count; }
60 inline void SetCount(int value) { m_count = value; }
61 inline ListDatasetsResult& WithCount(int value) { SetCount(value); return *this;}
63
65
68 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
69 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
70 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
71 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
72 inline ListDatasetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
73 inline ListDatasetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
74 inline ListDatasetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
76
78
79 inline const Aws::String& GetRequestId() const{ return m_requestId; }
80 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
81 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
82 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
83 inline ListDatasetsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
84 inline ListDatasetsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 inline ListDatasetsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
87 private:
88
89 Aws::Vector<Dataset> m_datasets;
90
91 int m_count;
92
93 Aws::String m_nextToken;
94
95 Aws::String m_requestId;
96 };
97
98} // namespace Model
99} // namespace CognitoSync
100} // namespace Aws
ListDatasetsResult & WithDatasets(Aws::Vector< Dataset > &&value)
const Aws::Vector< Dataset > & GetDatasets() const
void SetDatasets(const Aws::Vector< Dataset > &value)
void SetRequestId(const Aws::String &value)
ListDatasetsResult & WithDatasets(const Aws::Vector< Dataset > &value)
ListDatasetsResult & AddDatasets(const Dataset &value)
ListDatasetsResult & WithRequestId(const Aws::String &value)
void SetDatasets(Aws::Vector< Dataset > &&value)
ListDatasetsResult & WithCount(int value)
void SetNextToken(const Aws::String &value)
ListDatasetsResult & AddDatasets(Dataset &&value)
AWS_COGNITOSYNC_API ListDatasetsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COGNITOSYNC_API ListDatasetsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListDatasetsResult & WithRequestId(const char *value)
ListDatasetsResult & WithNextToken(Aws::String &&value)
ListDatasetsResult & WithNextToken(const char *value)
ListDatasetsResult & WithNextToken(const Aws::String &value)
ListDatasetsResult & WithRequestId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue