AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
JobRunSummary.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/JobRunError.h>
11#include <aws/datazone/model/JobType.h>
12#include <aws/datazone/model/JobRunMode.h>
13#include <aws/datazone/model/JobRunStatus.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DataZone
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_DATAZONE_API JobRunSummary() = default;
40 AWS_DATAZONE_API JobRunSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
50 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
51 template<typename CreatedAtT = Aws::Utils::DateTime>
52 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
53 template<typename CreatedAtT = Aws::Utils::DateTime>
54 JobRunSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
56
58
61 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
62 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
63 template<typename CreatedByT = Aws::String>
64 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
65 template<typename CreatedByT = Aws::String>
66 JobRunSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDomainId() const { return m_domainId; }
74 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
75 template<typename DomainIdT = Aws::String>
76 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
77 template<typename DomainIdT = Aws::String>
78 JobRunSummary& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
86 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
87 template<typename EndTimeT = Aws::Utils::DateTime>
88 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
89 template<typename EndTimeT = Aws::Utils::DateTime>
90 JobRunSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
92
94
97 inline const JobRunError& GetError() const { return m_error; }
98 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
99 template<typename ErrorT = JobRunError>
100 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
101 template<typename ErrorT = JobRunError>
102 JobRunSummary& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
104
106
109 inline const Aws::String& GetJobId() const { return m_jobId; }
110 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
111 template<typename JobIdT = Aws::String>
112 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
113 template<typename JobIdT = Aws::String>
114 JobRunSummary& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
116
118
121 inline JobType GetJobType() const { return m_jobType; }
122 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
123 inline void SetJobType(JobType value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
124 inline JobRunSummary& WithJobType(JobType value) { SetJobType(value); return *this;}
126
128
131 inline const Aws::String& GetRunId() const { return m_runId; }
132 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
133 template<typename RunIdT = Aws::String>
134 void SetRunId(RunIdT&& value) { m_runIdHasBeenSet = true; m_runId = std::forward<RunIdT>(value); }
135 template<typename RunIdT = Aws::String>
136 JobRunSummary& WithRunId(RunIdT&& value) { SetRunId(std::forward<RunIdT>(value)); return *this;}
138
140
143 inline JobRunMode GetRunMode() const { return m_runMode; }
144 inline bool RunModeHasBeenSet() const { return m_runModeHasBeenSet; }
145 inline void SetRunMode(JobRunMode value) { m_runModeHasBeenSet = true; m_runMode = value; }
146 inline JobRunSummary& WithRunMode(JobRunMode value) { SetRunMode(value); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
154 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
155 template<typename StartTimeT = Aws::Utils::DateTime>
156 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
157 template<typename StartTimeT = Aws::Utils::DateTime>
158 JobRunSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
160
162
165 inline JobRunStatus GetStatus() const { return m_status; }
166 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
167 inline void SetStatus(JobRunStatus value) { m_statusHasBeenSet = true; m_status = value; }
168 inline JobRunSummary& WithStatus(JobRunStatus value) { SetStatus(value); return *this;}
170 private:
171
172 Aws::Utils::DateTime m_createdAt{};
173 bool m_createdAtHasBeenSet = false;
174
175 Aws::String m_createdBy;
176 bool m_createdByHasBeenSet = false;
177
178 Aws::String m_domainId;
179 bool m_domainIdHasBeenSet = false;
180
181 Aws::Utils::DateTime m_endTime{};
182 bool m_endTimeHasBeenSet = false;
183
184 JobRunError m_error;
185 bool m_errorHasBeenSet = false;
186
187 Aws::String m_jobId;
188 bool m_jobIdHasBeenSet = false;
189
190 JobType m_jobType{JobType::NOT_SET};
191 bool m_jobTypeHasBeenSet = false;
192
193 Aws::String m_runId;
194 bool m_runIdHasBeenSet = false;
195
197 bool m_runModeHasBeenSet = false;
198
199 Aws::Utils::DateTime m_startTime{};
200 bool m_startTimeHasBeenSet = false;
201
203 bool m_statusHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace DataZone
208} // namespace Aws
AWS_DATAZONE_API JobRunSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCreatedBy() const
void SetStartTime(StartTimeT &&value)
AWS_DATAZONE_API JobRunSummary()=default
const Aws::String & GetDomainId() const
const JobRunError & GetError() const
JobRunSummary & WithRunMode(JobRunMode value)
const Aws::String & GetRunId() const
JobRunSummary & WithCreatedAt(CreatedAtT &&value)
JobRunSummary & WithError(ErrorT &&value)
JobRunSummary & WithStartTime(StartTimeT &&value)
void SetStatus(JobRunStatus value)
const Aws::Utils::DateTime & GetStartTime() const
JobRunSummary & WithRunId(RunIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
JobRunSummary & WithJobType(JobType value)
AWS_DATAZONE_API JobRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobRunSummary & WithEndTime(EndTimeT &&value)
void SetCreatedBy(CreatedByT &&value)
JobRunSummary & WithDomainId(DomainIdT &&value)
JobRunSummary & WithStatus(JobRunStatus value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetJobId() const
JobRunSummary & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetEndTime() const
JobRunSummary & WithJobId(JobIdT &&value)
void SetEndTime(EndTimeT &&value)
void SetRunMode(JobRunMode value)
void SetDomainId(DomainIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue