AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EventsDetectionJobProperties.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/InputDataConfig.h>
9#include <aws/comprehend/model/JobStatus.h>
10#include <aws/comprehend/model/LanguageCode.h>
11#include <aws/comprehend/model/OutputDataConfig.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Comprehend {
26namespace Model {
27
35 public:
36 AWS_COMPREHEND_API EventsDetectionJobProperties() = default;
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetJobId() const { return m_jobId; }
46 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
47 template <typename JobIdT = Aws::String>
48 void SetJobId(JobIdT&& value) {
49 m_jobIdHasBeenSet = true;
50 m_jobId = std::forward<JobIdT>(value);
51 }
52 template <typename JobIdT = Aws::String>
54 SetJobId(std::forward<JobIdT>(value));
55 return *this;
56 }
58
60
70 inline const Aws::String& GetJobArn() const { return m_jobArn; }
71 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
72 template <typename JobArnT = Aws::String>
73 void SetJobArn(JobArnT&& value) {
74 m_jobArnHasBeenSet = true;
75 m_jobArn = std::forward<JobArnT>(value);
76 }
77 template <typename JobArnT = Aws::String>
79 SetJobArn(std::forward<JobArnT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetJobName() const { return m_jobName; }
89 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
90 template <typename JobNameT = Aws::String>
91 void SetJobName(JobNameT&& value) {
92 m_jobNameHasBeenSet = true;
93 m_jobName = std::forward<JobNameT>(value);
94 }
95 template <typename JobNameT = Aws::String>
97 SetJobName(std::forward<JobNameT>(value));
98 return *this;
99 }
101
103
106 inline JobStatus GetJobStatus() const { return m_jobStatus; }
107 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
108 inline void SetJobStatus(JobStatus value) {
109 m_jobStatusHasBeenSet = true;
110 m_jobStatus = value;
111 }
113 SetJobStatus(value);
114 return *this;
115 }
117
119
122 inline const Aws::String& GetMessage() const { return m_message; }
123 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
124 template <typename MessageT = Aws::String>
125 void SetMessage(MessageT&& value) {
126 m_messageHasBeenSet = true;
127 m_message = std::forward<MessageT>(value);
128 }
129 template <typename MessageT = Aws::String>
131 SetMessage(std::forward<MessageT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Utils::DateTime& GetSubmitTime() const { return m_submitTime; }
141 inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
142 template <typename SubmitTimeT = Aws::Utils::DateTime>
143 void SetSubmitTime(SubmitTimeT&& value) {
144 m_submitTimeHasBeenSet = true;
145 m_submitTime = std::forward<SubmitTimeT>(value);
146 }
147 template <typename SubmitTimeT = Aws::Utils::DateTime>
149 SetSubmitTime(std::forward<SubmitTimeT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
159 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
160 template <typename EndTimeT = Aws::Utils::DateTime>
161 void SetEndTime(EndTimeT&& value) {
162 m_endTimeHasBeenSet = true;
163 m_endTime = std::forward<EndTimeT>(value);
164 }
165 template <typename EndTimeT = Aws::Utils::DateTime>
167 SetEndTime(std::forward<EndTimeT>(value));
168 return *this;
169 }
171
173
177 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
178 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
179 template <typename InputDataConfigT = InputDataConfig>
180 void SetInputDataConfig(InputDataConfigT&& value) {
181 m_inputDataConfigHasBeenSet = true;
182 m_inputDataConfig = std::forward<InputDataConfigT>(value);
183 }
184 template <typename InputDataConfigT = InputDataConfig>
186 SetInputDataConfig(std::forward<InputDataConfigT>(value));
187 return *this;
188 }
190
192
196 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
197 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
198 template <typename OutputDataConfigT = OutputDataConfig>
199 void SetOutputDataConfig(OutputDataConfigT&& value) {
200 m_outputDataConfigHasBeenSet = true;
201 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
202 }
203 template <typename OutputDataConfigT = OutputDataConfig>
205 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
206 return *this;
207 }
209
211
214 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
215 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
216 inline void SetLanguageCode(LanguageCode value) {
217 m_languageCodeHasBeenSet = true;
218 m_languageCode = value;
219 }
221 SetLanguageCode(value);
222 return *this;
223 }
225
227
231 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
232 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
233 template <typename DataAccessRoleArnT = Aws::String>
234 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
235 m_dataAccessRoleArnHasBeenSet = true;
236 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
237 }
238 template <typename DataAccessRoleArnT = Aws::String>
240 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Vector<Aws::String>& GetTargetEventTypes() const { return m_targetEventTypes; }
250 inline bool TargetEventTypesHasBeenSet() const { return m_targetEventTypesHasBeenSet; }
251 template <typename TargetEventTypesT = Aws::Vector<Aws::String>>
252 void SetTargetEventTypes(TargetEventTypesT&& value) {
253 m_targetEventTypesHasBeenSet = true;
254 m_targetEventTypes = std::forward<TargetEventTypesT>(value);
255 }
256 template <typename TargetEventTypesT = Aws::Vector<Aws::String>>
258 SetTargetEventTypes(std::forward<TargetEventTypesT>(value));
259 return *this;
260 }
261 template <typename TargetEventTypesT = Aws::String>
263 m_targetEventTypesHasBeenSet = true;
264 m_targetEventTypes.emplace_back(std::forward<TargetEventTypesT>(value));
265 return *this;
266 }
268 private:
269 Aws::String m_jobId;
270
271 Aws::String m_jobArn;
272
273 Aws::String m_jobName;
274
275 JobStatus m_jobStatus{JobStatus::NOT_SET};
276
277 Aws::String m_message;
278
279 Aws::Utils::DateTime m_submitTime{};
280
281 Aws::Utils::DateTime m_endTime{};
282
283 InputDataConfig m_inputDataConfig;
284
285 OutputDataConfig m_outputDataConfig;
286
287 LanguageCode m_languageCode{LanguageCode::NOT_SET};
288
289 Aws::String m_dataAccessRoleArn;
290
291 Aws::Vector<Aws::String> m_targetEventTypes;
292 bool m_jobIdHasBeenSet = false;
293 bool m_jobArnHasBeenSet = false;
294 bool m_jobNameHasBeenSet = false;
295 bool m_jobStatusHasBeenSet = false;
296 bool m_messageHasBeenSet = false;
297 bool m_submitTimeHasBeenSet = false;
298 bool m_endTimeHasBeenSet = false;
299 bool m_inputDataConfigHasBeenSet = false;
300 bool m_outputDataConfigHasBeenSet = false;
301 bool m_languageCodeHasBeenSet = false;
302 bool m_dataAccessRoleArnHasBeenSet = false;
303 bool m_targetEventTypesHasBeenSet = false;
304};
305
306} // namespace Model
307} // namespace Comprehend
308} // namespace Aws
EventsDetectionJobProperties & WithOutputDataConfig(OutputDataConfigT &&value)
const Aws::Vector< Aws::String > & GetTargetEventTypes() const
EventsDetectionJobProperties & WithJobStatus(JobStatus value)
EventsDetectionJobProperties & WithJobId(JobIdT &&value)
EventsDetectionJobProperties & WithMessage(MessageT &&value)
AWS_COMPREHEND_API EventsDetectionJobProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API EventsDetectionJobProperties(Aws::Utils::Json::JsonView jsonValue)
EventsDetectionJobProperties & WithLanguageCode(LanguageCode value)
EventsDetectionJobProperties & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
EventsDetectionJobProperties & WithEndTime(EndTimeT &&value)
EventsDetectionJobProperties & AddTargetEventTypes(TargetEventTypesT &&value)
EventsDetectionJobProperties & WithInputDataConfig(InputDataConfigT &&value)
EventsDetectionJobProperties & WithSubmitTime(SubmitTimeT &&value)
EventsDetectionJobProperties & WithJobName(JobNameT &&value)
EventsDetectionJobProperties & WithJobArn(JobArnT &&value)
EventsDetectionJobProperties & WithTargetEventTypes(TargetEventTypesT &&value)
AWS_COMPREHEND_API EventsDetectionJobProperties()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue