AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
SearchJobSummary.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearch_EXPORTS.h>
8#include <aws/backupsearch/model/SearchJobState.h>
9#include <aws/backupsearch/model/SearchScopeSummary.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BackupSearch {
23namespace Model {
24
31 public:
32 AWS_BACKUPSEARCH_API SearchJobSummary() = default;
33 AWS_BACKUPSEARCH_API SearchJobSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BACKUPSEARCH_API SearchJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetSearchJobIdentifier() const { return m_searchJobIdentifier; }
42 inline bool SearchJobIdentifierHasBeenSet() const { return m_searchJobIdentifierHasBeenSet; }
43 template <typename SearchJobIdentifierT = Aws::String>
44 void SetSearchJobIdentifier(SearchJobIdentifierT&& value) {
45 m_searchJobIdentifierHasBeenSet = true;
46 m_searchJobIdentifier = std::forward<SearchJobIdentifierT>(value);
47 }
48 template <typename SearchJobIdentifierT = Aws::String>
49 SearchJobSummary& WithSearchJobIdentifier(SearchJobIdentifierT&& value) {
50 SetSearchJobIdentifier(std::forward<SearchJobIdentifierT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetSearchJobArn() const { return m_searchJobArn; }
61 inline bool SearchJobArnHasBeenSet() const { return m_searchJobArnHasBeenSet; }
62 template <typename SearchJobArnT = Aws::String>
63 void SetSearchJobArn(SearchJobArnT&& value) {
64 m_searchJobArnHasBeenSet = true;
65 m_searchJobArn = std::forward<SearchJobArnT>(value);
66 }
67 template <typename SearchJobArnT = Aws::String>
68 SearchJobSummary& WithSearchJobArn(SearchJobArnT&& value) {
69 SetSearchJobArn(std::forward<SearchJobArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 SearchJobSummary& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline SearchJobState GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(SearchJobState value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
113 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
114 template <typename CreationTimeT = Aws::Utils::DateTime>
115 void SetCreationTime(CreationTimeT&& value) {
116 m_creationTimeHasBeenSet = true;
117 m_creationTime = std::forward<CreationTimeT>(value);
118 }
119 template <typename CreationTimeT = Aws::Utils::DateTime>
120 SearchJobSummary& WithCreationTime(CreationTimeT&& value) {
121 SetCreationTime(std::forward<CreationTimeT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
131 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
132 template <typename CompletionTimeT = Aws::Utils::DateTime>
133 void SetCompletionTime(CompletionTimeT&& value) {
134 m_completionTimeHasBeenSet = true;
135 m_completionTime = std::forward<CompletionTimeT>(value);
136 }
137 template <typename CompletionTimeT = Aws::Utils::DateTime>
138 SearchJobSummary& WithCompletionTime(CompletionTimeT&& value) {
139 SetCompletionTime(std::forward<CompletionTimeT>(value));
140 return *this;
141 }
143
145
151 inline const SearchScopeSummary& GetSearchScopeSummary() const { return m_searchScopeSummary; }
152 inline bool SearchScopeSummaryHasBeenSet() const { return m_searchScopeSummaryHasBeenSet; }
153 template <typename SearchScopeSummaryT = SearchScopeSummary>
154 void SetSearchScopeSummary(SearchScopeSummaryT&& value) {
155 m_searchScopeSummaryHasBeenSet = true;
156 m_searchScopeSummary = std::forward<SearchScopeSummaryT>(value);
157 }
158 template <typename SearchScopeSummaryT = SearchScopeSummary>
159 SearchJobSummary& WithSearchScopeSummary(SearchScopeSummaryT&& value) {
160 SetSearchScopeSummary(std::forward<SearchScopeSummaryT>(value));
161 return *this;
162 }
164
166
172 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
173 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
174 template <typename StatusMessageT = Aws::String>
175 void SetStatusMessage(StatusMessageT&& value) {
176 m_statusMessageHasBeenSet = true;
177 m_statusMessage = std::forward<StatusMessageT>(value);
178 }
179 template <typename StatusMessageT = Aws::String>
180 SearchJobSummary& WithStatusMessage(StatusMessageT&& value) {
181 SetStatusMessage(std::forward<StatusMessageT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_searchJobIdentifier;
187
188 Aws::String m_searchJobArn;
189
190 Aws::String m_name;
191
193
194 Aws::Utils::DateTime m_creationTime{};
195
196 Aws::Utils::DateTime m_completionTime{};
197
198 SearchScopeSummary m_searchScopeSummary;
199
200 Aws::String m_statusMessage;
201 bool m_searchJobIdentifierHasBeenSet = false;
202 bool m_searchJobArnHasBeenSet = false;
203 bool m_nameHasBeenSet = false;
204 bool m_statusHasBeenSet = false;
205 bool m_creationTimeHasBeenSet = false;
206 bool m_completionTimeHasBeenSet = false;
207 bool m_searchScopeSummaryHasBeenSet = false;
208 bool m_statusMessageHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace BackupSearch
213} // namespace Aws
SearchJobSummary & WithStatus(SearchJobState value)
SearchJobSummary & WithSearchScopeSummary(SearchScopeSummaryT &&value)
SearchJobSummary & WithCompletionTime(CompletionTimeT &&value)
const Aws::Utils::DateTime & GetCompletionTime() const
void SetSearchScopeSummary(SearchScopeSummaryT &&value)
SearchJobSummary & WithSearchJobArn(SearchJobArnT &&value)
SearchJobSummary & WithStatusMessage(StatusMessageT &&value)
SearchJobSummary & WithCreationTime(CreationTimeT &&value)
const Aws::String & GetStatusMessage() const
void SetCreationTime(CreationTimeT &&value)
AWS_BACKUPSEARCH_API SearchJobSummary()=default
void SetCompletionTime(CompletionTimeT &&value)
AWS_BACKUPSEARCH_API SearchJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSearchJobIdentifier(SearchJobIdentifierT &&value)
SearchJobSummary & WithSearchJobIdentifier(SearchJobIdentifierT &&value)
const Aws::String & GetSearchJobArn() const
void SetStatusMessage(StatusMessageT &&value)
SearchJobSummary & WithName(NameT &&value)
const SearchScopeSummary & GetSearchScopeSummary() const
AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSearchJobIdentifier() const
const Aws::Utils::DateTime & GetCreationTime() const
AWS_BACKUPSEARCH_API SearchJobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetSearchJobArn(SearchJobArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue