AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartEventsDetectionJobRequest.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/ComprehendRequest.h>
9#include <aws/comprehend/model/InputDataConfig.h>
10#include <aws/comprehend/model/OutputDataConfig.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/comprehend/model/LanguageCode.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/comprehend/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace Comprehend
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_COMPREHEND_API StartEventsDetectionJobRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "StartEventsDetectionJob"; }
37
38 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
48 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
49 template<typename InputDataConfigT = InputDataConfig>
50 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
51 template<typename InputDataConfigT = InputDataConfig>
52 StartEventsDetectionJobRequest& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
54
56
59 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
60 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
61 template<typename OutputDataConfigT = OutputDataConfig>
62 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
63 template<typename OutputDataConfigT = OutputDataConfig>
64 StartEventsDetectionJobRequest& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
66
68
72 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
73 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
74 template<typename DataAccessRoleArnT = Aws::String>
75 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value); }
76 template<typename DataAccessRoleArnT = Aws::String>
77 StartEventsDetectionJobRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) { SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value)); return *this;}
79
81
84 inline const Aws::String& GetJobName() const { return m_jobName; }
85 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
86 template<typename JobNameT = Aws::String>
87 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
88 template<typename JobNameT = Aws::String>
89 StartEventsDetectionJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
91
93
96 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
97 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
98 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
101
103
107 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
108 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
109 template<typename ClientRequestTokenT = Aws::String>
110 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
111 template<typename ClientRequestTokenT = Aws::String>
112 StartEventsDetectionJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
114
116
119 inline const Aws::Vector<Aws::String>& GetTargetEventTypes() const { return m_targetEventTypes; }
120 inline bool TargetEventTypesHasBeenSet() const { return m_targetEventTypesHasBeenSet; }
121 template<typename TargetEventTypesT = Aws::Vector<Aws::String>>
122 void SetTargetEventTypes(TargetEventTypesT&& value) { m_targetEventTypesHasBeenSet = true; m_targetEventTypes = std::forward<TargetEventTypesT>(value); }
123 template<typename TargetEventTypesT = Aws::Vector<Aws::String>>
124 StartEventsDetectionJobRequest& WithTargetEventTypes(TargetEventTypesT&& value) { SetTargetEventTypes(std::forward<TargetEventTypesT>(value)); return *this;}
125 template<typename TargetEventTypesT = Aws::String>
126 StartEventsDetectionJobRequest& AddTargetEventTypes(TargetEventTypesT&& value) { m_targetEventTypesHasBeenSet = true; m_targetEventTypes.emplace_back(std::forward<TargetEventTypesT>(value)); return *this; }
128
130
136 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template<typename TagsT = Aws::Vector<Tag>>
139 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
140 template<typename TagsT = Aws::Vector<Tag>>
141 StartEventsDetectionJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
142 template<typename TagsT = Tag>
143 StartEventsDetectionJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
145 private:
146
147 InputDataConfig m_inputDataConfig;
148 bool m_inputDataConfigHasBeenSet = false;
149
150 OutputDataConfig m_outputDataConfig;
151 bool m_outputDataConfigHasBeenSet = false;
152
153 Aws::String m_dataAccessRoleArn;
154 bool m_dataAccessRoleArnHasBeenSet = false;
155
156 Aws::String m_jobName;
157 bool m_jobNameHasBeenSet = false;
158
159 LanguageCode m_languageCode{LanguageCode::NOT_SET};
160 bool m_languageCodeHasBeenSet = false;
161
162 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
163 bool m_clientRequestTokenHasBeenSet = true;
164
165 Aws::Vector<Aws::String> m_targetEventTypes;
166 bool m_targetEventTypesHasBeenSet = false;
167
168 Aws::Vector<Tag> m_tags;
169 bool m_tagsHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace Comprehend
174} // 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