AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SearchJobSummary.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/SearchJobState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/backupsearch/model/SearchScopeSummary.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BackupSearch
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_BACKUPSEARCH_API SearchJobSummary() = default;
38 AWS_BACKUPSEARCH_API SearchJobSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BACKUPSEARCH_API SearchJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetSearchJobIdentifier() const { return m_searchJobIdentifier; }
48 inline bool SearchJobIdentifierHasBeenSet() const { return m_searchJobIdentifierHasBeenSet; }
49 template<typename SearchJobIdentifierT = Aws::String>
50 void SetSearchJobIdentifier(SearchJobIdentifierT&& value) { m_searchJobIdentifierHasBeenSet = true; m_searchJobIdentifier = std::forward<SearchJobIdentifierT>(value); }
51 template<typename SearchJobIdentifierT = Aws::String>
52 SearchJobSummary& WithSearchJobIdentifier(SearchJobIdentifierT&& value) { SetSearchJobIdentifier(std::forward<SearchJobIdentifierT>(value)); return *this;}
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) { m_searchJobArnHasBeenSet = true; m_searchJobArn = std::forward<SearchJobArnT>(value); }
64 template<typename SearchJobArnT = Aws::String>
65 SearchJobSummary& WithSearchJobArn(SearchJobArnT&& value) { SetSearchJobArn(std::forward<SearchJobArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 SearchJobSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
84 inline SearchJobState GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(SearchJobState value) { m_statusHasBeenSet = true; m_status = value; }
87 inline SearchJobSummary& WithStatus(SearchJobState value) { SetStatus(value); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
95 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
96 template<typename CreationTimeT = Aws::Utils::DateTime>
97 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
98 template<typename CreationTimeT = Aws::Utils::DateTime>
99 SearchJobSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
107 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
108 template<typename CompletionTimeT = Aws::Utils::DateTime>
109 void SetCompletionTime(CompletionTimeT&& value) { m_completionTimeHasBeenSet = true; m_completionTime = std::forward<CompletionTimeT>(value); }
110 template<typename CompletionTimeT = Aws::Utils::DateTime>
111 SearchJobSummary& WithCompletionTime(CompletionTimeT&& value) { SetCompletionTime(std::forward<CompletionTimeT>(value)); return *this;}
113
115
121 inline const SearchScopeSummary& GetSearchScopeSummary() const { return m_searchScopeSummary; }
122 inline bool SearchScopeSummaryHasBeenSet() const { return m_searchScopeSummaryHasBeenSet; }
123 template<typename SearchScopeSummaryT = SearchScopeSummary>
124 void SetSearchScopeSummary(SearchScopeSummaryT&& value) { m_searchScopeSummaryHasBeenSet = true; m_searchScopeSummary = std::forward<SearchScopeSummaryT>(value); }
125 template<typename SearchScopeSummaryT = SearchScopeSummary>
126 SearchJobSummary& WithSearchScopeSummary(SearchScopeSummaryT&& value) { SetSearchScopeSummary(std::forward<SearchScopeSummaryT>(value)); return *this;}
128
130
136 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
137 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
138 template<typename StatusMessageT = Aws::String>
139 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
140 template<typename StatusMessageT = Aws::String>
141 SearchJobSummary& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
143 private:
144
145 Aws::String m_searchJobIdentifier;
146 bool m_searchJobIdentifierHasBeenSet = false;
147
148 Aws::String m_searchJobArn;
149 bool m_searchJobArnHasBeenSet = false;
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
155 bool m_statusHasBeenSet = false;
156
157 Aws::Utils::DateTime m_creationTime{};
158 bool m_creationTimeHasBeenSet = false;
159
160 Aws::Utils::DateTime m_completionTime{};
161 bool m_completionTimeHasBeenSet = false;
162
163 SearchScopeSummary m_searchScopeSummary;
164 bool m_searchScopeSummaryHasBeenSet = false;
165
166 Aws::String m_statusMessage;
167 bool m_statusMessageHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace BackupSearch
172} // 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