AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EventsDetectionJobProperties.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/comprehend/model/JobStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/comprehend/model/InputDataConfig.h>
12#include <aws/comprehend/model/OutputDataConfig.h>
13#include <aws/comprehend/model/LanguageCode.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Comprehend
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_COMPREHEND_API EventsDetectionJobProperties() = default;
44 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetJobId() const { return m_jobId; }
52 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
53 template<typename JobIdT = Aws::String>
54 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
55 template<typename JobIdT = Aws::String>
56 EventsDetectionJobProperties& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
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) { m_jobArnHasBeenSet = true; m_jobArn = std::forward<JobArnT>(value); }
74 template<typename JobArnT = Aws::String>
75 EventsDetectionJobProperties& WithJobArn(JobArnT&& value) { SetJobArn(std::forward<JobArnT>(value)); return *this;}
77
79
82 inline const Aws::String& GetJobName() const { return m_jobName; }
83 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
84 template<typename JobNameT = Aws::String>
85 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
86 template<typename JobNameT = Aws::String>
87 EventsDetectionJobProperties& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
89
91
94 inline JobStatus GetJobStatus() const { return m_jobStatus; }
95 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
96 inline void SetJobStatus(JobStatus value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
97 inline EventsDetectionJobProperties& WithJobStatus(JobStatus value) { SetJobStatus(value); return *this;}
99
101
104 inline const Aws::String& GetMessage() const { return m_message; }
105 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
106 template<typename MessageT = Aws::String>
107 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
108 template<typename MessageT = Aws::String>
109 EventsDetectionJobProperties& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetSubmitTime() const { return m_submitTime; }
117 inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
118 template<typename SubmitTimeT = Aws::Utils::DateTime>
119 void SetSubmitTime(SubmitTimeT&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::forward<SubmitTimeT>(value); }
120 template<typename SubmitTimeT = Aws::Utils::DateTime>
121 EventsDetectionJobProperties& WithSubmitTime(SubmitTimeT&& value) { SetSubmitTime(std::forward<SubmitTimeT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
129 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
130 template<typename EndTimeT = Aws::Utils::DateTime>
131 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
132 template<typename EndTimeT = Aws::Utils::DateTime>
133 EventsDetectionJobProperties& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
135
137
141 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
142 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
143 template<typename InputDataConfigT = InputDataConfig>
144 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
145 template<typename InputDataConfigT = InputDataConfig>
146 EventsDetectionJobProperties& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
148
150
154 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
155 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
156 template<typename OutputDataConfigT = OutputDataConfig>
157 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
158 template<typename OutputDataConfigT = OutputDataConfig>
159 EventsDetectionJobProperties& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
161
163
166 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
167 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
168 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
171
173
177 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
178 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
179 template<typename DataAccessRoleArnT = Aws::String>
180 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value); }
181 template<typename DataAccessRoleArnT = Aws::String>
182 EventsDetectionJobProperties& WithDataAccessRoleArn(DataAccessRoleArnT&& value) { SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value)); return *this;}
184
186
189 inline const Aws::Vector<Aws::String>& GetTargetEventTypes() const { return m_targetEventTypes; }
190 inline bool TargetEventTypesHasBeenSet() const { return m_targetEventTypesHasBeenSet; }
191 template<typename TargetEventTypesT = Aws::Vector<Aws::String>>
192 void SetTargetEventTypes(TargetEventTypesT&& value) { m_targetEventTypesHasBeenSet = true; m_targetEventTypes = std::forward<TargetEventTypesT>(value); }
193 template<typename TargetEventTypesT = Aws::Vector<Aws::String>>
194 EventsDetectionJobProperties& WithTargetEventTypes(TargetEventTypesT&& value) { SetTargetEventTypes(std::forward<TargetEventTypesT>(value)); return *this;}
195 template<typename TargetEventTypesT = Aws::String>
196 EventsDetectionJobProperties& AddTargetEventTypes(TargetEventTypesT&& value) { m_targetEventTypesHasBeenSet = true; m_targetEventTypes.emplace_back(std::forward<TargetEventTypesT>(value)); return *this; }
198 private:
199
200 Aws::String m_jobId;
201 bool m_jobIdHasBeenSet = false;
202
203 Aws::String m_jobArn;
204 bool m_jobArnHasBeenSet = false;
205
206 Aws::String m_jobName;
207 bool m_jobNameHasBeenSet = false;
208
209 JobStatus m_jobStatus{JobStatus::NOT_SET};
210 bool m_jobStatusHasBeenSet = false;
211
212 Aws::String m_message;
213 bool m_messageHasBeenSet = false;
214
215 Aws::Utils::DateTime m_submitTime{};
216 bool m_submitTimeHasBeenSet = false;
217
218 Aws::Utils::DateTime m_endTime{};
219 bool m_endTimeHasBeenSet = false;
220
221 InputDataConfig m_inputDataConfig;
222 bool m_inputDataConfigHasBeenSet = false;
223
224 OutputDataConfig m_outputDataConfig;
225 bool m_outputDataConfigHasBeenSet = false;
226
227 LanguageCode m_languageCode{LanguageCode::NOT_SET};
228 bool m_languageCodeHasBeenSet = false;
229
230 Aws::String m_dataAccessRoleArn;
231 bool m_dataAccessRoleArnHasBeenSet = false;
232
233 Aws::Vector<Aws::String> m_targetEventTypes;
234 bool m_targetEventTypesHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace Comprehend
239} // 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