AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
50 inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); }
51 inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); }
52 inline CreateProjectVersionRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
53 inline CreateProjectVersionRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;}
54 inline CreateProjectVersionRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
56
58
61 inline const Aws::String& GetVersionName() const{ return m_versionName; }
62 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
63 inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
64 inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
65 inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
66 inline CreateProjectVersionRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
67 inline CreateProjectVersionRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
68 inline CreateProjectVersionRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
70
72
77 inline const OutputConfig& GetOutputConfig() const{ return m_outputConfig; }
78 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
79 inline void SetOutputConfig(const OutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; }
80 inline void SetOutputConfig(OutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); }
81 inline CreateProjectVersionRequest& WithOutputConfig(const OutputConfig& value) { SetOutputConfig(value); return *this;}
82 inline CreateProjectVersionRequest& WithOutputConfig(OutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;}
84
86
92 inline const TrainingData& GetTrainingData() const{ return m_trainingData; }
93 inline bool TrainingDataHasBeenSet() const { return m_trainingDataHasBeenSet; }
94 inline void SetTrainingData(const TrainingData& value) { m_trainingDataHasBeenSet = true; m_trainingData = value; }
95 inline void SetTrainingData(TrainingData&& value) { m_trainingDataHasBeenSet = true; m_trainingData = std::move(value); }
96 inline CreateProjectVersionRequest& WithTrainingData(const TrainingData& value) { SetTrainingData(value); return *this;}
97 inline CreateProjectVersionRequest& WithTrainingData(TrainingData&& value) { SetTrainingData(std::move(value)); return *this;}
99
101
107 inline const TestingData& GetTestingData() const{ return m_testingData; }
108 inline bool TestingDataHasBeenSet() const { return m_testingDataHasBeenSet; }
109 inline void SetTestingData(const TestingData& value) { m_testingDataHasBeenSet = true; m_testingData = value; }
110 inline void SetTestingData(TestingData&& value) { m_testingDataHasBeenSet = true; m_testingData = std::move(value); }
111 inline CreateProjectVersionRequest& WithTestingData(const TestingData& value) { SetTestingData(value); return *this;}
112 inline CreateProjectVersionRequest& WithTestingData(TestingData&& value) { SetTestingData(std::move(value)); return *this;}
114
116
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
125 inline CreateProjectVersionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
126 inline CreateProjectVersionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
127 inline CreateProjectVersionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline CreateProjectVersionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
129 inline CreateProjectVersionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
130 inline CreateProjectVersionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
131 inline CreateProjectVersionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline CreateProjectVersionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
134
136
150 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
151 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
152 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
153 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
154 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
155 inline CreateProjectVersionRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
156 inline CreateProjectVersionRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
157 inline CreateProjectVersionRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
159
161
164 inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
165 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
166 inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
167 inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
168 inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
170 inline CreateProjectVersionRequest& WithVersionDescription(Aws::String&& value) { SetVersionDescription(std::move(value)); return *this;}
171 inline CreateProjectVersionRequest& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
173
175
180 inline const CustomizationFeatureConfig& GetFeatureConfig() const{ return m_featureConfig; }
181 inline bool FeatureConfigHasBeenSet() const { return m_featureConfigHasBeenSet; }
182 inline void SetFeatureConfig(const CustomizationFeatureConfig& value) { m_featureConfigHasBeenSet = true; m_featureConfig = value; }
183 inline void SetFeatureConfig(CustomizationFeatureConfig&& value) { m_featureConfigHasBeenSet = true; m_featureConfig = std::move(value); }
187 private:
188
189 Aws::String m_projectArn;
190 bool m_projectArnHasBeenSet = false;
191
192 Aws::String m_versionName;
193 bool m_versionNameHasBeenSet = false;
194
195 OutputConfig m_outputConfig;
196 bool m_outputConfigHasBeenSet = false;
197
198 TrainingData m_trainingData;
199 bool m_trainingDataHasBeenSet = false;
200
201 TestingData m_testingData;
202 bool m_testingDataHasBeenSet = false;
203
205 bool m_tagsHasBeenSet = false;
206
207 Aws::String m_kmsKeyId;
208 bool m_kmsKeyIdHasBeenSet = false;
209
210 Aws::String m_versionDescription;
211 bool m_versionDescriptionHasBeenSet = false;
212
213 CustomizationFeatureConfig m_featureConfig;
214 bool m_featureConfigHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace Rekognition
219} // namespace Aws
CreateProjectVersionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateProjectVersionRequest & WithFeatureConfig(CustomizationFeatureConfig &&value)
CreateProjectVersionRequest & WithOutputConfig(OutputConfig &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateProjectVersionRequest & WithTestingData(const TestingData &value)
CreateProjectVersionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateProjectVersionRequest & WithProjectArn(const char *value)
const CustomizationFeatureConfig & GetFeatureConfig() const
CreateProjectVersionRequest & WithVersionName(Aws::String &&value)
CreateProjectVersionRequest & WithKmsKeyId(Aws::String &&value)
CreateProjectVersionRequest & WithVersionDescription(const Aws::String &value)
CreateProjectVersionRequest & WithTrainingData(const TrainingData &value)
CreateProjectVersionRequest & WithKmsKeyId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProjectVersionRequest & WithTestingData(TestingData &&value)
CreateProjectVersionRequest & WithVersionDescription(Aws::String &&value)
CreateProjectVersionRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
CreateProjectVersionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateProjectVersionRequest & AddTags(const char *key, Aws::String &&value)
CreateProjectVersionRequest & AddTags(Aws::String &&key, const char *value)
void SetFeatureConfig(const CustomizationFeatureConfig &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateProjectVersionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateProjectVersionRequest & WithOutputConfig(const OutputConfig &value)
CreateProjectVersionRequest & AddTags(const char *key, const char *value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateProjectVersionRequest & WithVersionName(const Aws::String &value)
CreateProjectVersionRequest & WithProjectArn(const Aws::String &value)
CreateProjectVersionRequest & WithTrainingData(TrainingData &&value)
CreateProjectVersionRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateProjectVersionRequest & WithKmsKeyId(const Aws::String &value)
CreateProjectVersionRequest & WithProjectArn(Aws::String &&value)
CreateProjectVersionRequest & WithVersionName(const char *value)
CreateProjectVersionRequest & WithFeatureConfig(const CustomizationFeatureConfig &value)
CreateProjectVersionRequest & WithVersionDescription(const char *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