AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
JobDetails.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/JobStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/accessanalyzer/model/JobError.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AccessAnalyzer
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ACCESSANALYZER_API JobDetails() = default;
39 AWS_ACCESSANALYZER_API JobDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API JobDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline const Aws::String& GetJobId() const { return m_jobId; }
53 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
54 template<typename JobIdT = Aws::String>
55 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
56 template<typename JobIdT = Aws::String>
57 JobDetails& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
59
61
64 inline JobStatus GetStatus() const { return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(JobStatus value) { m_statusHasBeenSet = true; m_status = value; }
67 inline JobDetails& WithStatus(JobStatus value) { SetStatus(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
75 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
76 template<typename StartedOnT = Aws::Utils::DateTime>
77 void SetStartedOn(StartedOnT&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::forward<StartedOnT>(value); }
78 template<typename StartedOnT = Aws::Utils::DateTime>
79 JobDetails& WithStartedOn(StartedOnT&& value) { SetStartedOn(std::forward<StartedOnT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
87 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
88 template<typename CompletedOnT = Aws::Utils::DateTime>
89 void SetCompletedOn(CompletedOnT&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::forward<CompletedOnT>(value); }
90 template<typename CompletedOnT = Aws::Utils::DateTime>
91 JobDetails& WithCompletedOn(CompletedOnT&& value) { SetCompletedOn(std::forward<CompletedOnT>(value)); return *this;}
93
95
98 inline const JobError& GetJobError() const { return m_jobError; }
99 inline bool JobErrorHasBeenSet() const { return m_jobErrorHasBeenSet; }
100 template<typename JobErrorT = JobError>
101 void SetJobError(JobErrorT&& value) { m_jobErrorHasBeenSet = true; m_jobError = std::forward<JobErrorT>(value); }
102 template<typename JobErrorT = JobError>
103 JobDetails& WithJobError(JobErrorT&& value) { SetJobError(std::forward<JobErrorT>(value)); return *this;}
105 private:
106
107 Aws::String m_jobId;
108 bool m_jobIdHasBeenSet = false;
109
111 bool m_statusHasBeenSet = false;
112
113 Aws::Utils::DateTime m_startedOn{};
114 bool m_startedOnHasBeenSet = false;
115
116 Aws::Utils::DateTime m_completedOn{};
117 bool m_completedOnHasBeenSet = false;
118
119 JobError m_jobError;
120 bool m_jobErrorHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace AccessAnalyzer
125} // namespace Aws
AWS_ACCESSANALYZER_API JobDetails()=default
AWS_ACCESSANALYZER_API JobDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetJobError(JobErrorT &&value)
Definition JobDetails.h:101
AWS_ACCESSANALYZER_API JobDetails(Aws::Utils::Json::JsonView jsonValue)
JobDetails & WithJobError(JobErrorT &&value)
Definition JobDetails.h:103
void SetCompletedOn(CompletedOnT &&value)
Definition JobDetails.h:89
JobDetails & WithStartedOn(StartedOnT &&value)
Definition JobDetails.h:79
const Aws::Utils::DateTime & GetStartedOn() const
Definition JobDetails.h:74
void SetStartedOn(StartedOnT &&value)
Definition JobDetails.h:77
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
JobDetails & WithStatus(JobStatus value)
Definition JobDetails.h:67
JobDetails & WithCompletedOn(CompletedOnT &&value)
Definition JobDetails.h:91
const JobError & GetJobError() const
Definition JobDetails.h:98
JobDetails & WithJobId(JobIdT &&value)
Definition JobDetails.h:57
const Aws::Utils::DateTime & GetCompletedOn() const
Definition JobDetails.h:86
const Aws::String & GetJobId() const
Definition JobDetails.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue