AWS SDK for C++  1.9.108
AWS SDK for C++
CreateModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace LookoutforVision
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateModel"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetProjectName() const{ return m_projectName; }
45 
49  inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
50 
54  inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
55 
59  inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
60 
64  inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
65 
69  inline CreateModelRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
70 
74  inline CreateModelRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
75 
79  inline CreateModelRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
80 
81 
85  inline const Aws::String& GetDescription() const{ return m_description; }
86 
90  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 
95  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 
100  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
101 
105  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 
110  inline CreateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 
115  inline CreateModelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
116 
120  inline CreateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
121 
122 
134  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
135 
147  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
148 
160  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
161 
173  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
174 
186  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
187 
199  inline CreateModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
200 
212  inline CreateModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
213 
225  inline CreateModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
226 
227 
231  inline const OutputConfig& GetOutputConfig() const{ return m_outputConfig; }
232 
236  inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
237 
241  inline void SetOutputConfig(const OutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; }
242 
246  inline void SetOutputConfig(OutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); }
247 
251  inline CreateModelRequest& WithOutputConfig(const OutputConfig& value) { SetOutputConfig(value); return *this;}
252 
256  inline CreateModelRequest& WithOutputConfig(OutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;}
257 
258 
266  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
267 
275  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
276 
284  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
285 
293  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
294 
302  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
303 
311  inline CreateModelRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
312 
320  inline CreateModelRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
321 
329  inline CreateModelRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
330 
331 
335  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
336 
340  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
341 
345  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
346 
350  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
351 
355  inline CreateModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
356 
360  inline CreateModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
361 
365  inline CreateModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
366 
370  inline CreateModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
371 
372  private:
373 
374  Aws::String m_projectName;
375  bool m_projectNameHasBeenSet;
376 
377  Aws::String m_description;
378  bool m_descriptionHasBeenSet;
379 
380  Aws::String m_clientToken;
381  bool m_clientTokenHasBeenSet;
382 
383  OutputConfig m_outputConfig;
384  bool m_outputConfigHasBeenSet;
385 
386  Aws::String m_kmsKeyId;
387  bool m_kmsKeyIdHasBeenSet;
388 
389  Aws::Vector<Tag> m_tags;
390  bool m_tagsHasBeenSet;
391  };
392 
393 } // namespace Model
394 } // namespace LookoutforVision
395 } // namespace Aws
Aws::LookoutforVision::Model::CreateModelRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateModelRequest.h:350
OutputConfig.h
Aws::LookoutforVision::Model::CreateModelRequest::WithClientToken
CreateModelRequest & WithClientToken(Aws::String &&value)
Definition: CreateModelRequest.h:212
Aws::LookoutforVision::Model::CreateModelRequest::WithOutputConfig
CreateModelRequest & WithOutputConfig(const OutputConfig &value)
Definition: CreateModelRequest.h:251
Aws::LookoutforVision::Model::CreateModelRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateModelRequest.h:85
LookoutforVisionRequest.h
Aws::LookoutforVision::Model::CreateModelRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateModelRequest.h:340
Aws::LookoutforVision::Model::CreateModelRequest::WithClientToken
CreateModelRequest & WithClientToken(const char *value)
Definition: CreateModelRequest.h:225
Aws::LookoutforVision::Model::CreateModelRequest::WithDescription
CreateModelRequest & WithDescription(const char *value)
Definition: CreateModelRequest.h:120
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::LookoutforVision::Model::CreateModelRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: CreateModelRequest.h:275
Tag.h
Aws::LookoutforVision::Model::CreateModelRequest::AddTags
CreateModelRequest & AddTags(Tag &&value)
Definition: CreateModelRequest.h:370
Aws::LookoutforVision::Model::OutputConfig
Definition: OutputConfig.h:33
Aws::LookoutforVision::Model::CreateModelRequest::GetProjectName
const Aws::String & GetProjectName() const
Definition: CreateModelRequest.h:44
Aws::LookoutforVision::Model::CreateModelRequest::ProjectNameHasBeenSet
bool ProjectNameHasBeenSet() const
Definition: CreateModelRequest.h:49
Aws::LookoutforVision::Model::CreateModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LookoutforVision::Model::CreateModelRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateModelRequest.h:160
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::LookoutforVision::Model::CreateModelRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateModelRequest.h:186
Aws::LookoutforVision::Model::CreateModelRequest::SetProjectName
void SetProjectName(const Aws::String &value)
Definition: CreateModelRequest.h:54
Aws::LookoutforVision::Model::CreateModelRequest::SetProjectName
void SetProjectName(const char *value)
Definition: CreateModelRequest.h:64
LookoutforVision_EXPORTS.h
AWSVector.h
Aws::LookoutforVision::Model::CreateModelRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: CreateModelRequest.h:293
Aws::LookoutforVision::Model::CreateModelRequest::WithDescription
CreateModelRequest & WithDescription(Aws::String &&value)
Definition: CreateModelRequest.h:115
Aws::LookoutforVision::Model::CreateModelRequest::WithTags
CreateModelRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateModelRequest.h:360
Aws::LookoutforVision::Model::CreateModelRequest::GetOutputConfig
const OutputConfig & GetOutputConfig() const
Definition: CreateModelRequest.h:231
Aws::LookoutforVision::Model::CreateModelRequest::WithOutputConfig
CreateModelRequest & WithOutputConfig(OutputConfig &&value)
Definition: CreateModelRequest.h:256
Aws::LookoutforVision::Model::CreateModelRequest::WithTags
CreateModelRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateModelRequest.h:355
Aws::LookoutforVision::Model::CreateModelRequest::WithDescription
CreateModelRequest & WithDescription(const Aws::String &value)
Definition: CreateModelRequest.h:110
Aws::LookoutforVision::Model::CreateModelRequest::WithProjectName
CreateModelRequest & WithProjectName(const char *value)
Definition: CreateModelRequest.h:79
Aws::LookoutforVision::Model::CreateModelRequest::WithProjectName
CreateModelRequest & WithProjectName(const Aws::String &value)
Definition: CreateModelRequest.h:69
Aws::LookoutforVision::Model::CreateModelRequest::SetProjectName
void SetProjectName(Aws::String &&value)
Definition: CreateModelRequest.h:59
Aws::LookoutforVision::Model::CreateModelRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateModelRequest.h:147
Aws::LookoutforVision::Model::CreateModelRequest::WithKmsKeyId
CreateModelRequest & WithKmsKeyId(Aws::String &&value)
Definition: CreateModelRequest.h:320
Aws::LookoutforVision::LookoutforVisionRequest
Definition: LookoutforVisionRequest.h:18
Aws::LookoutforVision::Model::CreateModelRequest::SetOutputConfig
void SetOutputConfig(const OutputConfig &value)
Definition: CreateModelRequest.h:241
Aws::LookoutforVision::Model::CreateModelRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: CreateModelRequest.h:302
Aws::LookoutforVision::Model::CreateModelRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateModelRequest.h:105
Aws::LookoutforVision::Model::CreateModelRequest::WithClientToken
CreateModelRequest & WithClientToken(const Aws::String &value)
Definition: CreateModelRequest.h:199
Aws::LookoutforVision::Model::CreateModelRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateModelRequest.h:335
Aws::LookoutforVision::Model::CreateModelRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateModelRequest.h:95
AWSString.h
Aws::LookoutforVision::Model::CreateModelRequest::CreateModelRequest
CreateModelRequest()
Aws::LookoutforVision::Model::CreateModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateModelRequest.h:34
Aws::LookoutforVision::Model::CreateModelRequest
Definition: CreateModelRequest.h:26
Aws::LookoutforVision::Model::CreateModelRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateModelRequest.h:100
Aws::LookoutforVision::Model::CreateModelRequest::WithKmsKeyId
CreateModelRequest & WithKmsKeyId(const Aws::String &value)
Definition: CreateModelRequest.h:311
Aws::LookoutforVision::Model::CreateModelRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: CreateModelRequest.h:284
Aws::LookoutforVision::Model::CreateModelRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateModelRequest.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::LookoutforVision::Model::CreateModelRequest::AddTags
CreateModelRequest & AddTags(const Tag &value)
Definition: CreateModelRequest.h:365
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LOOKOUTFORVISION_API
#define AWS_LOOKOUTFORVISION_API
Definition: LookoutforVision_EXPORTS.h:28
Aws::LookoutforVision::Model::CreateModelRequest::WithProjectName
CreateModelRequest & WithProjectName(Aws::String &&value)
Definition: CreateModelRequest.h:74
Aws::LookoutforVision::Model::CreateModelRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateModelRequest.h:173
Aws::LookoutforVision::Model::CreateModelRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateModelRequest.h:345
Aws::LookoutforVision::Model::CreateModelRequest::WithKmsKeyId
CreateModelRequest & WithKmsKeyId(const char *value)
Definition: CreateModelRequest.h:329
Aws::LookoutforVision::Model::Tag
Definition: Tag.h:33
Aws::LookoutforVision::Model::CreateModelRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::LookoutforVision::Model::CreateModelRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: CreateModelRequest.h:266
Aws::LookoutforVision::Model::CreateModelRequest::SetOutputConfig
void SetOutputConfig(OutputConfig &&value)
Definition: CreateModelRequest.h:246
Aws::LookoutforVision::Model::CreateModelRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateModelRequest.h:134
Aws::LookoutforVision::Model::CreateModelRequest::OutputConfigHasBeenSet
bool OutputConfigHasBeenSet() const
Definition: CreateModelRequest.h:236
UUID.h