AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
JobSummary.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/amplify/model/JobStatus.h>
11#include <aws/amplify/model/JobType.h>
12#include <aws/amplify/model/SourceUrlType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Amplify
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_AMPLIFY_API JobSummary() = default;
40 AWS_AMPLIFY_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AMPLIFY_API JobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetJobArn() const { return m_jobArn; }
50 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
51 template<typename JobArnT = Aws::String>
52 void SetJobArn(JobArnT&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::forward<JobArnT>(value); }
53 template<typename JobArnT = Aws::String>
54 JobSummary& WithJobArn(JobArnT&& value) { SetJobArn(std::forward<JobArnT>(value)); return *this;}
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) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
65 template<typename JobIdT = Aws::String>
66 JobSummary& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetCommitId() const { return m_commitId; }
74 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
75 template<typename CommitIdT = Aws::String>
76 void SetCommitId(CommitIdT&& value) { m_commitIdHasBeenSet = true; m_commitId = std::forward<CommitIdT>(value); }
77 template<typename CommitIdT = Aws::String>
78 JobSummary& WithCommitId(CommitIdT&& value) { SetCommitId(std::forward<CommitIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetCommitMessage() const { return m_commitMessage; }
86 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
87 template<typename CommitMessageT = Aws::String>
88 void SetCommitMessage(CommitMessageT&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::forward<CommitMessageT>(value); }
89 template<typename CommitMessageT = Aws::String>
90 JobSummary& WithCommitMessage(CommitMessageT&& value) { SetCommitMessage(std::forward<CommitMessageT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetCommitTime() const { return m_commitTime; }
98 inline bool CommitTimeHasBeenSet() const { return m_commitTimeHasBeenSet; }
99 template<typename CommitTimeT = Aws::Utils::DateTime>
100 void SetCommitTime(CommitTimeT&& value) { m_commitTimeHasBeenSet = true; m_commitTime = std::forward<CommitTimeT>(value); }
101 template<typename CommitTimeT = Aws::Utils::DateTime>
102 JobSummary& WithCommitTime(CommitTimeT&& value) { SetCommitTime(std::forward<CommitTimeT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
110 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
111 template<typename StartTimeT = Aws::Utils::DateTime>
112 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
113 template<typename StartTimeT = Aws::Utils::DateTime>
114 JobSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
116
118
121 inline JobStatus GetStatus() const { return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(JobStatus value) { m_statusHasBeenSet = true; m_status = value; }
124 inline JobSummary& WithStatus(JobStatus value) { SetStatus(value); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
132 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
133 template<typename EndTimeT = Aws::Utils::DateTime>
134 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
135 template<typename EndTimeT = Aws::Utils::DateTime>
136 JobSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
138
140
150 inline JobType GetJobType() const { return m_jobType; }
151 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
152 inline void SetJobType(JobType value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
153 inline JobSummary& WithJobType(JobType value) { SetJobType(value); return *this;}
155
157
162 inline const Aws::String& GetSourceUrl() const { return m_sourceUrl; }
163 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
164 template<typename SourceUrlT = Aws::String>
165 void SetSourceUrl(SourceUrlT&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::forward<SourceUrlT>(value); }
166 template<typename SourceUrlT = Aws::String>
167 JobSummary& WithSourceUrl(SourceUrlT&& value) { SetSourceUrl(std::forward<SourceUrlT>(value)); return *this;}
169
171
177 inline SourceUrlType GetSourceUrlType() const { return m_sourceUrlType; }
178 inline bool SourceUrlTypeHasBeenSet() const { return m_sourceUrlTypeHasBeenSet; }
179 inline void SetSourceUrlType(SourceUrlType value) { m_sourceUrlTypeHasBeenSet = true; m_sourceUrlType = value; }
180 inline JobSummary& WithSourceUrlType(SourceUrlType value) { SetSourceUrlType(value); return *this;}
182 private:
183
184 Aws::String m_jobArn;
185 bool m_jobArnHasBeenSet = false;
186
187 Aws::String m_jobId;
188 bool m_jobIdHasBeenSet = false;
189
190 Aws::String m_commitId;
191 bool m_commitIdHasBeenSet = false;
192
193 Aws::String m_commitMessage;
194 bool m_commitMessageHasBeenSet = false;
195
196 Aws::Utils::DateTime m_commitTime{};
197 bool m_commitTimeHasBeenSet = false;
198
199 Aws::Utils::DateTime m_startTime{};
200 bool m_startTimeHasBeenSet = false;
201
203 bool m_statusHasBeenSet = false;
204
205 Aws::Utils::DateTime m_endTime{};
206 bool m_endTimeHasBeenSet = false;
207
208 JobType m_jobType{JobType::NOT_SET};
209 bool m_jobTypeHasBeenSet = false;
210
211 Aws::String m_sourceUrl;
212 bool m_sourceUrlHasBeenSet = false;
213
214 SourceUrlType m_sourceUrlType{SourceUrlType::NOT_SET};
215 bool m_sourceUrlTypeHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace Amplify
220} // namespace Aws
void SetStartTime(StartTimeT &&value)
Definition JobSummary.h:112
JobSummary & WithJobId(JobIdT &&value)
Definition JobSummary.h:66
JobSummary & WithStatus(JobStatus value)
Definition JobSummary.h:124
JobSummary & WithStartTime(StartTimeT &&value)
Definition JobSummary.h:114
const Aws::Utils::DateTime & GetEndTime() const
Definition JobSummary.h:131
SourceUrlType GetSourceUrlType() const
Definition JobSummary.h:177
const Aws::Utils::DateTime & GetCommitTime() const
Definition JobSummary.h:97
void SetEndTime(EndTimeT &&value)
Definition JobSummary.h:134
const Aws::String & GetJobArn() const
Definition JobSummary.h:49
void SetCommitMessage(CommitMessageT &&value)
Definition JobSummary.h:88
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:78
JobSummary & WithSourceUrlType(SourceUrlType value)
Definition JobSummary.h:180
void SetJobType(JobType value)
Definition JobSummary.h:152
void SetJobArn(JobArnT &&value)
Definition JobSummary.h:52
const Aws::String & GetSourceUrl() const
Definition JobSummary.h:162
const Aws::String & GetCommitMessage() const
Definition JobSummary.h:85
JobSummary & WithEndTime(EndTimeT &&value)
Definition JobSummary.h:136
void SetSourceUrlType(SourceUrlType value)
Definition JobSummary.h:179
AWS_AMPLIFY_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCommitId(CommitIdT &&value)
Definition JobSummary.h:76
JobSummary & WithCommitMessage(CommitMessageT &&value)
Definition JobSummary.h:90
JobSummary & WithSourceUrl(SourceUrlT &&value)
Definition JobSummary.h:167
void SetCommitTime(CommitTimeT &&value)
Definition JobSummary.h:100
JobSummary & WithJobType(JobType value)
Definition JobSummary.h:153
const Aws::String & GetCommitId() const
Definition JobSummary.h:73
JobSummary & WithJobArn(JobArnT &&value)
Definition JobSummary.h:54
const Aws::Utils::DateTime & GetStartTime() const
Definition JobSummary.h:109
void SetStatus(JobStatus value)
Definition JobSummary.h:123
JobSummary & WithCommitTime(CommitTimeT &&value)
Definition JobSummary.h:102
void SetSourceUrl(SourceUrlT &&value)
Definition JobSummary.h:165
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