AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListDatasetsRequest.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSyncRequest.h>
8#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace CognitoSync {
18namespace Model {
19
26 public:
27 AWS_COGNITOSYNC_API ListDatasetsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListDatasets"; }
34
35 AWS_COGNITOSYNC_API Aws::String SerializePayload() const override;
36
37 AWS_COGNITOSYNC_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
44 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
45 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
46 template <typename IdentityPoolIdT = Aws::String>
47 void SetIdentityPoolId(IdentityPoolIdT&& value) {
48 m_identityPoolIdHasBeenSet = true;
49 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
50 }
51 template <typename IdentityPoolIdT = Aws::String>
52 ListDatasetsRequest& WithIdentityPoolId(IdentityPoolIdT&& value) {
53 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetIdentityId() const { return m_identityId; }
64 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
65 template <typename IdentityIdT = Aws::String>
66 void SetIdentityId(IdentityIdT&& value) {
67 m_identityIdHasBeenSet = true;
68 m_identityId = std::forward<IdentityIdT>(value);
69 }
70 template <typename IdentityIdT = Aws::String>
71 ListDatasetsRequest& WithIdentityId(IdentityIdT&& value) {
72 SetIdentityId(std::forward<IdentityIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template <typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) {
85 m_nextTokenHasBeenSet = true;
86 m_nextToken = std::forward<NextTokenT>(value);
87 }
88 template <typename NextTokenT = Aws::String>
89 ListDatasetsRequest& WithNextToken(NextTokenT&& value) {
90 SetNextToken(std::forward<NextTokenT>(value));
91 return *this;
92 }
94
96
99 inline int GetMaxResults() const { return m_maxResults; }
100 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 inline void SetMaxResults(int value) {
102 m_maxResultsHasBeenSet = true;
103 m_maxResults = value;
104 }
106 SetMaxResults(value);
107 return *this;
108 }
110 private:
111 Aws::String m_identityPoolId;
112
113 Aws::String m_identityId;
114
115 Aws::String m_nextToken;
116
117 int m_maxResults{0};
118 bool m_identityPoolIdHasBeenSet = false;
119 bool m_identityIdHasBeenSet = false;
120 bool m_nextTokenHasBeenSet = false;
121 bool m_maxResultsHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CognitoSync
126} // namespace Aws
AWS_COGNITOSYNC_API ListDatasetsRequest()=default
ListDatasetsRequest & WithIdentityId(IdentityIdT &&value)
AWS_COGNITOSYNC_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListDatasetsRequest & WithMaxResults(int value)
AWS_COGNITOSYNC_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetIdentityPoolId(IdentityPoolIdT &&value)
ListDatasetsRequest & WithNextToken(NextTokenT &&value)
ListDatasetsRequest & WithIdentityPoolId(IdentityPoolIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String