AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
55 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
56 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
57 inline JobDetails& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
58 inline JobDetails& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
59 inline JobDetails& WithJobId(const char* value) { SetJobId(value); return *this;}
61
63
66 inline const JobStatus& GetStatus() const{ return m_status; }
67 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
68 inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
69 inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
70 inline JobDetails& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
71 inline JobDetails& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; }
79 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
80 inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
81 inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::move(value); }
82 inline JobDetails& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;}
83 inline JobDetails& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; }
91 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
92 inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
93 inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::move(value); }
94 inline JobDetails& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;}
95 inline JobDetails& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;}
97
99
102 inline const JobError& GetJobError() const{ return m_jobError; }
103 inline bool JobErrorHasBeenSet() const { return m_jobErrorHasBeenSet; }
104 inline void SetJobError(const JobError& value) { m_jobErrorHasBeenSet = true; m_jobError = value; }
105 inline void SetJobError(JobError&& value) { m_jobErrorHasBeenSet = true; m_jobError = std::move(value); }
106 inline JobDetails& WithJobError(const JobError& value) { SetJobError(value); return *this;}
107 inline JobDetails& WithJobError(JobError&& value) { SetJobError(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_jobId;
112 bool m_jobIdHasBeenSet = false;
113
114 JobStatus m_status;
115 bool m_statusHasBeenSet = false;
116
117 Aws::Utils::DateTime m_startedOn;
118 bool m_startedOnHasBeenSet = false;
119
120 Aws::Utils::DateTime m_completedOn;
121 bool m_completedOnHasBeenSet = false;
122
123 JobError m_jobError;
124 bool m_jobErrorHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace AccessAnalyzer
129} // namespace Aws
JobDetails & WithStartedOn(Aws::Utils::DateTime &&value)
Definition JobDetails.h:83
void SetStatus(const JobStatus &value)
Definition JobDetails.h:68
AWS_ACCESSANALYZER_API JobDetails()
JobDetails & WithJobId(Aws::String &&value)
Definition JobDetails.h:58
AWS_ACCESSANALYZER_API JobDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCompletedOn(const Aws::Utils::DateTime &value)
Definition JobDetails.h:92
void SetStartedOn(Aws::Utils::DateTime &&value)
Definition JobDetails.h:81
JobDetails & WithCompletedOn(Aws::Utils::DateTime &&value)
Definition JobDetails.h:95
AWS_ACCESSANALYZER_API JobDetails(Aws::Utils::Json::JsonView jsonValue)
void SetStartedOn(const Aws::Utils::DateTime &value)
Definition JobDetails.h:80
JobDetails & WithJobId(const char *value)
Definition JobDetails.h:59
void SetCompletedOn(Aws::Utils::DateTime &&value)
Definition JobDetails.h:93
void SetJobId(const char *value)
Definition JobDetails.h:56
const Aws::Utils::DateTime & GetStartedOn() const
Definition JobDetails.h:78
JobDetails & WithStartedOn(const Aws::Utils::DateTime &value)
Definition JobDetails.h:82
void SetJobId(const Aws::String &value)
Definition JobDetails.h:54
JobDetails & WithJobError(const JobError &value)
Definition JobDetails.h:106
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(JobStatus &&value)
Definition JobDetails.h:69
JobDetails & WithJobError(JobError &&value)
Definition JobDetails.h:107
JobDetails & WithCompletedOn(const Aws::Utils::DateTime &value)
Definition JobDetails.h:94
void SetJobError(JobError &&value)
Definition JobDetails.h:105
void SetJobId(Aws::String &&value)
Definition JobDetails.h:55
JobDetails & WithJobId(const Aws::String &value)
Definition JobDetails.h:57
JobDetails & WithStatus(const JobStatus &value)
Definition JobDetails.h:70
const JobError & GetJobError() const
Definition JobDetails.h:102
const JobStatus & GetStatus() const
Definition JobDetails.h:66
JobDetails & WithStatus(JobStatus &&value)
Definition JobDetails.h:71
void SetJobError(const JobError &value)
Definition JobDetails.h:104
const Aws::Utils::DateTime & GetCompletedOn() const
Definition JobDetails.h:90
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