AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
49 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
50 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
51 inline ListDocumentsRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
52 inline ListDocumentsRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
53 inline ListDocumentsRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
55
57
60 inline const Aws::String& GetIndexId() const{ return m_indexId; }
61 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
62 inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
63 inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
64 inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
65 inline ListDocumentsRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
66 inline ListDocumentsRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
67 inline ListDocumentsRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetDataSourceIds() const{ return m_dataSourceIds; }
75 inline bool DataSourceIdsHasBeenSet() const { return m_dataSourceIdsHasBeenSet; }
76 inline void SetDataSourceIds(const Aws::Vector<Aws::String>& value) { m_dataSourceIdsHasBeenSet = true; m_dataSourceIds = value; }
77 inline void SetDataSourceIds(Aws::Vector<Aws::String>&& value) { m_dataSourceIdsHasBeenSet = true; m_dataSourceIds = std::move(value); }
79 inline ListDocumentsRequest& WithDataSourceIds(Aws::Vector<Aws::String>&& value) { SetDataSourceIds(std::move(value)); return *this;}
80 inline ListDocumentsRequest& AddDataSourceIds(const Aws::String& value) { m_dataSourceIdsHasBeenSet = true; m_dataSourceIds.push_back(value); return *this; }
81 inline ListDocumentsRequest& AddDataSourceIds(Aws::String&& value) { m_dataSourceIdsHasBeenSet = true; m_dataSourceIds.push_back(std::move(value)); return *this; }
82 inline ListDocumentsRequest& AddDataSourceIds(const char* value) { m_dataSourceIdsHasBeenSet = true; m_dataSourceIds.push_back(value); return *this; }
84
86
91 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
93 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
94 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
95 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
96 inline ListDocumentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
97 inline ListDocumentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
98 inline ListDocumentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
100
102
105 inline int GetMaxResults() const{ return m_maxResults; }
106 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
108 inline ListDocumentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
110 private:
111
112 Aws::String m_applicationId;
113 bool m_applicationIdHasBeenSet = false;
114
115 Aws::String m_indexId;
116 bool m_indexIdHasBeenSet = false;
117
118 Aws::Vector<Aws::String> m_dataSourceIds;
119 bool m_dataSourceIdsHasBeenSet = false;
120
121 Aws::String m_nextToken;
122 bool m_nextTokenHasBeenSet = false;
123
124 int m_maxResults;
125 bool m_maxResultsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace QBusiness
130} // namespace Aws
ListDocumentsRequest & AddDataSourceIds(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetApplicationId(const Aws::String &value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
ListDocumentsRequest & WithApplicationId(const Aws::String &value)
ListDocumentsRequest & WithApplicationId(Aws::String &&value)
ListDocumentsRequest & WithIndexId(const Aws::String &value)
ListDocumentsRequest & WithDataSourceIds(Aws::Vector< Aws::String > &&value)
ListDocumentsRequest & WithNextToken(const char *value)
ListDocumentsRequest & AddDataSourceIds(const Aws::String &value)
ListDocumentsRequest & WithApplicationId(const char *value)
ListDocumentsRequest & WithNextToken(const Aws::String &value)
ListDocumentsRequest & WithNextToken(Aws::String &&value)
ListDocumentsRequest & WithIndexId(const char *value)
const Aws::Vector< Aws::String > & GetDataSourceIds() const
void SetDataSourceIds(Aws::Vector< Aws::String > &&value)
ListDocumentsRequest & WithDataSourceIds(const Aws::Vector< Aws::String > &value)
void SetDataSourceIds(const Aws::Vector< Aws::String > &value)
ListDocumentsRequest & WithMaxResults(int value)
ListDocumentsRequest & AddDataSourceIds(Aws::String &&value)
ListDocumentsRequest & WithIndexId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector