AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetJobRunResult.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/JobRunDetails.h>
11#include <aws/datazone/model/JobRunError.h>
12#include <aws/datazone/model/JobType.h>
13#include <aws/datazone/model/JobRunMode.h>
14#include <aws/datazone/model/JobRunStatus.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DataZone
30{
31namespace Model
32{
34 {
35 public:
36 AWS_DATAZONE_API GetJobRunResult() = default;
39
40
42
45 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
46 template<typename CreatedAtT = Aws::Utils::DateTime>
47 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
48 template<typename CreatedAtT = Aws::Utils::DateTime>
49 GetJobRunResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
51
53
56 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
57 template<typename CreatedByT = Aws::String>
58 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
59 template<typename CreatedByT = Aws::String>
60 GetJobRunResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
62
64
67 inline const JobRunDetails& GetDetails() const { return m_details; }
68 template<typename DetailsT = JobRunDetails>
69 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
70 template<typename DetailsT = JobRunDetails>
71 GetJobRunResult& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDomainId() const { return m_domainId; }
79 template<typename DomainIdT = Aws::String>
80 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
81 template<typename DomainIdT = Aws::String>
82 GetJobRunResult& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
90 template<typename EndTimeT = Aws::Utils::DateTime>
91 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
92 template<typename EndTimeT = Aws::Utils::DateTime>
93 GetJobRunResult& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
95
97
100 inline const JobRunError& GetError() const { return m_error; }
101 template<typename ErrorT = JobRunError>
102 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
103 template<typename ErrorT = JobRunError>
104 GetJobRunResult& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
106
108
111 inline const Aws::String& GetId() const { return m_id; }
112 template<typename IdT = Aws::String>
113 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
114 template<typename IdT = Aws::String>
115 GetJobRunResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
117
119
122 inline const Aws::String& GetJobId() const { return m_jobId; }
123 template<typename JobIdT = Aws::String>
124 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
125 template<typename JobIdT = Aws::String>
126 GetJobRunResult& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
128
130
133 inline JobType GetJobType() const { return m_jobType; }
134 inline void SetJobType(JobType value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
135 inline GetJobRunResult& WithJobType(JobType value) { SetJobType(value); return *this;}
137
139
142 inline JobRunMode GetRunMode() const { return m_runMode; }
143 inline void SetRunMode(JobRunMode value) { m_runModeHasBeenSet = true; m_runMode = value; }
144 inline GetJobRunResult& WithRunMode(JobRunMode value) { SetRunMode(value); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
152 template<typename StartTimeT = Aws::Utils::DateTime>
153 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
154 template<typename StartTimeT = Aws::Utils::DateTime>
155 GetJobRunResult& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
157
159
162 inline JobRunStatus GetStatus() const { return m_status; }
163 inline void SetStatus(JobRunStatus value) { m_statusHasBeenSet = true; m_status = value; }
164 inline GetJobRunResult& WithStatus(JobRunStatus value) { SetStatus(value); return *this;}
166
168
169 inline const Aws::String& GetRequestId() const { return m_requestId; }
170 template<typename RequestIdT = Aws::String>
171 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
172 template<typename RequestIdT = Aws::String>
173 GetJobRunResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
175 private:
176
177 Aws::Utils::DateTime m_createdAt{};
178 bool m_createdAtHasBeenSet = false;
179
180 Aws::String m_createdBy;
181 bool m_createdByHasBeenSet = false;
182
183 JobRunDetails m_details;
184 bool m_detailsHasBeenSet = false;
185
186 Aws::String m_domainId;
187 bool m_domainIdHasBeenSet = false;
188
189 Aws::Utils::DateTime m_endTime{};
190 bool m_endTimeHasBeenSet = false;
191
192 JobRunError m_error;
193 bool m_errorHasBeenSet = false;
194
195 Aws::String m_id;
196 bool m_idHasBeenSet = false;
197
198 Aws::String m_jobId;
199 bool m_jobIdHasBeenSet = false;
200
201 JobType m_jobType{JobType::NOT_SET};
202 bool m_jobTypeHasBeenSet = false;
203
205 bool m_runModeHasBeenSet = false;
206
207 Aws::Utils::DateTime m_startTime{};
208 bool m_startTimeHasBeenSet = false;
209
211 bool m_statusHasBeenSet = false;
212
213 Aws::String m_requestId;
214 bool m_requestIdHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace DataZone
219} // namespace Aws
AWS_DATAZONE_API GetJobRunResult()=default
GetJobRunResult & WithJobId(JobIdT &&value)
const JobRunError & GetError() const
GetJobRunResult & WithEndTime(EndTimeT &&value)
GetJobRunResult & WithRequestId(RequestIdT &&value)
void SetRequestId(RequestIdT &&value)
GetJobRunResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetCreatedBy() const
GetJobRunResult & WithCreatedBy(CreatedByT &&value)
GetJobRunResult & WithDomainId(DomainIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetJobRunResult & WithStartTime(StartTimeT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetDomainId() const
void SetStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetCreatedBy(CreatedByT &&value)
GetJobRunResult & WithJobType(JobType value)
GetJobRunResult & WithDetails(DetailsT &&value)
GetJobRunResult & WithId(IdT &&value)
GetJobRunResult & WithRunMode(JobRunMode value)
AWS_DATAZONE_API GetJobRunResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATAZONE_API GetJobRunResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetId() const
GetJobRunResult & WithError(ErrorT &&value)
GetJobRunResult & WithStatus(JobRunStatus value)
const Aws::String & GetJobId() const
void SetCreatedAt(CreatedAtT &&value)
const JobRunDetails & GetDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue