AWS SDK for C++

AWS SDK for C++ Version 1.11.699

Loading...
Searching...
No Matches
CreateCustomModelRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/ModelDataSource.h>
10#include <aws/bedrock/model/Tag.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Bedrock {
19namespace Model {
20
24 public:
25 AWS_BEDROCK_API CreateCustomModelRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateCustomModel"; }
32
33 AWS_BEDROCK_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetModelName() const { return m_modelName; }
40 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
41 template <typename ModelNameT = Aws::String>
42 void SetModelName(ModelNameT&& value) {
43 m_modelNameHasBeenSet = true;
44 m_modelName = std::forward<ModelNameT>(value);
45 }
46 template <typename ModelNameT = Aws::String>
48 SetModelName(std::forward<ModelNameT>(value));
49 return *this;
50 }
52
54
58 inline const ModelDataSource& GetModelSourceConfig() const { return m_modelSourceConfig; }
59 inline bool ModelSourceConfigHasBeenSet() const { return m_modelSourceConfigHasBeenSet; }
60 template <typename ModelSourceConfigT = ModelDataSource>
61 void SetModelSourceConfig(ModelSourceConfigT&& value) {
62 m_modelSourceConfigHasBeenSet = true;
63 m_modelSourceConfig = std::forward<ModelSourceConfigT>(value);
64 }
65 template <typename ModelSourceConfigT = ModelDataSource>
66 CreateCustomModelRequest& WithModelSourceConfig(ModelSourceConfigT&& value) {
67 SetModelSourceConfig(std::forward<ModelSourceConfigT>(value));
68 return *this;
69 }
71
73
82 inline const Aws::String& GetModelKmsKeyArn() const { return m_modelKmsKeyArn; }
83 inline bool ModelKmsKeyArnHasBeenSet() const { return m_modelKmsKeyArnHasBeenSet; }
84 template <typename ModelKmsKeyArnT = Aws::String>
85 void SetModelKmsKeyArn(ModelKmsKeyArnT&& value) {
86 m_modelKmsKeyArnHasBeenSet = true;
87 m_modelKmsKeyArn = std::forward<ModelKmsKeyArnT>(value);
88 }
89 template <typename ModelKmsKeyArnT = Aws::String>
90 CreateCustomModelRequest& WithModelKmsKeyArn(ModelKmsKeyArnT&& value) {
91 SetModelKmsKeyArn(std::forward<ModelKmsKeyArnT>(value));
92 return *this;
93 }
95
97
106 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
107 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
108 template <typename RoleArnT = Aws::String>
109 void SetRoleArn(RoleArnT&& value) {
110 m_roleArnHasBeenSet = true;
111 m_roleArn = std::forward<RoleArnT>(value);
112 }
113 template <typename RoleArnT = Aws::String>
115 SetRoleArn(std::forward<RoleArnT>(value));
116 return *this;
117 }
119
121
130 inline const Aws::Vector<Tag>& GetModelTags() const { return m_modelTags; }
131 inline bool ModelTagsHasBeenSet() const { return m_modelTagsHasBeenSet; }
132 template <typename ModelTagsT = Aws::Vector<Tag>>
133 void SetModelTags(ModelTagsT&& value) {
134 m_modelTagsHasBeenSet = true;
135 m_modelTags = std::forward<ModelTagsT>(value);
136 }
137 template <typename ModelTagsT = Aws::Vector<Tag>>
139 SetModelTags(std::forward<ModelTagsT>(value));
140 return *this;
141 }
142 template <typename ModelTagsT = Tag>
144 m_modelTagsHasBeenSet = true;
145 m_modelTags.emplace_back(std::forward<ModelTagsT>(value));
146 return *this;
147 }
149
151
158 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
159 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
160 template <typename ClientRequestTokenT = Aws::String>
161 void SetClientRequestToken(ClientRequestTokenT&& value) {
162 m_clientRequestTokenHasBeenSet = true;
163 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
164 }
165 template <typename ClientRequestTokenT = Aws::String>
166 CreateCustomModelRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
167 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_modelName;
173 bool m_modelNameHasBeenSet = false;
174
175 ModelDataSource m_modelSourceConfig;
176 bool m_modelSourceConfigHasBeenSet = false;
177
178 Aws::String m_modelKmsKeyArn;
179 bool m_modelKmsKeyArnHasBeenSet = false;
180
181 Aws::String m_roleArn;
182 bool m_roleArnHasBeenSet = false;
183
184 Aws::Vector<Tag> m_modelTags;
185 bool m_modelTagsHasBeenSet = false;
186
187 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
188 bool m_clientRequestTokenHasBeenSet = true;
189};
190
191} // namespace Model
192} // namespace Bedrock
193} // namespace Aws
CreateCustomModelRequest & WithModelName(ModelNameT &&value)
CreateCustomModelRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateCustomModelRequest & WithRoleArn(RoleArnT &&value)
void SetModelSourceConfig(ModelSourceConfigT &&value)
CreateCustomModelRequest & WithModelSourceConfig(ModelSourceConfigT &&value)
AWS_BEDROCK_API CreateCustomModelRequest()=default
CreateCustomModelRequest & AddModelTags(ModelTagsT &&value)
CreateCustomModelRequest & WithModelKmsKeyArn(ModelKmsKeyArnT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateCustomModelRequest & WithModelTags(ModelTagsT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector