AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListDocumentsRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace QBusiness
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_QBUSINESS_API ListDocumentsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListDocuments"; }
36
37 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
38
39 AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
47 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
48 template<typename ApplicationIdT = Aws::String>
49 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
50 template<typename ApplicationIdT = Aws::String>
51 ListDocumentsRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetIndexId() const { return m_indexId; }
59 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
60 template<typename IndexIdT = Aws::String>
61 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
62 template<typename IndexIdT = Aws::String>
63 ListDocumentsRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetDataSourceIds() const { return m_dataSourceIds; }
71 inline bool DataSourceIdsHasBeenSet() const { return m_dataSourceIdsHasBeenSet; }
72 template<typename DataSourceIdsT = Aws::Vector<Aws::String>>
73 void SetDataSourceIds(DataSourceIdsT&& value) { m_dataSourceIdsHasBeenSet = true; m_dataSourceIds = std::forward<DataSourceIdsT>(value); }
74 template<typename DataSourceIdsT = Aws::Vector<Aws::String>>
75 ListDocumentsRequest& WithDataSourceIds(DataSourceIdsT&& value) { SetDataSourceIds(std::forward<DataSourceIdsT>(value)); return *this;}
76 template<typename DataSourceIdsT = Aws::String>
77 ListDocumentsRequest& AddDataSourceIds(DataSourceIdsT&& value) { m_dataSourceIdsHasBeenSet = true; m_dataSourceIds.emplace_back(std::forward<DataSourceIdsT>(value)); return *this; }
79
81
86 inline const Aws::String& GetNextToken() const { return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 template<typename NextTokenT = Aws::String>
89 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
90 template<typename NextTokenT = Aws::String>
91 ListDocumentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
93
95
98 inline int GetMaxResults() const { return m_maxResults; }
99 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
100 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
101 inline ListDocumentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
103 private:
104
105 Aws::String m_applicationId;
106 bool m_applicationIdHasBeenSet = false;
107
108 Aws::String m_indexId;
109 bool m_indexIdHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_dataSourceIds;
112 bool m_dataSourceIdsHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 int m_maxResults{0};
118 bool m_maxResultsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace QBusiness
123} // 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