AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
ListThesauriRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace kendra {
15namespace Model {
16
20 public:
21 AWS_KENDRA_API ListThesauriRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ListThesauri"; }
28
29 AWS_KENDRA_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetIndexId() const { return m_indexId; }
38 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
39 template <typename IndexIdT = Aws::String>
40 void SetIndexId(IndexIdT&& value) {
41 m_indexIdHasBeenSet = true;
42 m_indexId = std::forward<IndexIdT>(value);
43 }
44 template <typename IndexIdT = Aws::String>
45 ListThesauriRequest& WithIndexId(IndexIdT&& value) {
46 SetIndexId(std::forward<IndexIdT>(value));
47 return *this;
48 }
50
52
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
66 ListThesauriRequest& WithNextToken(NextTokenT&& value) {
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) {
79 m_maxResultsHasBeenSet = true;
80 m_maxResults = value;
81 }
83 SetMaxResults(value);
84 return *this;
85 }
87 private:
88 Aws::String m_indexId;
89 bool m_indexIdHasBeenSet = false;
90
91 Aws::String m_nextToken;
92 bool m_nextTokenHasBeenSet = false;
93
94 int m_maxResults{0};
95 bool m_maxResultsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace kendra
100} // namespace Aws
ListThesauriRequest & WithMaxResults(int value)
AWS_KENDRA_API ListThesauriRequest()=default
AWS_KENDRA_API Aws::String SerializePayload() const override
ListThesauriRequest & WithNextToken(NextTokenT &&value)
ListThesauriRequest & WithIndexId(IndexIdT &&value)
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String