AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
ListDocumentsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/QBusinessRequest.h>
10#include <aws/qbusiness/QBusiness_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace QBusiness {
19namespace Model {
20
24 public:
25 AWS_QBUSINESS_API ListDocumentsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListDocuments"; }
32
33 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
34
35 AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template <typename ApplicationIdT = Aws::String>
45 m_applicationIdHasBeenSet = true;
46 m_applicationId = std::forward<ApplicationIdT>(value);
47 }
48 template <typename ApplicationIdT = Aws::String>
50 SetApplicationId(std::forward<ApplicationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIndexId() const { return m_indexId; }
60 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
61 template <typename IndexIdT = Aws::String>
62 void SetIndexId(IndexIdT&& value) {
63 m_indexIdHasBeenSet = true;
64 m_indexId = std::forward<IndexIdT>(value);
65 }
66 template <typename IndexIdT = Aws::String>
68 SetIndexId(std::forward<IndexIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetDataSourceIds() const { return m_dataSourceIds; }
78 inline bool DataSourceIdsHasBeenSet() const { return m_dataSourceIdsHasBeenSet; }
79 template <typename DataSourceIdsT = Aws::Vector<Aws::String>>
81 m_dataSourceIdsHasBeenSet = true;
82 m_dataSourceIds = std::forward<DataSourceIdsT>(value);
83 }
84 template <typename DataSourceIdsT = Aws::Vector<Aws::String>>
86 SetDataSourceIds(std::forward<DataSourceIdsT>(value));
87 return *this;
88 }
89 template <typename DataSourceIdsT = Aws::String>
91 m_dataSourceIdsHasBeenSet = true;
92 m_dataSourceIds.emplace_back(std::forward<DataSourceIdsT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetNextToken() const { return m_nextToken; }
104 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
105 template <typename NextTokenT = Aws::String>
106 void SetNextToken(NextTokenT&& value) {
107 m_nextTokenHasBeenSet = true;
108 m_nextToken = std::forward<NextTokenT>(value);
109 }
110 template <typename NextTokenT = Aws::String>
112 SetNextToken(std::forward<NextTokenT>(value));
113 return *this;
114 }
116
118
121 inline int GetMaxResults() const { return m_maxResults; }
122 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
123 inline void SetMaxResults(int value) {
124 m_maxResultsHasBeenSet = true;
125 m_maxResults = value;
126 }
128 SetMaxResults(value);
129 return *this;
130 }
132 private:
133 Aws::String m_applicationId;
134 bool m_applicationIdHasBeenSet = false;
135
136 Aws::String m_indexId;
137 bool m_indexIdHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_dataSourceIds;
140 bool m_dataSourceIdsHasBeenSet = false;
141
142 Aws::String m_nextToken;
143 bool m_nextTokenHasBeenSet = false;
144
145 int m_maxResults{0};
146 bool m_maxResultsHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace QBusiness
151} // namespace Aws
ListDocumentsRequest & WithNextToken(NextTokenT &&value)
ListDocumentsRequest & WithIndexId(IndexIdT &&value)
virtual const char * GetServiceRequestName() const override
ListDocumentsRequest & WithApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API ListDocumentsRequest()=default
ListDocumentsRequest & WithDataSourceIds(DataSourceIdsT &&value)
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_QBUSINESS_API Aws::String SerializePayload() const override
ListDocumentsRequest & AddDataSourceIds(DataSourceIdsT &&value)
const Aws::Vector< Aws::String > & GetDataSourceIds() const
ListDocumentsRequest & WithMaxResults(int value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector