AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
GetSearchJobResult.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearch_EXPORTS.h>
8#include <aws/backupsearch/model/CurrentSearchProgress.h>
9#include <aws/backupsearch/model/ItemFilters.h>
10#include <aws/backupsearch/model/SearchJobState.h>
11#include <aws/backupsearch/model/SearchScope.h>
12#include <aws/backupsearch/model/SearchScopeSummary.h>
13#include <aws/core/http/HttpResponse.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace BackupSearch {
29namespace Model {
31 public:
32 AWS_BACKUPSEARCH_API GetSearchJobResult() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 GetSearchJobResult& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
60 inline const SearchScopeSummary& GetSearchScopeSummary() const { return m_searchScopeSummary; }
61 template <typename SearchScopeSummaryT = SearchScopeSummary>
62 void SetSearchScopeSummary(SearchScopeSummaryT&& value) {
63 m_searchScopeSummaryHasBeenSet = true;
64 m_searchScopeSummary = std::forward<SearchScopeSummaryT>(value);
65 }
66 template <typename SearchScopeSummaryT = SearchScopeSummary>
67 GetSearchJobResult& WithSearchScopeSummary(SearchScopeSummaryT&& value) {
68 SetSearchScopeSummary(std::forward<SearchScopeSummaryT>(value));
69 return *this;
70 }
72
74
78 inline const CurrentSearchProgress& GetCurrentSearchProgress() const { return m_currentSearchProgress; }
79 template <typename CurrentSearchProgressT = CurrentSearchProgress>
80 void SetCurrentSearchProgress(CurrentSearchProgressT&& value) {
81 m_currentSearchProgressHasBeenSet = true;
82 m_currentSearchProgress = std::forward<CurrentSearchProgressT>(value);
83 }
84 template <typename CurrentSearchProgressT = CurrentSearchProgress>
85 GetSearchJobResult& WithCurrentSearchProgress(CurrentSearchProgressT&& value) {
86 SetCurrentSearchProgress(std::forward<CurrentSearchProgressT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
99 template <typename StatusMessageT = Aws::String>
100 void SetStatusMessage(StatusMessageT&& value) {
101 m_statusMessageHasBeenSet = true;
102 m_statusMessage = std::forward<StatusMessageT>(value);
103 }
104 template <typename StatusMessageT = Aws::String>
105 GetSearchJobResult& WithStatusMessage(StatusMessageT&& value) {
106 SetStatusMessage(std::forward<StatusMessageT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
117 template <typename EncryptionKeyArnT = Aws::String>
118 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
119 m_encryptionKeyArnHasBeenSet = true;
120 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
121 }
122 template <typename EncryptionKeyArnT = Aws::String>
123 GetSearchJobResult& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
124 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
125 return *this;
126 }
128
130
136 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
137 template <typename CompletionTimeT = Aws::Utils::DateTime>
138 void SetCompletionTime(CompletionTimeT&& value) {
139 m_completionTimeHasBeenSet = true;
140 m_completionTime = std::forward<CompletionTimeT>(value);
141 }
142 template <typename CompletionTimeT = Aws::Utils::DateTime>
143 GetSearchJobResult& WithCompletionTime(CompletionTimeT&& value) {
144 SetCompletionTime(std::forward<CompletionTimeT>(value));
145 return *this;
146 }
148
150
156 inline SearchJobState GetStatus() const { return m_status; }
157 inline void SetStatus(SearchJobState value) {
158 m_statusHasBeenSet = true;
159 m_status = value;
160 }
162 SetStatus(value);
163 return *this;
164 }
166
168
171 inline const SearchScope& GetSearchScope() const { return m_searchScope; }
172 template <typename SearchScopeT = SearchScope>
173 void SetSearchScope(SearchScopeT&& value) {
174 m_searchScopeHasBeenSet = true;
175 m_searchScope = std::forward<SearchScopeT>(value);
176 }
177 template <typename SearchScopeT = SearchScope>
178 GetSearchJobResult& WithSearchScope(SearchScopeT&& value) {
179 SetSearchScope(std::forward<SearchScopeT>(value));
180 return *this;
181 }
183
185
189 inline const ItemFilters& GetItemFilters() const { return m_itemFilters; }
190 template <typename ItemFiltersT = ItemFilters>
191 void SetItemFilters(ItemFiltersT&& value) {
192 m_itemFiltersHasBeenSet = true;
193 m_itemFilters = std::forward<ItemFiltersT>(value);
194 }
195 template <typename ItemFiltersT = ItemFilters>
196 GetSearchJobResult& WithItemFilters(ItemFiltersT&& value) {
197 SetItemFilters(std::forward<ItemFiltersT>(value));
198 return *this;
199 }
201
203
209 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
210 template <typename CreationTimeT = Aws::Utils::DateTime>
211 void SetCreationTime(CreationTimeT&& value) {
212 m_creationTimeHasBeenSet = true;
213 m_creationTime = std::forward<CreationTimeT>(value);
214 }
215 template <typename CreationTimeT = Aws::Utils::DateTime>
216 GetSearchJobResult& WithCreationTime(CreationTimeT&& value) {
217 SetCreationTime(std::forward<CreationTimeT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::String& GetSearchJobIdentifier() const { return m_searchJobIdentifier; }
227 template <typename SearchJobIdentifierT = Aws::String>
228 void SetSearchJobIdentifier(SearchJobIdentifierT&& value) {
229 m_searchJobIdentifierHasBeenSet = true;
230 m_searchJobIdentifier = std::forward<SearchJobIdentifierT>(value);
231 }
232 template <typename SearchJobIdentifierT = Aws::String>
233 GetSearchJobResult& WithSearchJobIdentifier(SearchJobIdentifierT&& value) {
234 SetSearchJobIdentifier(std::forward<SearchJobIdentifierT>(value));
235 return *this;
236 }
238
240
244 inline const Aws::String& GetSearchJobArn() const { return m_searchJobArn; }
245 template <typename SearchJobArnT = Aws::String>
246 void SetSearchJobArn(SearchJobArnT&& value) {
247 m_searchJobArnHasBeenSet = true;
248 m_searchJobArn = std::forward<SearchJobArnT>(value);
249 }
250 template <typename SearchJobArnT = Aws::String>
251 GetSearchJobResult& WithSearchJobArn(SearchJobArnT&& value) {
252 SetSearchJobArn(std::forward<SearchJobArnT>(value));
253 return *this;
254 }
256
258
259 inline const Aws::String& GetRequestId() const { return m_requestId; }
260 template <typename RequestIdT = Aws::String>
261 void SetRequestId(RequestIdT&& value) {
262 m_requestIdHasBeenSet = true;
263 m_requestId = std::forward<RequestIdT>(value);
264 }
265 template <typename RequestIdT = Aws::String>
266 GetSearchJobResult& WithRequestId(RequestIdT&& value) {
267 SetRequestId(std::forward<RequestIdT>(value));
268 return *this;
269 }
271 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
272
273 private:
274 Aws::String m_name;
275
276 SearchScopeSummary m_searchScopeSummary;
277
278 CurrentSearchProgress m_currentSearchProgress;
279
280 Aws::String m_statusMessage;
281
282 Aws::String m_encryptionKeyArn;
283
284 Aws::Utils::DateTime m_completionTime{};
285
287
288 SearchScope m_searchScope;
289
290 ItemFilters m_itemFilters;
291
292 Aws::Utils::DateTime m_creationTime{};
293
294 Aws::String m_searchJobIdentifier;
295
296 Aws::String m_searchJobArn;
297
298 Aws::String m_requestId;
299 Aws::Http::HttpResponseCode m_HttpResponseCode;
300 bool m_nameHasBeenSet = false;
301 bool m_searchScopeSummaryHasBeenSet = false;
302 bool m_currentSearchProgressHasBeenSet = false;
303 bool m_statusMessageHasBeenSet = false;
304 bool m_encryptionKeyArnHasBeenSet = false;
305 bool m_completionTimeHasBeenSet = false;
306 bool m_statusHasBeenSet = false;
307 bool m_searchScopeHasBeenSet = false;
308 bool m_itemFiltersHasBeenSet = false;
309 bool m_creationTimeHasBeenSet = false;
310 bool m_searchJobIdentifierHasBeenSet = false;
311 bool m_searchJobArnHasBeenSet = false;
312 bool m_requestIdHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace BackupSearch
317} // namespace Aws
const SearchScopeSummary & GetSearchScopeSummary() const
GetSearchJobResult & WithRequestId(RequestIdT &&value)
GetSearchJobResult & WithCreationTime(CreationTimeT &&value)
GetSearchJobResult & WithCompletionTime(CompletionTimeT &&value)
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
GetSearchJobResult & WithSearchScope(SearchScopeT &&value)
GetSearchJobResult & WithStatusMessage(StatusMessageT &&value)
void SetCurrentSearchProgress(CurrentSearchProgressT &&value)
void SetSearchScopeSummary(SearchScopeSummaryT &&value)
GetSearchJobResult & WithCurrentSearchProgress(CurrentSearchProgressT &&value)
GetSearchJobResult & WithItemFilters(ItemFiltersT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const CurrentSearchProgress & GetCurrentSearchProgress() const
const Aws::Utils::DateTime & GetCompletionTime() const
GetSearchJobResult & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
GetSearchJobResult & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetCompletionTime(CompletionTimeT &&value)
GetSearchJobResult & WithSearchScopeSummary(SearchScopeSummaryT &&value)
GetSearchJobResult & WithSearchJobArn(SearchJobArnT &&value)
AWS_BACKUPSEARCH_API GetSearchJobResult()=default
GetSearchJobResult & WithStatus(SearchJobState value)
GetSearchJobResult & WithSearchJobIdentifier(SearchJobIdentifierT &&value)
void SetSearchJobIdentifier(SearchJobIdentifierT &&value)
AWS_BACKUPSEARCH_API GetSearchJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BACKUPSEARCH_API GetSearchJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue