AWS SDK for C++

AWS SDK for C++ Version 1.11.838

Loading...
Searching...
No Matches
SearchAssetsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/SearchFilterClause.h>
11#include <aws/glue/model/SearchSort.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API SearchAssetsRequest() = 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 "SearchAssets"; }
30
31 AWS_GLUE_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetSearchText() const { return m_searchText; }
41 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
42 template <typename SearchTextT = Aws::String>
43 void SetSearchText(SearchTextT&& value) {
44 m_searchTextHasBeenSet = true;
45 m_searchText = std::forward<SearchTextT>(value);
46 }
47 template <typename SearchTextT = Aws::String>
48 SearchAssetsRequest& WithSearchText(SearchTextT&& value) {
49 SetSearchText(std::forward<SearchTextT>(value));
50 return *this;
51 }
53
55
58 inline int GetMaxResults() const { return m_maxResults; }
59 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 inline void SetMaxResults(int value) {
61 m_maxResultsHasBeenSet = true;
62 m_maxResults = value;
63 }
65 SetMaxResults(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
82 SearchAssetsRequest& WithNextToken(NextTokenT&& value) {
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87
89
92 inline const SearchSort& GetSort() const { return m_sort; }
93 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
94 template <typename SortT = SearchSort>
95 void SetSort(SortT&& value) {
96 m_sortHasBeenSet = true;
97 m_sort = std::forward<SortT>(value);
98 }
99 template <typename SortT = SearchSort>
101 SetSort(std::forward<SortT>(value));
102 return *this;
103 }
105
107
111 inline const SearchFilterClause& GetFilterClause() const { return m_filterClause; }
112 inline bool FilterClauseHasBeenSet() const { return m_filterClauseHasBeenSet; }
113 template <typename FilterClauseT = SearchFilterClause>
114 void SetFilterClause(FilterClauseT&& value) {
115 m_filterClauseHasBeenSet = true;
116 m_filterClause = std::forward<FilterClauseT>(value);
117 }
118 template <typename FilterClauseT = SearchFilterClause>
119 SearchAssetsRequest& WithFilterClause(FilterClauseT&& value) {
120 SetFilterClause(std::forward<FilterClauseT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_searchText;
126
127 int m_maxResults{0};
128
129 Aws::String m_nextToken;
130
131 SearchSort m_sort;
132
133 SearchFilterClause m_filterClause;
134 bool m_searchTextHasBeenSet = false;
135 bool m_maxResultsHasBeenSet = false;
136 bool m_nextTokenHasBeenSet = false;
137 bool m_sortHasBeenSet = false;
138 bool m_filterClauseHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Glue
143} // namespace Aws
const Aws::String & GetNextToken() const
SearchAssetsRequest & WithSort(SortT &&value)
SearchAssetsRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetSearchText() const
AWS_GLUE_API SearchAssetsRequest()=default
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetFilterClause(FilterClauseT &&value)
SearchAssetsRequest & WithMaxResults(int value)
AWS_GLUE_API Aws::String SerializePayload() const override
const SearchFilterClause & GetFilterClause() const
virtual const char * GetServiceRequestName() const override
SearchAssetsRequest & WithSearchText(SearchTextT &&value)
SearchAssetsRequest & WithFilterClause(FilterClauseT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String