AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CreateCustomModelRequest.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/BedrockRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock/model/ModelDataSource.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Bedrock
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BEDROCK_API CreateCustomModelRequest() = default;
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 "CreateCustomModel"; }
35
36 AWS_BEDROCK_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetModelName() const { return m_modelName; }
44 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
45 template<typename ModelNameT = Aws::String>
46 void SetModelName(ModelNameT&& value) { m_modelNameHasBeenSet = true; m_modelName = std::forward<ModelNameT>(value); }
47 template<typename ModelNameT = Aws::String>
48 CreateCustomModelRequest& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
50
52
56 inline const ModelDataSource& GetModelSourceConfig() const { return m_modelSourceConfig; }
57 inline bool ModelSourceConfigHasBeenSet() const { return m_modelSourceConfigHasBeenSet; }
58 template<typename ModelSourceConfigT = ModelDataSource>
59 void SetModelSourceConfig(ModelSourceConfigT&& value) { m_modelSourceConfigHasBeenSet = true; m_modelSourceConfig = std::forward<ModelSourceConfigT>(value); }
60 template<typename ModelSourceConfigT = ModelDataSource>
61 CreateCustomModelRequest& WithModelSourceConfig(ModelSourceConfigT&& value) { SetModelSourceConfig(std::forward<ModelSourceConfigT>(value)); return *this;}
63
65
74 inline const Aws::String& GetModelKmsKeyArn() const { return m_modelKmsKeyArn; }
75 inline bool ModelKmsKeyArnHasBeenSet() const { return m_modelKmsKeyArnHasBeenSet; }
76 template<typename ModelKmsKeyArnT = Aws::String>
77 void SetModelKmsKeyArn(ModelKmsKeyArnT&& value) { m_modelKmsKeyArnHasBeenSet = true; m_modelKmsKeyArn = std::forward<ModelKmsKeyArnT>(value); }
78 template<typename ModelKmsKeyArnT = Aws::String>
79 CreateCustomModelRequest& WithModelKmsKeyArn(ModelKmsKeyArnT&& value) { SetModelKmsKeyArn(std::forward<ModelKmsKeyArnT>(value)); return *this;}
81
83
92 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
93 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
94 template<typename RoleArnT = Aws::String>
95 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
96 template<typename RoleArnT = Aws::String>
97 CreateCustomModelRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
99
101
110 inline const Aws::Vector<Tag>& GetModelTags() const { return m_modelTags; }
111 inline bool ModelTagsHasBeenSet() const { return m_modelTagsHasBeenSet; }
112 template<typename ModelTagsT = Aws::Vector<Tag>>
113 void SetModelTags(ModelTagsT&& value) { m_modelTagsHasBeenSet = true; m_modelTags = std::forward<ModelTagsT>(value); }
114 template<typename ModelTagsT = Aws::Vector<Tag>>
115 CreateCustomModelRequest& WithModelTags(ModelTagsT&& value) { SetModelTags(std::forward<ModelTagsT>(value)); return *this;}
116 template<typename ModelTagsT = Tag>
117 CreateCustomModelRequest& AddModelTags(ModelTagsT&& value) { m_modelTagsHasBeenSet = true; m_modelTags.emplace_back(std::forward<ModelTagsT>(value)); return *this; }
119
121
128 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
129 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
130 template<typename ClientRequestTokenT = Aws::String>
131 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
132 template<typename ClientRequestTokenT = Aws::String>
133 CreateCustomModelRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
135 private:
136
137 Aws::String m_modelName;
138 bool m_modelNameHasBeenSet = false;
139
140 ModelDataSource m_modelSourceConfig;
141 bool m_modelSourceConfigHasBeenSet = false;
142
143 Aws::String m_modelKmsKeyArn;
144 bool m_modelKmsKeyArnHasBeenSet = false;
145
146 Aws::String m_roleArn;
147 bool m_roleArnHasBeenSet = false;
148
149 Aws::Vector<Tag> m_modelTags;
150 bool m_modelTagsHasBeenSet = false;
151
152 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
153 bool m_clientRequestTokenHasBeenSet = true;
154 };
155
156} // namespace Model
157} // namespace Bedrock
158} // 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