AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
SearchRelevantContentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/AttributeFilter.h>
11#include <aws/qbusiness/model/ContentSource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QBusiness {
17namespace Model {
18
22 public:
23 AWS_QBUSINESS_API SearchRelevantContentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SearchRelevantContent"; }
30
31 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
38 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
39 template <typename ApplicationIdT = Aws::String>
41 m_applicationIdHasBeenSet = true;
42 m_applicationId = std::forward<ApplicationIdT>(value);
43 }
44 template <typename ApplicationIdT = Aws::String>
46 SetApplicationId(std::forward<ApplicationIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetQueryText() const { return m_queryText; }
56 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
57 template <typename QueryTextT = Aws::String>
58 void SetQueryText(QueryTextT&& value) {
59 m_queryTextHasBeenSet = true;
60 m_queryText = std::forward<QueryTextT>(value);
61 }
62 template <typename QueryTextT = Aws::String>
64 SetQueryText(std::forward<QueryTextT>(value));
65 return *this;
66 }
68
70
73 inline const ContentSource& GetContentSource() const { return m_contentSource; }
74 inline bool ContentSourceHasBeenSet() const { return m_contentSourceHasBeenSet; }
75 template <typename ContentSourceT = ContentSource>
77 m_contentSourceHasBeenSet = true;
78 m_contentSource = std::forward<ContentSourceT>(value);
79 }
80 template <typename ContentSourceT = ContentSource>
82 SetContentSource(std::forward<ContentSourceT>(value));
83 return *this;
84 }
86
88
89 inline const AttributeFilter& GetAttributeFilter() const { return m_attributeFilter; }
90 inline bool AttributeFilterHasBeenSet() const { return m_attributeFilterHasBeenSet; }
91 template <typename AttributeFilterT = AttributeFilter>
93 m_attributeFilterHasBeenSet = true;
94 m_attributeFilter = std::forward<AttributeFilterT>(value);
95 }
96 template <typename AttributeFilterT = AttributeFilter>
98 SetAttributeFilter(std::forward<AttributeFilterT>(value));
99 return *this;
100 }
102
104
107 inline int GetMaxResults() const { return m_maxResults; }
108 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
109 inline void SetMaxResults(int value) {
110 m_maxResultsHasBeenSet = true;
111 m_maxResults = value;
112 }
114 SetMaxResults(value);
115 return *this;
116 }
118
120
124 inline const Aws::String& GetNextToken() const { return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 template <typename NextTokenT = Aws::String>
127 void SetNextToken(NextTokenT&& value) {
128 m_nextTokenHasBeenSet = true;
129 m_nextToken = std::forward<NextTokenT>(value);
130 }
131 template <typename NextTokenT = Aws::String>
133 SetNextToken(std::forward<NextTokenT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_applicationId;
139 bool m_applicationIdHasBeenSet = false;
140
141 Aws::String m_queryText;
142 bool m_queryTextHasBeenSet = false;
143
144 ContentSource m_contentSource;
145 bool m_contentSourceHasBeenSet = false;
146
147 AttributeFilter m_attributeFilter;
148 bool m_attributeFilterHasBeenSet = false;
149
150 int m_maxResults{0};
151 bool m_maxResultsHasBeenSet = false;
152
153 Aws::String m_nextToken;
154 bool m_nextTokenHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace QBusiness
159} // namespace Aws
SearchRelevantContentRequest & WithNextToken(NextTokenT &&value)
AWS_QBUSINESS_API SearchRelevantContentRequest()=default
AWS_QBUSINESS_API Aws::String SerializePayload() const override
SearchRelevantContentRequest & WithAttributeFilter(AttributeFilterT &&value)
SearchRelevantContentRequest & WithApplicationId(ApplicationIdT &&value)
SearchRelevantContentRequest & WithContentSource(ContentSourceT &&value)
SearchRelevantContentRequest & WithQueryText(QueryTextT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String