AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
JobDetails.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/JobError.h>
9#include <aws/accessanalyzer/model/JobStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer {
23namespace Model {
24
32 public:
33 AWS_ACCESSANALYZER_API JobDetails() = default;
34 AWS_ACCESSANALYZER_API JobDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ACCESSANALYZER_API JobDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::String& GetJobId() const { return m_jobId; }
47 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
48 template <typename JobIdT = Aws::String>
49 void SetJobId(JobIdT&& value) {
50 m_jobIdHasBeenSet = true;
51 m_jobId = std::forward<JobIdT>(value);
52 }
53 template <typename JobIdT = Aws::String>
54 JobDetails& WithJobId(JobIdT&& value) {
55 SetJobId(std::forward<JobIdT>(value));
56 return *this;
57 }
59
61
64 inline JobStatus GetStatus() const { return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(JobStatus value) {
67 m_statusHasBeenSet = true;
68 m_status = value;
69 }
71 SetStatus(value);
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
81 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
82 template <typename StartedOnT = Aws::Utils::DateTime>
83 void SetStartedOn(StartedOnT&& value) {
84 m_startedOnHasBeenSet = true;
85 m_startedOn = std::forward<StartedOnT>(value);
86 }
87 template <typename StartedOnT = Aws::Utils::DateTime>
88 JobDetails& WithStartedOn(StartedOnT&& value) {
89 SetStartedOn(std::forward<StartedOnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
99 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
100 template <typename CompletedOnT = Aws::Utils::DateTime>
101 void SetCompletedOn(CompletedOnT&& value) {
102 m_completedOnHasBeenSet = true;
103 m_completedOn = std::forward<CompletedOnT>(value);
104 }
105 template <typename CompletedOnT = Aws::Utils::DateTime>
106 JobDetails& WithCompletedOn(CompletedOnT&& value) {
107 SetCompletedOn(std::forward<CompletedOnT>(value));
108 return *this;
109 }
111
113
116 inline const JobError& GetJobError() const { return m_jobError; }
117 inline bool JobErrorHasBeenSet() const { return m_jobErrorHasBeenSet; }
118 template <typename JobErrorT = JobError>
119 void SetJobError(JobErrorT&& value) {
120 m_jobErrorHasBeenSet = true;
121 m_jobError = std::forward<JobErrorT>(value);
122 }
123 template <typename JobErrorT = JobError>
124 JobDetails& WithJobError(JobErrorT&& value) {
125 SetJobError(std::forward<JobErrorT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_jobId;
131
133
134 Aws::Utils::DateTime m_startedOn{};
135
136 Aws::Utils::DateTime m_completedOn{};
137
138 JobError m_jobError;
139 bool m_jobIdHasBeenSet = false;
140 bool m_statusHasBeenSet = false;
141 bool m_startedOnHasBeenSet = false;
142 bool m_completedOnHasBeenSet = false;
143 bool m_jobErrorHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace AccessAnalyzer
148} // namespace Aws
AWS_ACCESSANALYZER_API JobDetails()=default
AWS_ACCESSANALYZER_API JobDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetJobError(JobErrorT &&value)
Definition JobDetails.h:119
AWS_ACCESSANALYZER_API JobDetails(Aws::Utils::Json::JsonView jsonValue)
JobDetails & WithJobError(JobErrorT &&value)
Definition JobDetails.h:124
void SetCompletedOn(CompletedOnT &&value)
Definition JobDetails.h:101
JobDetails & WithStartedOn(StartedOnT &&value)
Definition JobDetails.h:88
const Aws::Utils::DateTime & GetStartedOn() const
Definition JobDetails.h:80
void SetStartedOn(StartedOnT &&value)
Definition JobDetails.h:83
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
JobDetails & WithStatus(JobStatus value)
Definition JobDetails.h:70
JobDetails & WithCompletedOn(CompletedOnT &&value)
Definition JobDetails.h:106
const JobError & GetJobError() const
Definition JobDetails.h:116
JobDetails & WithJobId(JobIdT &&value)
Definition JobDetails.h:54
const Aws::Utils::DateTime & GetCompletedOn() const
Definition JobDetails.h:98
const Aws::String & GetJobId() const
Definition JobDetails.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue