AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartEventsDetectionJobRequest.h
1
6#pragma once
7#include <aws/comprehend/ComprehendRequest.h>
8#include <aws/comprehend/Comprehend_EXPORTS.h>
9#include <aws/comprehend/model/InputDataConfig.h>
10#include <aws/comprehend/model/LanguageCode.h>
11#include <aws/comprehend/model/OutputDataConfig.h>
12#include <aws/comprehend/model/Tag.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Comprehend {
21namespace Model {
22
26 public:
27 AWS_COMPREHEND_API StartEventsDetectionJobRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartEventsDetectionJob"; }
34
35 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
36
38
40
43 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
44 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
45 template <typename InputDataConfigT = InputDataConfig>
46 void SetInputDataConfig(InputDataConfigT&& value) {
47 m_inputDataConfigHasBeenSet = true;
48 m_inputDataConfig = std::forward<InputDataConfigT>(value);
49 }
50 template <typename InputDataConfigT = InputDataConfig>
52 SetInputDataConfig(std::forward<InputDataConfigT>(value));
53 return *this;
54 }
56
58
61 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
62 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
63 template <typename OutputDataConfigT = OutputDataConfig>
64 void SetOutputDataConfig(OutputDataConfigT&& value) {
65 m_outputDataConfigHasBeenSet = true;
66 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
67 }
68 template <typename OutputDataConfigT = OutputDataConfig>
70 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
81 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
82 template <typename DataAccessRoleArnT = Aws::String>
83 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
84 m_dataAccessRoleArnHasBeenSet = true;
85 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
86 }
87 template <typename DataAccessRoleArnT = Aws::String>
89 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetJobName() const { return m_jobName; }
99 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
100 template <typename JobNameT = Aws::String>
101 void SetJobName(JobNameT&& value) {
102 m_jobNameHasBeenSet = true;
103 m_jobName = std::forward<JobNameT>(value);
104 }
105 template <typename JobNameT = Aws::String>
107 SetJobName(std::forward<JobNameT>(value));
108 return *this;
109 }
111
113
116 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
117 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
118 inline void SetLanguageCode(LanguageCode value) {
119 m_languageCodeHasBeenSet = true;
120 m_languageCode = value;
121 }
123 SetLanguageCode(value);
124 return *this;
125 }
127
129
133 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
134 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
135 template <typename ClientRequestTokenT = Aws::String>
136 void SetClientRequestToken(ClientRequestTokenT&& value) {
137 m_clientRequestTokenHasBeenSet = true;
138 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
139 }
140 template <typename ClientRequestTokenT = Aws::String>
142 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<Aws::String>& GetTargetEventTypes() const { return m_targetEventTypes; }
152 inline bool TargetEventTypesHasBeenSet() const { return m_targetEventTypesHasBeenSet; }
153 template <typename TargetEventTypesT = Aws::Vector<Aws::String>>
154 void SetTargetEventTypes(TargetEventTypesT&& value) {
155 m_targetEventTypesHasBeenSet = true;
156 m_targetEventTypes = std::forward<TargetEventTypesT>(value);
157 }
158 template <typename TargetEventTypesT = Aws::Vector<Aws::String>>
160 SetTargetEventTypes(std::forward<TargetEventTypesT>(value));
161 return *this;
162 }
163 template <typename TargetEventTypesT = Aws::String>
165 m_targetEventTypesHasBeenSet = true;
166 m_targetEventTypes.emplace_back(std::forward<TargetEventTypesT>(value));
167 return *this;
168 }
170
172
178 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 template <typename TagsT = Aws::Vector<Tag>>
181 void SetTags(TagsT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags = std::forward<TagsT>(value);
184 }
185 template <typename TagsT = Aws::Vector<Tag>>
187 SetTags(std::forward<TagsT>(value));
188 return *this;
189 }
190 template <typename TagsT = Tag>
192 m_tagsHasBeenSet = true;
193 m_tags.emplace_back(std::forward<TagsT>(value));
194 return *this;
195 }
197 private:
198 InputDataConfig m_inputDataConfig;
199
200 OutputDataConfig m_outputDataConfig;
201
202 Aws::String m_dataAccessRoleArn;
203
204 Aws::String m_jobName;
205
206 LanguageCode m_languageCode{LanguageCode::NOT_SET};
207
208 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
209
210 Aws::Vector<Aws::String> m_targetEventTypes;
211
212 Aws::Vector<Tag> m_tags;
213 bool m_inputDataConfigHasBeenSet = false;
214 bool m_outputDataConfigHasBeenSet = false;
215 bool m_dataAccessRoleArnHasBeenSet = false;
216 bool m_jobNameHasBeenSet = false;
217 bool m_languageCodeHasBeenSet = false;
218 bool m_clientRequestTokenHasBeenSet = true;
219 bool m_targetEventTypesHasBeenSet = false;
220 bool m_tagsHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace Comprehend
225} // namespace Aws
AWS_COMPREHEND_API Aws::String SerializePayload() const override
AWS_COMPREHEND_API StartEventsDetectionJobRequest()=default
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartEventsDetectionJobRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
StartEventsDetectionJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
StartEventsDetectionJobRequest & AddTargetEventTypes(TargetEventTypesT &&value)
StartEventsDetectionJobRequest & WithInputDataConfig(InputDataConfigT &&value)
StartEventsDetectionJobRequest & WithTargetEventTypes(TargetEventTypesT &&value)
StartEventsDetectionJobRequest & WithTags(TagsT &&value)
StartEventsDetectionJobRequest & WithLanguageCode(LanguageCode value)
StartEventsDetectionJobRequest & AddTags(TagsT &&value)
StartEventsDetectionJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StartEventsDetectionJobRequest & WithJobName(JobNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector