AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
CreateProjectVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rekognition/RekognitionRequest.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/CustomizationFeatureConfig.h>
12#include <aws/rekognition/model/OutputConfig.h>
13#include <aws/rekognition/model/TestingData.h>
14#include <aws/rekognition/model/TrainingData.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Rekognition {
20namespace Model {
21
25 public:
26 AWS_REKOGNITION_API CreateProjectVersionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateProjectVersion"; }
33
34 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
43 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
44 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
45 template <typename ProjectArnT = Aws::String>
46 void SetProjectArn(ProjectArnT&& value) {
47 m_projectArnHasBeenSet = true;
48 m_projectArn = std::forward<ProjectArnT>(value);
49 }
50 template <typename ProjectArnT = Aws::String>
52 SetProjectArn(std::forward<ProjectArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetVersionName() const { return m_versionName; }
62 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
63 template <typename VersionNameT = Aws::String>
64 void SetVersionName(VersionNameT&& value) {
65 m_versionNameHasBeenSet = true;
66 m_versionName = std::forward<VersionNameT>(value);
67 }
68 template <typename VersionNameT = Aws::String>
70 SetVersionName(std::forward<VersionNameT>(value));
71 return *this;
72 }
74
76
81 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
82 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
83 template <typename OutputConfigT = OutputConfig>
84 void SetOutputConfig(OutputConfigT&& value) {
85 m_outputConfigHasBeenSet = true;
86 m_outputConfig = std::forward<OutputConfigT>(value);
87 }
88 template <typename OutputConfigT = OutputConfig>
90 SetOutputConfig(std::forward<OutputConfigT>(value));
91 return *this;
92 }
94
96
102 inline const TrainingData& GetTrainingData() const { return m_trainingData; }
103 inline bool TrainingDataHasBeenSet() const { return m_trainingDataHasBeenSet; }
104 template <typename TrainingDataT = TrainingData>
105 void SetTrainingData(TrainingDataT&& value) {
106 m_trainingDataHasBeenSet = true;
107 m_trainingData = std::forward<TrainingDataT>(value);
108 }
109 template <typename TrainingDataT = TrainingData>
111 SetTrainingData(std::forward<TrainingDataT>(value));
112 return *this;
113 }
115
117
123 inline const TestingData& GetTestingData() const { return m_testingData; }
124 inline bool TestingDataHasBeenSet() const { return m_testingDataHasBeenSet; }
125 template <typename TestingDataT = TestingData>
126 void SetTestingData(TestingDataT&& value) {
127 m_testingDataHasBeenSet = true;
128 m_testingData = std::forward<TestingDataT>(value);
129 }
130 template <typename TestingDataT = TestingData>
132 SetTestingData(std::forward<TestingDataT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 void SetTags(TagsT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags = std::forward<TagsT>(value);
148 }
149 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 SetTags(std::forward<TagsT>(value));
152 return *this;
153 }
154 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
155 CreateProjectVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
158 return *this;
159 }
161
163
177 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
178 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
179 template <typename KmsKeyIdT = Aws::String>
180 void SetKmsKeyId(KmsKeyIdT&& value) {
181 m_kmsKeyIdHasBeenSet = true;
182 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
183 }
184 template <typename KmsKeyIdT = Aws::String>
186 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
196 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
197 template <typename VersionDescriptionT = Aws::String>
198 void SetVersionDescription(VersionDescriptionT&& value) {
199 m_versionDescriptionHasBeenSet = true;
200 m_versionDescription = std::forward<VersionDescriptionT>(value);
201 }
202 template <typename VersionDescriptionT = Aws::String>
204 SetVersionDescription(std::forward<VersionDescriptionT>(value));
205 return *this;
206 }
208
210
215 inline const CustomizationFeatureConfig& GetFeatureConfig() const { return m_featureConfig; }
216 inline bool FeatureConfigHasBeenSet() const { return m_featureConfigHasBeenSet; }
217 template <typename FeatureConfigT = CustomizationFeatureConfig>
218 void SetFeatureConfig(FeatureConfigT&& value) {
219 m_featureConfigHasBeenSet = true;
220 m_featureConfig = std::forward<FeatureConfigT>(value);
221 }
222 template <typename FeatureConfigT = CustomizationFeatureConfig>
224 SetFeatureConfig(std::forward<FeatureConfigT>(value));
225 return *this;
226 }
228 private:
229 Aws::String m_projectArn;
230 bool m_projectArnHasBeenSet = false;
231
232 Aws::String m_versionName;
233 bool m_versionNameHasBeenSet = false;
234
235 OutputConfig m_outputConfig;
236 bool m_outputConfigHasBeenSet = false;
237
238 TrainingData m_trainingData;
239 bool m_trainingDataHasBeenSet = false;
240
241 TestingData m_testingData;
242 bool m_testingDataHasBeenSet = false;
243
245 bool m_tagsHasBeenSet = false;
246
247 Aws::String m_kmsKeyId;
248 bool m_kmsKeyIdHasBeenSet = false;
249
250 Aws::String m_versionDescription;
251 bool m_versionDescriptionHasBeenSet = false;
252
253 CustomizationFeatureConfig m_featureConfig;
254 bool m_featureConfigHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace Rekognition
259} // namespace Aws
CreateProjectVersionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateProjectVersionRequest & WithTrainingData(TrainingDataT &&value)
AWS_REKOGNITION_API CreateProjectVersionRequest()=default
CreateProjectVersionRequest & WithTags(TagsT &&value)
const CustomizationFeatureConfig & GetFeatureConfig() const
CreateProjectVersionRequest & WithVersionName(VersionNameT &&value)
CreateProjectVersionRequest & WithTestingData(TestingDataT &&value)
CreateProjectVersionRequest & WithProjectArn(ProjectArnT &&value)
CreateProjectVersionRequest & WithOutputConfig(OutputConfigT &&value)
CreateProjectVersionRequest & WithFeatureConfig(FeatureConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProjectVersionRequest & WithVersionDescription(VersionDescriptionT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateProjectVersionRequest & WithKmsKeyId(KmsKeyIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String