AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; }
52 inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); }
53 inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); }
54 inline JobSummary& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;}
55 inline JobSummary& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;}
56 inline JobSummary& WithJobArn(const char* value) { SetJobArn(value); return *this;}
58
60
63 inline const Aws::String& GetJobId() const{ return m_jobId; }
64 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
65 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
66 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
67 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
68 inline JobSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
69 inline JobSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
70 inline JobSummary& WithJobId(const char* value) { SetJobId(value); return *this;}
72
74
77 inline const Aws::String& GetCommitId() const{ return m_commitId; }
78 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
79 inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
80 inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
81 inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
82 inline JobSummary& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
83 inline JobSummary& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
84 inline JobSummary& WithCommitId(const char* value) { SetCommitId(value); return *this;}
86
88
91 inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
92 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
93 inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
94 inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
95 inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
96 inline JobSummary& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
97 inline JobSummary& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
98 inline JobSummary& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetCommitTime() const{ return m_commitTime; }
106 inline bool CommitTimeHasBeenSet() const { return m_commitTimeHasBeenSet; }
107 inline void SetCommitTime(const Aws::Utils::DateTime& value) { m_commitTimeHasBeenSet = true; m_commitTime = value; }
108 inline void SetCommitTime(Aws::Utils::DateTime&& value) { m_commitTimeHasBeenSet = true; m_commitTime = std::move(value); }
109 inline JobSummary& WithCommitTime(const Aws::Utils::DateTime& value) { SetCommitTime(value); return *this;}
110 inline JobSummary& WithCommitTime(Aws::Utils::DateTime&& value) { SetCommitTime(std::move(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
118 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
119 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
120 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
121 inline JobSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
122 inline JobSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
124
126
129 inline const JobStatus& GetStatus() const{ return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
132 inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
133 inline JobSummary& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
134 inline JobSummary& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
142 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
143 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
144 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
145 inline JobSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
146 inline JobSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
148
150
160 inline const JobType& GetJobType() const{ return m_jobType; }
161 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
162 inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
163 inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
164 inline JobSummary& WithJobType(const JobType& value) { SetJobType(value); return *this;}
165 inline JobSummary& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
167
169
174 inline const Aws::String& GetSourceUrl() const{ return m_sourceUrl; }
175 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
176 inline void SetSourceUrl(const Aws::String& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = value; }
177 inline void SetSourceUrl(Aws::String&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::move(value); }
178 inline void SetSourceUrl(const char* value) { m_sourceUrlHasBeenSet = true; m_sourceUrl.assign(value); }
179 inline JobSummary& WithSourceUrl(const Aws::String& value) { SetSourceUrl(value); return *this;}
180 inline JobSummary& WithSourceUrl(Aws::String&& value) { SetSourceUrl(std::move(value)); return *this;}
181 inline JobSummary& WithSourceUrl(const char* value) { SetSourceUrl(value); return *this;}
183
185
191 inline const SourceUrlType& GetSourceUrlType() const{ return m_sourceUrlType; }
192 inline bool SourceUrlTypeHasBeenSet() const { return m_sourceUrlTypeHasBeenSet; }
193 inline void SetSourceUrlType(const SourceUrlType& value) { m_sourceUrlTypeHasBeenSet = true; m_sourceUrlType = value; }
194 inline void SetSourceUrlType(SourceUrlType&& value) { m_sourceUrlTypeHasBeenSet = true; m_sourceUrlType = std::move(value); }
195 inline JobSummary& WithSourceUrlType(const SourceUrlType& value) { SetSourceUrlType(value); return *this;}
196 inline JobSummary& WithSourceUrlType(SourceUrlType&& value) { SetSourceUrlType(std::move(value)); return *this;}
198 private:
199
200 Aws::String m_jobArn;
201 bool m_jobArnHasBeenSet = false;
202
203 Aws::String m_jobId;
204 bool m_jobIdHasBeenSet = false;
205
206 Aws::String m_commitId;
207 bool m_commitIdHasBeenSet = false;
208
209 Aws::String m_commitMessage;
210 bool m_commitMessageHasBeenSet = false;
211
212 Aws::Utils::DateTime m_commitTime;
213 bool m_commitTimeHasBeenSet = false;
214
215 Aws::Utils::DateTime m_startTime;
216 bool m_startTimeHasBeenSet = false;
217
218 JobStatus m_status;
219 bool m_statusHasBeenSet = false;
220
221 Aws::Utils::DateTime m_endTime;
222 bool m_endTimeHasBeenSet = false;
223
224 JobType m_jobType;
225 bool m_jobTypeHasBeenSet = false;
226
227 Aws::String m_sourceUrl;
228 bool m_sourceUrlHasBeenSet = false;
229
230 SourceUrlType m_sourceUrlType;
231 bool m_sourceUrlTypeHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace Amplify
236} // namespace Aws
void SetJobId(const Aws::String &value)
Definition JobSummary.h:65
const SourceUrlType & GetSourceUrlType() const
Definition JobSummary.h:191
void SetSourceUrl(const char *value)
Definition JobSummary.h:178
JobSummary & WithJobType(JobType &&value)
Definition JobSummary.h:165
const JobStatus & GetStatus() const
Definition JobSummary.h:129
JobSummary & WithJobId(Aws::String &&value)
Definition JobSummary.h:69
JobSummary & WithCommitId(Aws::String &&value)
Definition JobSummary.h:83
JobSummary & WithSourceUrlType(const SourceUrlType &value)
Definition JobSummary.h:195
JobSummary & WithSourceUrl(Aws::String &&value)
Definition JobSummary.h:180
JobSummary & WithCommitId(const Aws::String &value)
Definition JobSummary.h:82
void SetStartTime(Aws::Utils::DateTime &&value)
Definition JobSummary.h:120
JobSummary & WithJobArn(const Aws::String &value)
Definition JobSummary.h:54
const Aws::Utils::DateTime & GetEndTime() const
Definition JobSummary.h:141
void SetJobArn(const Aws::String &value)
Definition JobSummary.h:51
void SetStatus(JobStatus &&value)
Definition JobSummary.h:132
JobSummary & WithSourceUrl(const Aws::String &value)
Definition JobSummary.h:179
void SetStartTime(const Aws::Utils::DateTime &value)
Definition JobSummary.h:119
void SetCommitMessage(const char *value)
Definition JobSummary.h:95
void SetJobArn(const char *value)
Definition JobSummary.h:53
JobSummary & WithJobArn(const char *value)
Definition JobSummary.h:56
JobSummary & WithJobArn(Aws::String &&value)
Definition JobSummary.h:55
const Aws::Utils::DateTime & GetCommitTime() const
Definition JobSummary.h:105
JobSummary & WithCommitId(const char *value)
Definition JobSummary.h:84
JobSummary & WithStatus(JobStatus &&value)
Definition JobSummary.h:134
JobSummary & WithCommitTime(const Aws::Utils::DateTime &value)
Definition JobSummary.h:109
void SetEndTime(Aws::Utils::DateTime &&value)
Definition JobSummary.h:144
JobSummary & WithEndTime(Aws::Utils::DateTime &&value)
Definition JobSummary.h:146
void SetJobType(JobType &&value)
Definition JobSummary.h:163
void SetStatus(const JobStatus &value)
Definition JobSummary.h:131
JobSummary & WithStartTime(Aws::Utils::DateTime &&value)
Definition JobSummary.h:122
const Aws::String & GetJobArn() const
Definition JobSummary.h:49
const Aws::String & GetJobId() const
Definition JobSummary.h:63
AWS_AMPLIFY_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSourceUrl(const Aws::String &value)
Definition JobSummary.h:176
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & WithSourceUrl(const char *value)
Definition JobSummary.h:181
void SetSourceUrlType(const SourceUrlType &value)
Definition JobSummary.h:193
const JobType & GetJobType() const
Definition JobSummary.h:160
void SetCommitId(Aws::String &&value)
Definition JobSummary.h:80
JobSummary & WithCommitMessage(const char *value)
Definition JobSummary.h:98
void SetCommitMessage(Aws::String &&value)
Definition JobSummary.h:94
const Aws::String & GetSourceUrl() const
Definition JobSummary.h:174
const Aws::String & GetCommitMessage() const
Definition JobSummary.h:91
void SetCommitMessage(const Aws::String &value)
Definition JobSummary.h:93
AWS_AMPLIFY_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetJobId(Aws::String &&value)
Definition JobSummary.h:66
JobSummary & WithCommitTime(Aws::Utils::DateTime &&value)
Definition JobSummary.h:110
void SetCommitId(const Aws::String &value)
Definition JobSummary.h:79
void SetSourceUrlType(SourceUrlType &&value)
Definition JobSummary.h:194
JobSummary & WithJobType(const JobType &value)
Definition JobSummary.h:164
void SetEndTime(const Aws::Utils::DateTime &value)
Definition JobSummary.h:143
void SetCommitTime(const Aws::Utils::DateTime &value)
Definition JobSummary.h:107
JobSummary & WithSourceUrlType(SourceUrlType &&value)
Definition JobSummary.h:196
void SetSourceUrl(Aws::String &&value)
Definition JobSummary.h:177
void SetCommitTime(Aws::Utils::DateTime &&value)
Definition JobSummary.h:108
JobSummary & WithStartTime(const Aws::Utils::DateTime &value)
Definition JobSummary.h:121
JobSummary & WithJobId(const Aws::String &value)
Definition JobSummary.h:68
void SetJobArn(Aws::String &&value)
Definition JobSummary.h:52
JobSummary & WithStatus(const JobStatus &value)
Definition JobSummary.h:133
JobSummary & WithCommitMessage(Aws::String &&value)
Definition JobSummary.h:97
JobSummary & WithJobId(const char *value)
Definition JobSummary.h:70
JobSummary & WithEndTime(const Aws::Utils::DateTime &value)
Definition JobSummary.h:145
void SetJobType(const JobType &value)
Definition JobSummary.h:162
const Aws::String & GetCommitId() const
Definition JobSummary.h:77
const Aws::Utils::DateTime & GetStartTime() const
Definition JobSummary.h:117
JobSummary & WithCommitMessage(const Aws::String &value)
Definition JobSummary.h:96
void SetJobId(const char *value)
Definition JobSummary.h:67
void SetCommitId(const char *value)
Definition JobSummary.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue