AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetSearchJobResult.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/backupsearch/model/SearchScopeSummary.h>
10#include <aws/backupsearch/model/CurrentSearchProgress.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/backupsearch/model/SearchJobState.h>
13#include <aws/backupsearch/model/SearchScope.h>
14#include <aws/backupsearch/model/ItemFilters.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace BackupSearch
30{
31namespace Model
32{
34 {
35 public:
36 AWS_BACKUPSEARCH_API GetSearchJobResult() = default;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 GetSearchJobResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
59 inline const SearchScopeSummary& GetSearchScopeSummary() const { return m_searchScopeSummary; }
60 template<typename SearchScopeSummaryT = SearchScopeSummary>
61 void SetSearchScopeSummary(SearchScopeSummaryT&& value) { m_searchScopeSummaryHasBeenSet = true; m_searchScopeSummary = std::forward<SearchScopeSummaryT>(value); }
62 template<typename SearchScopeSummaryT = SearchScopeSummary>
63 GetSearchJobResult& WithSearchScopeSummary(SearchScopeSummaryT&& value) { SetSearchScopeSummary(std::forward<SearchScopeSummaryT>(value)); return *this;}
65
67
71 inline const CurrentSearchProgress& GetCurrentSearchProgress() const { return m_currentSearchProgress; }
72 template<typename CurrentSearchProgressT = CurrentSearchProgress>
73 void SetCurrentSearchProgress(CurrentSearchProgressT&& value) { m_currentSearchProgressHasBeenSet = true; m_currentSearchProgress = std::forward<CurrentSearchProgressT>(value); }
74 template<typename CurrentSearchProgressT = CurrentSearchProgress>
75 GetSearchJobResult& WithCurrentSearchProgress(CurrentSearchProgressT&& value) { SetCurrentSearchProgress(std::forward<CurrentSearchProgressT>(value)); return *this;}
77
79
85 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
86 template<typename StatusMessageT = Aws::String>
87 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
88 template<typename StatusMessageT = Aws::String>
89 GetSearchJobResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
91
93
97 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
98 template<typename EncryptionKeyArnT = Aws::String>
99 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
100 template<typename EncryptionKeyArnT = Aws::String>
101 GetSearchJobResult& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
103
105
111 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
112 template<typename CompletionTimeT = Aws::Utils::DateTime>
113 void SetCompletionTime(CompletionTimeT&& value) { m_completionTimeHasBeenSet = true; m_completionTime = std::forward<CompletionTimeT>(value); }
114 template<typename CompletionTimeT = Aws::Utils::DateTime>
115 GetSearchJobResult& WithCompletionTime(CompletionTimeT&& value) { SetCompletionTime(std::forward<CompletionTimeT>(value)); return *this;}
117
119
125 inline SearchJobState GetStatus() const { return m_status; }
126 inline void SetStatus(SearchJobState value) { m_statusHasBeenSet = true; m_status = value; }
127 inline GetSearchJobResult& WithStatus(SearchJobState value) { SetStatus(value); return *this;}
129
131
134 inline const SearchScope& GetSearchScope() const { return m_searchScope; }
135 template<typename SearchScopeT = SearchScope>
136 void SetSearchScope(SearchScopeT&& value) { m_searchScopeHasBeenSet = true; m_searchScope = std::forward<SearchScopeT>(value); }
137 template<typename SearchScopeT = SearchScope>
138 GetSearchJobResult& WithSearchScope(SearchScopeT&& value) { SetSearchScope(std::forward<SearchScopeT>(value)); return *this;}
140
142
146 inline const ItemFilters& GetItemFilters() const { return m_itemFilters; }
147 template<typename ItemFiltersT = ItemFilters>
148 void SetItemFilters(ItemFiltersT&& value) { m_itemFiltersHasBeenSet = true; m_itemFilters = std::forward<ItemFiltersT>(value); }
149 template<typename ItemFiltersT = ItemFilters>
150 GetSearchJobResult& WithItemFilters(ItemFiltersT&& value) { SetItemFilters(std::forward<ItemFiltersT>(value)); return *this;}
152
154
160 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
161 template<typename CreationTimeT = Aws::Utils::DateTime>
162 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
163 template<typename CreationTimeT = Aws::Utils::DateTime>
164 GetSearchJobResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
166
168
171 inline const Aws::String& GetSearchJobIdentifier() const { return m_searchJobIdentifier; }
172 template<typename SearchJobIdentifierT = Aws::String>
173 void SetSearchJobIdentifier(SearchJobIdentifierT&& value) { m_searchJobIdentifierHasBeenSet = true; m_searchJobIdentifier = std::forward<SearchJobIdentifierT>(value); }
174 template<typename SearchJobIdentifierT = Aws::String>
175 GetSearchJobResult& WithSearchJobIdentifier(SearchJobIdentifierT&& value) { SetSearchJobIdentifier(std::forward<SearchJobIdentifierT>(value)); return *this;}
177
179
183 inline const Aws::String& GetSearchJobArn() const { return m_searchJobArn; }
184 template<typename SearchJobArnT = Aws::String>
185 void SetSearchJobArn(SearchJobArnT&& value) { m_searchJobArnHasBeenSet = true; m_searchJobArn = std::forward<SearchJobArnT>(value); }
186 template<typename SearchJobArnT = Aws::String>
187 GetSearchJobResult& WithSearchJobArn(SearchJobArnT&& value) { SetSearchJobArn(std::forward<SearchJobArnT>(value)); return *this;}
189
191
192 inline const Aws::String& GetRequestId() const { return m_requestId; }
193 template<typename RequestIdT = Aws::String>
194 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
195 template<typename RequestIdT = Aws::String>
196 GetSearchJobResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
198 private:
199
200 Aws::String m_name;
201 bool m_nameHasBeenSet = false;
202
203 SearchScopeSummary m_searchScopeSummary;
204 bool m_searchScopeSummaryHasBeenSet = false;
205
206 CurrentSearchProgress m_currentSearchProgress;
207 bool m_currentSearchProgressHasBeenSet = false;
208
209 Aws::String m_statusMessage;
210 bool m_statusMessageHasBeenSet = false;
211
212 Aws::String m_encryptionKeyArn;
213 bool m_encryptionKeyArnHasBeenSet = false;
214
215 Aws::Utils::DateTime m_completionTime{};
216 bool m_completionTimeHasBeenSet = false;
217
219 bool m_statusHasBeenSet = false;
220
221 SearchScope m_searchScope;
222 bool m_searchScopeHasBeenSet = false;
223
224 ItemFilters m_itemFilters;
225 bool m_itemFiltersHasBeenSet = false;
226
227 Aws::Utils::DateTime m_creationTime{};
228 bool m_creationTimeHasBeenSet = false;
229
230 Aws::String m_searchJobIdentifier;
231 bool m_searchJobIdentifierHasBeenSet = false;
232
233 Aws::String m_searchJobArn;
234 bool m_searchJobArnHasBeenSet = false;
235
236 Aws::String m_requestId;
237 bool m_requestIdHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace BackupSearch
242} // 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)
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