AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
JobSummary.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/model/JobStatus.h>
9#include <aws/amplify/model/JobType.h>
10#include <aws/amplify/model/SourceUrlType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Amplify {
24namespace Model {
25
33 public:
34 AWS_AMPLIFY_API JobSummary() = default;
35 AWS_AMPLIFY_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFY_API JobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetJobArn() const { return m_jobArn; }
44 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
45 template <typename JobArnT = Aws::String>
46 void SetJobArn(JobArnT&& value) {
47 m_jobArnHasBeenSet = true;
48 m_jobArn = std::forward<JobArnT>(value);
49 }
50 template <typename JobArnT = Aws::String>
51 JobSummary& WithJobArn(JobArnT&& value) {
52 SetJobArn(std::forward<JobArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetJobId() const { return m_jobId; }
62 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
63 template <typename JobIdT = Aws::String>
64 void SetJobId(JobIdT&& value) {
65 m_jobIdHasBeenSet = true;
66 m_jobId = std::forward<JobIdT>(value);
67 }
68 template <typename JobIdT = Aws::String>
69 JobSummary& WithJobId(JobIdT&& value) {
70 SetJobId(std::forward<JobIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCommitId() const { return m_commitId; }
80 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
81 template <typename CommitIdT = Aws::String>
82 void SetCommitId(CommitIdT&& value) {
83 m_commitIdHasBeenSet = true;
84 m_commitId = std::forward<CommitIdT>(value);
85 }
86 template <typename CommitIdT = Aws::String>
87 JobSummary& WithCommitId(CommitIdT&& value) {
88 SetCommitId(std::forward<CommitIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetCommitMessage() const { return m_commitMessage; }
98 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
99 template <typename CommitMessageT = Aws::String>
100 void SetCommitMessage(CommitMessageT&& value) {
101 m_commitMessageHasBeenSet = true;
102 m_commitMessage = std::forward<CommitMessageT>(value);
103 }
104 template <typename CommitMessageT = Aws::String>
105 JobSummary& WithCommitMessage(CommitMessageT&& value) {
106 SetCommitMessage(std::forward<CommitMessageT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetCommitTime() const { return m_commitTime; }
116 inline bool CommitTimeHasBeenSet() const { return m_commitTimeHasBeenSet; }
117 template <typename CommitTimeT = Aws::Utils::DateTime>
118 void SetCommitTime(CommitTimeT&& value) {
119 m_commitTimeHasBeenSet = true;
120 m_commitTime = std::forward<CommitTimeT>(value);
121 }
122 template <typename CommitTimeT = Aws::Utils::DateTime>
123 JobSummary& WithCommitTime(CommitTimeT&& value) {
124 SetCommitTime(std::forward<CommitTimeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
134 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
135 template <typename StartTimeT = Aws::Utils::DateTime>
136 void SetStartTime(StartTimeT&& value) {
137 m_startTimeHasBeenSet = true;
138 m_startTime = std::forward<StartTimeT>(value);
139 }
140 template <typename StartTimeT = Aws::Utils::DateTime>
141 JobSummary& WithStartTime(StartTimeT&& value) {
142 SetStartTime(std::forward<StartTimeT>(value));
143 return *this;
144 }
146
148
151 inline JobStatus GetStatus() const { return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
153 inline void SetStatus(JobStatus value) {
154 m_statusHasBeenSet = true;
155 m_status = value;
156 }
158 SetStatus(value);
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
168 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
169 template <typename EndTimeT = Aws::Utils::DateTime>
170 void SetEndTime(EndTimeT&& value) {
171 m_endTimeHasBeenSet = true;
172 m_endTime = std::forward<EndTimeT>(value);
173 }
174 template <typename EndTimeT = Aws::Utils::DateTime>
175 JobSummary& WithEndTime(EndTimeT&& value) {
176 SetEndTime(std::forward<EndTimeT>(value));
177 return *this;
178 }
180
182
192 inline JobType GetJobType() const { return m_jobType; }
193 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
194 inline void SetJobType(JobType value) {
195 m_jobTypeHasBeenSet = true;
196 m_jobType = value;
197 }
199 SetJobType(value);
200 return *this;
201 }
203
205
210 inline const Aws::String& GetSourceUrl() const { return m_sourceUrl; }
211 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
212 template <typename SourceUrlT = Aws::String>
213 void SetSourceUrl(SourceUrlT&& value) {
214 m_sourceUrlHasBeenSet = true;
215 m_sourceUrl = std::forward<SourceUrlT>(value);
216 }
217 template <typename SourceUrlT = Aws::String>
218 JobSummary& WithSourceUrl(SourceUrlT&& value) {
219 SetSourceUrl(std::forward<SourceUrlT>(value));
220 return *this;
221 }
223
225
231 inline SourceUrlType GetSourceUrlType() const { return m_sourceUrlType; }
232 inline bool SourceUrlTypeHasBeenSet() const { return m_sourceUrlTypeHasBeenSet; }
233 inline void SetSourceUrlType(SourceUrlType value) {
234 m_sourceUrlTypeHasBeenSet = true;
235 m_sourceUrlType = value;
236 }
238 SetSourceUrlType(value);
239 return *this;
240 }
242 private:
243 Aws::String m_jobArn;
244 bool m_jobArnHasBeenSet = false;
245
246 Aws::String m_jobId;
247 bool m_jobIdHasBeenSet = false;
248
249 Aws::String m_commitId;
250 bool m_commitIdHasBeenSet = false;
251
252 Aws::String m_commitMessage;
253 bool m_commitMessageHasBeenSet = false;
254
255 Aws::Utils::DateTime m_commitTime{};
256 bool m_commitTimeHasBeenSet = false;
257
258 Aws::Utils::DateTime m_startTime{};
259 bool m_startTimeHasBeenSet = false;
260
262 bool m_statusHasBeenSet = false;
263
264 Aws::Utils::DateTime m_endTime{};
265 bool m_endTimeHasBeenSet = false;
266
267 JobType m_jobType{JobType::NOT_SET};
268 bool m_jobTypeHasBeenSet = false;
269
270 Aws::String m_sourceUrl;
271 bool m_sourceUrlHasBeenSet = false;
272
273 SourceUrlType m_sourceUrlType{SourceUrlType::NOT_SET};
274 bool m_sourceUrlTypeHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace Amplify
279} // namespace Aws
void SetStartTime(StartTimeT &&value)
Definition JobSummary.h:136
JobSummary & WithJobId(JobIdT &&value)
Definition JobSummary.h:69
JobSummary & WithStatus(JobStatus value)
Definition JobSummary.h:157
JobSummary & WithStartTime(StartTimeT &&value)
Definition JobSummary.h:141
const Aws::Utils::DateTime & GetEndTime() const
Definition JobSummary.h:167
SourceUrlType GetSourceUrlType() const
Definition JobSummary.h:231
const Aws::Utils::DateTime & GetCommitTime() const
Definition JobSummary.h:115
void SetEndTime(EndTimeT &&value)
Definition JobSummary.h:170
const Aws::String & GetJobArn() const
Definition JobSummary.h:43
void SetCommitMessage(CommitMessageT &&value)
Definition JobSummary.h:100
const Aws::String & GetJobId() const
Definition JobSummary.h:61
AWS_AMPLIFY_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & WithCommitId(CommitIdT &&value)
Definition JobSummary.h:87
JobSummary & WithSourceUrlType(SourceUrlType value)
Definition JobSummary.h:237
void SetJobType(JobType value)
Definition JobSummary.h:194
void SetJobArn(JobArnT &&value)
Definition JobSummary.h:46
const Aws::String & GetSourceUrl() const
Definition JobSummary.h:210
const Aws::String & GetCommitMessage() const
Definition JobSummary.h:97
JobSummary & WithEndTime(EndTimeT &&value)
Definition JobSummary.h:175
void SetSourceUrlType(SourceUrlType value)
Definition JobSummary.h:233
AWS_AMPLIFY_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCommitId(CommitIdT &&value)
Definition JobSummary.h:82
JobSummary & WithCommitMessage(CommitMessageT &&value)
Definition JobSummary.h:105
JobSummary & WithSourceUrl(SourceUrlT &&value)
Definition JobSummary.h:218
void SetCommitTime(CommitTimeT &&value)
Definition JobSummary.h:118
JobSummary & WithJobType(JobType value)
Definition JobSummary.h:198
const Aws::String & GetCommitId() const
Definition JobSummary.h:79
JobSummary & WithJobArn(JobArnT &&value)
Definition JobSummary.h:51
const Aws::Utils::DateTime & GetStartTime() const
Definition JobSummary.h:133
void SetStatus(JobStatus value)
Definition JobSummary.h:153
JobSummary & WithCommitTime(CommitTimeT &&value)
Definition JobSummary.h:123
void SetSourceUrl(SourceUrlT &&value)
Definition JobSummary.h:213
void SetJobId(JobIdT &&value)
Definition JobSummary.h:64
AWS_AMPLIFY_API JobSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue