AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
JobDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/Macie2_EXPORTS.h>
10#include <aws/macie2/model/IsDefinedInJob.h>
11#include <aws/macie2/model/IsMonitoredByJob.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2 {
23namespace Model {
24
33 public:
34 AWS_MACIE2_API JobDetails() = default;
35 AWS_MACIE2_API JobDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
54 inline IsDefinedInJob GetIsDefinedInJob() const { return m_isDefinedInJob; }
55 inline bool IsDefinedInJobHasBeenSet() const { return m_isDefinedInJobHasBeenSet; }
56 inline void SetIsDefinedInJob(IsDefinedInJob value) {
57 m_isDefinedInJobHasBeenSet = true;
58 m_isDefinedInJob = value;
59 }
61 SetIsDefinedInJob(value);
62 return *this;
63 }
65
67
81 inline IsMonitoredByJob GetIsMonitoredByJob() const { return m_isMonitoredByJob; }
82 inline bool IsMonitoredByJobHasBeenSet() const { return m_isMonitoredByJobHasBeenSet; }
84 m_isMonitoredByJobHasBeenSet = true;
85 m_isMonitoredByJob = value;
86 }
89 return *this;
90 }
92
94
100 inline const Aws::String& GetLastJobId() const { return m_lastJobId; }
101 inline bool LastJobIdHasBeenSet() const { return m_lastJobIdHasBeenSet; }
102 template <typename LastJobIdT = Aws::String>
103 void SetLastJobId(LastJobIdT&& value) {
104 m_lastJobIdHasBeenSet = true;
105 m_lastJobId = std::forward<LastJobIdT>(value);
106 }
107 template <typename LastJobIdT = Aws::String>
108 JobDetails& WithLastJobId(LastJobIdT&& value) {
109 SetLastJobId(std::forward<LastJobIdT>(value));
110 return *this;
111 }
113
115
121 inline const Aws::Utils::DateTime& GetLastJobRunTime() const { return m_lastJobRunTime; }
122 inline bool LastJobRunTimeHasBeenSet() const { return m_lastJobRunTimeHasBeenSet; }
123 template <typename LastJobRunTimeT = Aws::Utils::DateTime>
124 void SetLastJobRunTime(LastJobRunTimeT&& value) {
125 m_lastJobRunTimeHasBeenSet = true;
126 m_lastJobRunTime = std::forward<LastJobRunTimeT>(value);
127 }
128 template <typename LastJobRunTimeT = Aws::Utils::DateTime>
129 JobDetails& WithLastJobRunTime(LastJobRunTimeT&& value) {
130 SetLastJobRunTime(std::forward<LastJobRunTimeT>(value));
131 return *this;
132 }
134 private:
135 IsDefinedInJob m_isDefinedInJob{IsDefinedInJob::NOT_SET};
136
138
139 Aws::String m_lastJobId;
140
141 Aws::Utils::DateTime m_lastJobRunTime{};
142 bool m_isDefinedInJobHasBeenSet = false;
143 bool m_isMonitoredByJobHasBeenSet = false;
144 bool m_lastJobIdHasBeenSet = false;
145 bool m_lastJobRunTimeHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace Macie2
150} // namespace Aws
JobDetails & WithIsDefinedInJob(IsDefinedInJob value)
Definition JobDetails.h:60
IsMonitoredByJob GetIsMonitoredByJob() const
Definition JobDetails.h:81
const Aws::Utils::DateTime & GetLastJobRunTime() const
Definition JobDetails.h:121
void SetIsMonitoredByJob(IsMonitoredByJob value)
Definition JobDetails.h:83
IsDefinedInJob GetIsDefinedInJob() const
Definition JobDetails.h:54
void SetLastJobRunTime(LastJobRunTimeT &&value)
Definition JobDetails.h:124
AWS_MACIE2_API JobDetails()=default
bool IsDefinedInJobHasBeenSet() const
Definition JobDetails.h:55
void SetIsDefinedInJob(IsDefinedInJob value)
Definition JobDetails.h:56
JobDetails & WithLastJobId(LastJobIdT &&value)
Definition JobDetails.h:108
bool LastJobRunTimeHasBeenSet() const
Definition JobDetails.h:122
AWS_MACIE2_API JobDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IsMonitoredByJobHasBeenSet() const
Definition JobDetails.h:82
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API JobDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLastJobId() const
Definition JobDetails.h:100
void SetLastJobId(LastJobIdT &&value)
Definition JobDetails.h:103
JobDetails & WithIsMonitoredByJob(IsMonitoredByJob value)
Definition JobDetails.h:87
JobDetails & WithLastJobRunTime(LastJobRunTimeT &&value)
Definition JobDetails.h:129
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue