AWS SDK for C++  1.9.155
AWS SDK for C++
JobDetails.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace AccessAnalyzer
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; }
48 
52  inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
53 
57  inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
58 
62  inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::move(value); }
63 
67  inline JobDetails& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;}
68 
72  inline JobDetails& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;}
73 
74 
78  inline const JobError& GetJobError() const{ return m_jobError; }
79 
83  inline bool JobErrorHasBeenSet() const { return m_jobErrorHasBeenSet; }
84 
88  inline void SetJobError(const JobError& value) { m_jobErrorHasBeenSet = true; m_jobError = value; }
89 
93  inline void SetJobError(JobError&& value) { m_jobErrorHasBeenSet = true; m_jobError = std::move(value); }
94 
98  inline JobDetails& WithJobError(const JobError& value) { SetJobError(value); return *this;}
99 
103  inline JobDetails& WithJobError(JobError&& value) { SetJobError(std::move(value)); return *this;}
104 
105 
113  inline const Aws::String& GetJobId() const{ return m_jobId; }
114 
122  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
123 
131  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
132 
140  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
141 
149  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
150 
158  inline JobDetails& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
159 
167  inline JobDetails& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
168 
176  inline JobDetails& WithJobId(const char* value) { SetJobId(value); return *this;}
177 
178 
182  inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; }
183 
187  inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
188 
192  inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
193 
197  inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::move(value); }
198 
202  inline JobDetails& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;}
203 
207  inline JobDetails& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;}
208 
209 
213  inline const JobStatus& GetStatus() const{ return m_status; }
214 
218  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
219 
223  inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
224 
228  inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
229 
233  inline JobDetails& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
234 
238  inline JobDetails& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
239 
240  private:
241 
242  Aws::Utils::DateTime m_completedOn;
243  bool m_completedOnHasBeenSet;
244 
245  JobError m_jobError;
246  bool m_jobErrorHasBeenSet;
247 
248  Aws::String m_jobId;
249  bool m_jobIdHasBeenSet;
250 
251  Aws::Utils::DateTime m_startedOn;
252  bool m_startedOnHasBeenSet;
253 
254  JobStatus m_status;
255  bool m_statusHasBeenSet;
256  };
257 
258 } // namespace Model
259 } // namespace AccessAnalyzer
260 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::AccessAnalyzer::Model::JobDetails::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: JobDetails.h:218
Aws::AccessAnalyzer::Model::JobDetails::SetStatus
void SetStatus(JobStatus &&value)
Definition: JobDetails.h:228
Aws::AccessAnalyzer::Model::JobDetails::SetJobId
void SetJobId(Aws::String &&value)
Definition: JobDetails.h:140
AccessAnalyzer_EXPORTS.h
JobStatus.h
Aws::AccessAnalyzer::Model::JobStatus
JobStatus
Definition: JobStatus.h:17
Aws::AccessAnalyzer::Model::JobDetails::WithJobError
JobDetails & WithJobError(const JobError &value)
Definition: JobDetails.h:98
Aws::AccessAnalyzer::Model::JobDetails::GetStatus
const JobStatus & GetStatus() const
Definition: JobDetails.h:213
Aws::AccessAnalyzer::Model::JobDetails::WithStatus
JobDetails & WithStatus(const JobStatus &value)
Definition: JobDetails.h:233
DateTime.h
Aws::AccessAnalyzer::Model::JobDetails::GetCompletedOn
const Aws::Utils::DateTime & GetCompletedOn() const
Definition: JobDetails.h:47
Aws::AccessAnalyzer::Model::JobDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::JobDetails::SetJobId
void SetJobId(const Aws::String &value)
Definition: JobDetails.h:131
Aws::AccessAnalyzer::Model::JobDetails::StartedOnHasBeenSet
bool StartedOnHasBeenSet() const
Definition: JobDetails.h:187
Aws::AccessAnalyzer::Model::JobDetails::GetJobError
const JobError & GetJobError() const
Definition: JobDetails.h:78
Aws::AccessAnalyzer::Model::JobDetails::WithJobId
JobDetails & WithJobId(const char *value)
Definition: JobDetails.h:176
Aws::AccessAnalyzer::Model::JobDetails::SetCompletedOn
void SetCompletedOn(const Aws::Utils::DateTime &value)
Definition: JobDetails.h:57
Aws::AccessAnalyzer::Model::JobDetails::SetJobError
void SetJobError(JobError &&value)
Definition: JobDetails.h:93
Aws::AccessAnalyzer::Model::JobDetails::SetJobError
void SetJobError(const JobError &value)
Definition: JobDetails.h:88
Aws::AccessAnalyzer::Model::JobDetails::WithStatus
JobDetails & WithStatus(JobStatus &&value)
Definition: JobDetails.h:238
JobError.h
Aws::AccessAnalyzer::Model::JobDetails::WithJobError
JobDetails & WithJobError(JobError &&value)
Definition: JobDetails.h:103
Aws::AccessAnalyzer::Model::JobDetails::WithStartedOn
JobDetails & WithStartedOn(Aws::Utils::DateTime &&value)
Definition: JobDetails.h:207
Aws::AccessAnalyzer::Model::JobError
Definition: JobError.h:34
Aws::AccessAnalyzer::Model::JobDetails::WithCompletedOn
JobDetails & WithCompletedOn(Aws::Utils::DateTime &&value)
Definition: JobDetails.h:72
Aws::AccessAnalyzer::Model::JobDetails::WithJobId
JobDetails & WithJobId(const Aws::String &value)
Definition: JobDetails.h:158
Aws::AccessAnalyzer::Model::JobDetails::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: JobDetails.h:122
Aws::AccessAnalyzer::Model::JobDetails::WithJobId
JobDetails & WithJobId(Aws::String &&value)
Definition: JobDetails.h:167
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::JobDetails::SetStatus
void SetStatus(const JobStatus &value)
Definition: JobDetails.h:223
Aws::AccessAnalyzer::Model::JobDetails::WithCompletedOn
JobDetails & WithCompletedOn(const Aws::Utils::DateTime &value)
Definition: JobDetails.h:67
Aws::AccessAnalyzer::Model::JobDetails::JobDetails
JobDetails()
Aws::AccessAnalyzer::Model::JobDetails::SetStartedOn
void SetStartedOn(const Aws::Utils::DateTime &value)
Definition: JobDetails.h:192
Aws::AccessAnalyzer::Model::JobDetails::SetStartedOn
void SetStartedOn(Aws::Utils::DateTime &&value)
Definition: JobDetails.h:197
Aws::AccessAnalyzer::Model::JobDetails::GetStartedOn
const Aws::Utils::DateTime & GetStartedOn() const
Definition: JobDetails.h:182
Aws::AccessAnalyzer::Model::JobDetails::CompletedOnHasBeenSet
bool CompletedOnHasBeenSet() const
Definition: JobDetails.h:52
Aws::AccessAnalyzer::Model::JobDetails
Definition: JobDetails.h:36
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::JobDetails::GetJobId
const Aws::String & GetJobId() const
Definition: JobDetails.h:113
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::JobDetails::SetJobId
void SetJobId(const char *value)
Definition: JobDetails.h:149
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::JobDetails::JobDetails
JobDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::JobDetails::operator=
JobDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::JobDetails::WithStartedOn
JobDetails & WithStartedOn(const Aws::Utils::DateTime &value)
Definition: JobDetails.h:202
Aws::AccessAnalyzer::Model::JobDetails::JobErrorHasBeenSet
bool JobErrorHasBeenSet() const
Definition: JobDetails.h:83
Aws::AccessAnalyzer::Model::JobDetails::SetCompletedOn
void SetCompletedOn(Aws::Utils::DateTime &&value)
Definition: JobDetails.h:62