AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateModelRequest.h
1
6#pragma once
7#include <aws/lookoutvision/LookoutforVision_EXPORTS.h>
8#include <aws/lookoutvision/LookoutforVisionRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lookoutvision/model/OutputConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lookoutvision/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace LookoutforVision
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LOOKOUTFORVISION_API CreateModelRequest();
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_LOOKOUTFORVISION_API Aws::String SerializePayload() const override;
37
38 AWS_LOOKOUTFORVISION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetProjectName() const{ return m_projectName; }
46 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
47 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
48 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
49 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
50 inline CreateModelRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
51 inline CreateModelRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
52 inline CreateModelRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreateModelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
84 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
85 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
86 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
87 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
88 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
89 inline CreateModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
90 inline CreateModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
91 inline CreateModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
93
95
98 inline const OutputConfig& GetOutputConfig() const{ return m_outputConfig; }
99 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
100 inline void SetOutputConfig(const OutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; }
101 inline void SetOutputConfig(OutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); }
102 inline CreateModelRequest& WithOutputConfig(const OutputConfig& value) { SetOutputConfig(value); return *this;}
103 inline CreateModelRequest& WithOutputConfig(OutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;}
105
107
113 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
114 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
115 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
116 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
117 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
118 inline CreateModelRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
119 inline CreateModelRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
120 inline CreateModelRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
122
124
127 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
130 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
131 inline CreateModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
132 inline CreateModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
133 inline CreateModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
134 inline CreateModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
136 private:
137
138 Aws::String m_projectName;
139 bool m_projectNameHasBeenSet = false;
140
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143
144 Aws::String m_clientToken;
145 bool m_clientTokenHasBeenSet = false;
146
147 OutputConfig m_outputConfig;
148 bool m_outputConfigHasBeenSet = false;
149
150 Aws::String m_kmsKeyId;
151 bool m_kmsKeyIdHasBeenSet = false;
152
153 Aws::Vector<Tag> m_tags;
154 bool m_tagsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace LookoutforVision
159} // namespace Aws
CreateModelRequest & WithClientToken(Aws::String &&value)
CreateModelRequest & WithKmsKeyId(const Aws::String &value)
CreateModelRequest & AddTags(const Tag &value)
CreateModelRequest & WithProjectName(const char *value)
CreateModelRequest & WithKmsKeyId(Aws::String &&value)
CreateModelRequest & WithKmsKeyId(const char *value)
CreateModelRequest & WithTags(Aws::Vector< Tag > &&value)
CreateModelRequest & WithDescription(Aws::String &&value)
CreateModelRequest & WithDescription(const char *value)
CreateModelRequest & WithDescription(const Aws::String &value)
CreateModelRequest & WithOutputConfig(const OutputConfig &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateModelRequest & WithProjectName(const Aws::String &value)
CreateModelRequest & WithClientToken(const char *value)
CreateModelRequest & WithOutputConfig(OutputConfig &&value)
CreateModelRequest & WithProjectName(Aws::String &&value)
CreateModelRequest & WithClientToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_LOOKOUTFORVISION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LOOKOUTFORVISION_API Aws::String SerializePayload() const override
CreateModelRequest & WithTags(const Aws::Vector< Tag > &value)
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