AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
SearchKnowledgeBasesRequest.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/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/KnowledgeBaseSearchFilter.h>
12#include <aws/quicksight/model/KnowledgeBaseSortBy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace QuickSight {
18namespace Model {
19
23 public:
24 AWS_QUICKSIGHT_API SearchKnowledgeBasesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "SearchKnowledgeBases"; }
31
32 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
40 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
41 template <typename AwsAccountIdT = Aws::String>
42 void SetAwsAccountId(AwsAccountIdT&& value) {
43 m_awsAccountIdHasBeenSet = true;
44 m_awsAccountId = std::forward<AwsAccountIdT>(value);
45 }
46 template <typename AwsAccountIdT = Aws::String>
48 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
49 return *this;
50 }
52
54
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>
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
89
92 inline const Aws::Vector<KnowledgeBaseSearchFilter>& GetFilters() const { return m_filters; }
93 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
94 template <typename FiltersT = Aws::Vector<KnowledgeBaseSearchFilter>>
95 void SetFilters(FiltersT&& value) {
96 m_filtersHasBeenSet = true;
97 m_filters = std::forward<FiltersT>(value);
98 }
99 template <typename FiltersT = Aws::Vector<KnowledgeBaseSearchFilter>>
101 SetFilters(std::forward<FiltersT>(value));
102 return *this;
103 }
104 template <typename FiltersT = KnowledgeBaseSearchFilter>
106 m_filtersHasBeenSet = true;
107 m_filters.emplace_back(std::forward<FiltersT>(value));
108 return *this;
109 }
111
113
116 inline const KnowledgeBaseSortBy& GetSortBy() const { return m_sortBy; }
117 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
118 template <typename SortByT = KnowledgeBaseSortBy>
119 void SetSortBy(SortByT&& value) {
120 m_sortByHasBeenSet = true;
121 m_sortBy = std::forward<SortByT>(value);
122 }
123 template <typename SortByT = KnowledgeBaseSortBy>
125 SetSortBy(std::forward<SortByT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_awsAccountId;
131
132 Aws::String m_nextToken;
133
134 int m_maxResults{0};
135
137
138 KnowledgeBaseSortBy m_sortBy;
139 bool m_awsAccountIdHasBeenSet = false;
140 bool m_nextTokenHasBeenSet = false;
141 bool m_maxResultsHasBeenSet = false;
142 bool m_filtersHasBeenSet = false;
143 bool m_sortByHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace QuickSight
148} // namespace Aws
SearchKnowledgeBasesRequest & WithNextToken(NextTokenT &&value)
SearchKnowledgeBasesRequest & WithAwsAccountId(AwsAccountIdT &&value)
SearchKnowledgeBasesRequest & WithSortBy(SortByT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
SearchKnowledgeBasesRequest & AddFilters(FiltersT &&value)
AWS_QUICKSIGHT_API SearchKnowledgeBasesRequest()=default
const Aws::Vector< KnowledgeBaseSearchFilter > & GetFilters() const
SearchKnowledgeBasesRequest & WithFilters(FiltersT &&value)
SearchKnowledgeBasesRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector