AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
SearchCasesRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/CaseFilter.h>
10#include <aws/connectcases/model/FieldIdentifier.h>
11#include <aws/connectcases/model/Sort.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ConnectCases {
19namespace Model {
20
24 public:
25 AWS_CONNECTCASES_API SearchCasesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SearchCases"; }
32
33 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetDomainId() const { return m_domainId; }
40 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
41 template <typename DomainIdT = Aws::String>
42 void SetDomainId(DomainIdT&& value) {
43 m_domainIdHasBeenSet = true;
44 m_domainId = std::forward<DomainIdT>(value);
45 }
46 template <typename DomainIdT = Aws::String>
47 SearchCasesRequest& WithDomainId(DomainIdT&& value) {
48 SetDomainId(std::forward<DomainIdT>(value));
49 return *this;
50 }
52
54
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
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template <typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) {
79 m_nextTokenHasBeenSet = true;
80 m_nextToken = std::forward<NextTokenT>(value);
81 }
82 template <typename NextTokenT = Aws::String>
83 SearchCasesRequest& WithNextToken(NextTokenT&& value) {
84 SetNextToken(std::forward<NextTokenT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetSearchTerm() const { return m_searchTerm; }
94 inline bool SearchTermHasBeenSet() const { return m_searchTermHasBeenSet; }
95 template <typename SearchTermT = Aws::String>
96 void SetSearchTerm(SearchTermT&& value) {
97 m_searchTermHasBeenSet = true;
98 m_searchTerm = std::forward<SearchTermT>(value);
99 }
100 template <typename SearchTermT = Aws::String>
101 SearchCasesRequest& WithSearchTerm(SearchTermT&& value) {
102 SetSearchTerm(std::forward<SearchTermT>(value));
103 return *this;
104 }
106
108
111 inline const CaseFilter& GetFilter() const { return m_filter; }
112 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
113 template <typename FilterT = CaseFilter>
114 void SetFilter(FilterT&& value) {
115 m_filterHasBeenSet = true;
116 m_filter = std::forward<FilterT>(value);
117 }
118 template <typename FilterT = CaseFilter>
119 SearchCasesRequest& WithFilter(FilterT&& value) {
120 SetFilter(std::forward<FilterT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::Vector<Sort>& GetSorts() const { return m_sorts; }
131 inline bool SortsHasBeenSet() const { return m_sortsHasBeenSet; }
132 template <typename SortsT = Aws::Vector<Sort>>
133 void SetSorts(SortsT&& value) {
134 m_sortsHasBeenSet = true;
135 m_sorts = std::forward<SortsT>(value);
136 }
137 template <typename SortsT = Aws::Vector<Sort>>
138 SearchCasesRequest& WithSorts(SortsT&& value) {
139 SetSorts(std::forward<SortsT>(value));
140 return *this;
141 }
142 template <typename SortsT = Sort>
143 SearchCasesRequest& AddSorts(SortsT&& value) {
144 m_sortsHasBeenSet = true;
145 m_sorts.emplace_back(std::forward<SortsT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Vector<FieldIdentifier>& GetFields() const { return m_fields; }
155 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
156 template <typename FieldsT = Aws::Vector<FieldIdentifier>>
157 void SetFields(FieldsT&& value) {
158 m_fieldsHasBeenSet = true;
159 m_fields = std::forward<FieldsT>(value);
160 }
161 template <typename FieldsT = Aws::Vector<FieldIdentifier>>
162 SearchCasesRequest& WithFields(FieldsT&& value) {
163 SetFields(std::forward<FieldsT>(value));
164 return *this;
165 }
166 template <typename FieldsT = FieldIdentifier>
167 SearchCasesRequest& AddFields(FieldsT&& value) {
168 m_fieldsHasBeenSet = true;
169 m_fields.emplace_back(std::forward<FieldsT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_domainId;
175
176 int m_maxResults{0};
177
178 Aws::String m_nextToken;
179
180 Aws::String m_searchTerm;
181
182 CaseFilter m_filter;
183
184 Aws::Vector<Sort> m_sorts;
185
187 bool m_domainIdHasBeenSet = false;
188 bool m_maxResultsHasBeenSet = false;
189 bool m_nextTokenHasBeenSet = false;
190 bool m_searchTermHasBeenSet = false;
191 bool m_filterHasBeenSet = false;
192 bool m_sortsHasBeenSet = false;
193 bool m_fieldsHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace ConnectCases
198} // namespace Aws
SearchCasesRequest & WithDomainId(DomainIdT &&value)
SearchCasesRequest & WithSearchTerm(SearchTermT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
SearchCasesRequest & AddFields(FieldsT &&value)
SearchCasesRequest & WithSorts(SortsT &&value)
SearchCasesRequest & WithMaxResults(int value)
AWS_CONNECTCASES_API SearchCasesRequest()=default
virtual const char * GetServiceRequestName() const override
SearchCasesRequest & WithFields(FieldsT &&value)
const Aws::Vector< Sort > & GetSorts() const
const Aws::Vector< FieldIdentifier > & GetFields() const
SearchCasesRequest & WithFilter(FilterT &&value)
SearchCasesRequest & WithNextToken(NextTokenT &&value)
SearchCasesRequest & AddSorts(SortsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector