AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateProjectVersionRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rekognition/model/OutputConfig.h>
11#include <aws/rekognition/model/TrainingData.h>
12#include <aws/rekognition/model/TestingData.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/rekognition/model/CustomizationFeatureConfig.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Rekognition
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_REKOGNITION_API CreateProjectVersionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateProjectVersion"; }
36
37 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
38
39 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
48 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
49 template<typename ProjectArnT = Aws::String>
50 void SetProjectArn(ProjectArnT&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::forward<ProjectArnT>(value); }
51 template<typename ProjectArnT = Aws::String>
52 CreateProjectVersionRequest& WithProjectArn(ProjectArnT&& value) { SetProjectArn(std::forward<ProjectArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetVersionName() const { return m_versionName; }
60 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
61 template<typename VersionNameT = Aws::String>
62 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
63 template<typename VersionNameT = Aws::String>
64 CreateProjectVersionRequest& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
66
68
73 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
74 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
75 template<typename OutputConfigT = OutputConfig>
76 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
77 template<typename OutputConfigT = OutputConfig>
78 CreateProjectVersionRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
80
82
88 inline const TrainingData& GetTrainingData() const { return m_trainingData; }
89 inline bool TrainingDataHasBeenSet() const { return m_trainingDataHasBeenSet; }
90 template<typename TrainingDataT = TrainingData>
91 void SetTrainingData(TrainingDataT&& value) { m_trainingDataHasBeenSet = true; m_trainingData = std::forward<TrainingDataT>(value); }
92 template<typename TrainingDataT = TrainingData>
93 CreateProjectVersionRequest& WithTrainingData(TrainingDataT&& value) { SetTrainingData(std::forward<TrainingDataT>(value)); return *this;}
95
97
103 inline const TestingData& GetTestingData() const { return m_testingData; }
104 inline bool TestingDataHasBeenSet() const { return m_testingDataHasBeenSet; }
105 template<typename TestingDataT = TestingData>
106 void SetTestingData(TestingDataT&& value) { m_testingDataHasBeenSet = true; m_testingData = std::forward<TestingDataT>(value); }
107 template<typename TestingDataT = TestingData>
108 CreateProjectVersionRequest& WithTestingData(TestingDataT&& value) { SetTestingData(std::forward<TestingDataT>(value)); return *this;}
110
112
116 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
120 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 CreateProjectVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
122 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 CreateProjectVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
125 }
127
129
143 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
144 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
145 template<typename KmsKeyIdT = Aws::String>
146 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
147 template<typename KmsKeyIdT = Aws::String>
148 CreateProjectVersionRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
150
152
155 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
156 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
157 template<typename VersionDescriptionT = Aws::String>
158 void SetVersionDescription(VersionDescriptionT&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::forward<VersionDescriptionT>(value); }
159 template<typename VersionDescriptionT = Aws::String>
160 CreateProjectVersionRequest& WithVersionDescription(VersionDescriptionT&& value) { SetVersionDescription(std::forward<VersionDescriptionT>(value)); return *this;}
162
164
169 inline const CustomizationFeatureConfig& GetFeatureConfig() const { return m_featureConfig; }
170 inline bool FeatureConfigHasBeenSet() const { return m_featureConfigHasBeenSet; }
171 template<typename FeatureConfigT = CustomizationFeatureConfig>
172 void SetFeatureConfig(FeatureConfigT&& value) { m_featureConfigHasBeenSet = true; m_featureConfig = std::forward<FeatureConfigT>(value); }
173 template<typename FeatureConfigT = CustomizationFeatureConfig>
174 CreateProjectVersionRequest& WithFeatureConfig(FeatureConfigT&& value) { SetFeatureConfig(std::forward<FeatureConfigT>(value)); return *this;}
176 private:
177
178 Aws::String m_projectArn;
179 bool m_projectArnHasBeenSet = false;
180
181 Aws::String m_versionName;
182 bool m_versionNameHasBeenSet = false;
183
184 OutputConfig m_outputConfig;
185 bool m_outputConfigHasBeenSet = false;
186
187 TrainingData m_trainingData;
188 bool m_trainingDataHasBeenSet = false;
189
190 TestingData m_testingData;
191 bool m_testingDataHasBeenSet = false;
192
194 bool m_tagsHasBeenSet = false;
195
196 Aws::String m_kmsKeyId;
197 bool m_kmsKeyIdHasBeenSet = false;
198
199 Aws::String m_versionDescription;
200 bool m_versionDescriptionHasBeenSet = false;
201
202 CustomizationFeatureConfig m_featureConfig;
203 bool m_featureConfigHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace Rekognition
208} // 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