AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartTargetedSentimentDetectionJobRequest.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/comprehend/model/VpcConfig.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/comprehend/model/Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace Comprehend
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_COMPREHEND_API StartTargetedSentimentDetectionJobRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "StartTargetedSentimentDetectionJob"; }
38
39 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
40
42
43
45
46 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
47 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
48 template<typename InputDataConfigT = InputDataConfig>
49 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
50 template<typename InputDataConfigT = InputDataConfig>
51 StartTargetedSentimentDetectionJobRequest& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
53
55
58 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
59 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
60 template<typename OutputDataConfigT = OutputDataConfig>
61 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
62 template<typename OutputDataConfigT = OutputDataConfig>
63 StartTargetedSentimentDetectionJobRequest& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
65
67
73 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
74 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
75 template<typename DataAccessRoleArnT = Aws::String>
76 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value); }
77 template<typename DataAccessRoleArnT = Aws::String>
78 StartTargetedSentimentDetectionJobRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) { SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value)); return *this;}
80
82
85 inline const Aws::String& GetJobName() const { return m_jobName; }
86 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
87 template<typename JobNameT = Aws::String>
88 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
89 template<typename JobNameT = Aws::String>
90 StartTargetedSentimentDetectionJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
92
94
98 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
99 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
100 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
103
105
109 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
110 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
111 template<typename ClientRequestTokenT = Aws::String>
112 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
113 template<typename ClientRequestTokenT = Aws::String>
114 StartTargetedSentimentDetectionJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
116
118
127 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
128 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
129 template<typename VolumeKmsKeyIdT = Aws::String>
130 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value); }
131 template<typename VolumeKmsKeyIdT = Aws::String>
132 StartTargetedSentimentDetectionJobRequest& WithVolumeKmsKeyId(VolumeKmsKeyIdT&& value) { SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value)); return *this;}
134
136
137 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
138 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
139 template<typename VpcConfigT = VpcConfig>
140 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
141 template<typename VpcConfigT = VpcConfig>
142 StartTargetedSentimentDetectionJobRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
144
146
152 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template<typename TagsT = Aws::Vector<Tag>>
155 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
156 template<typename TagsT = Aws::Vector<Tag>>
157 StartTargetedSentimentDetectionJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
158 template<typename TagsT = Tag>
159 StartTargetedSentimentDetectionJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
161 private:
162
163 InputDataConfig m_inputDataConfig;
164 bool m_inputDataConfigHasBeenSet = false;
165
166 OutputDataConfig m_outputDataConfig;
167 bool m_outputDataConfigHasBeenSet = false;
168
169 Aws::String m_dataAccessRoleArn;
170 bool m_dataAccessRoleArnHasBeenSet = false;
171
172 Aws::String m_jobName;
173 bool m_jobNameHasBeenSet = false;
174
175 LanguageCode m_languageCode{LanguageCode::NOT_SET};
176 bool m_languageCodeHasBeenSet = false;
177
178 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
179 bool m_clientRequestTokenHasBeenSet = true;
180
181 Aws::String m_volumeKmsKeyId;
182 bool m_volumeKmsKeyIdHasBeenSet = false;
183
184 VpcConfig m_vpcConfig;
185 bool m_vpcConfigHasBeenSet = false;
186
187 Aws::Vector<Tag> m_tags;
188 bool m_tagsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace Comprehend
193} // namespace Aws
StartTargetedSentimentDetectionJobRequest & WithVpcConfig(VpcConfigT &&value)
StartTargetedSentimentDetectionJobRequest & WithLanguageCode(LanguageCode value)
StartTargetedSentimentDetectionJobRequest & WithJobName(JobNameT &&value)
StartTargetedSentimentDetectionJobRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
StartTargetedSentimentDetectionJobRequest & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
StartTargetedSentimentDetectionJobRequest & WithInputDataConfig(InputDataConfigT &&value)
StartTargetedSentimentDetectionJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartTargetedSentimentDetectionJobRequest & WithClientRequestToken(ClientRequestTokenT &&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