AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateModelInvocationJobRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/ModelInvocationJobInputDataConfig.h>
10#include <aws/bedrock/model/ModelInvocationJobOutputDataConfig.h>
11#include <aws/bedrock/model/ModelInvocationType.h>
12#include <aws/bedrock/model/Tag.h>
13#include <aws/bedrock/model/VpcConfig.h>
14#include <aws/core/utils/UUID.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Bedrock {
22namespace Model {
23
27 public:
28 AWS_BEDROCK_API CreateModelInvocationJobRequest() = 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 "CreateModelInvocationJob"; }
35
36 AWS_BEDROCK_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetJobName() const { return m_jobName; }
43 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
44 template <typename JobNameT = Aws::String>
45 void SetJobName(JobNameT&& value) {
46 m_jobNameHasBeenSet = true;
47 m_jobName = std::forward<JobNameT>(value);
48 }
49 template <typename JobNameT = Aws::String>
51 SetJobName(std::forward<JobNameT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
65 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
66 template <typename RoleArnT = Aws::String>
67 void SetRoleArn(RoleArnT&& value) {
68 m_roleArnHasBeenSet = true;
69 m_roleArn = std::forward<RoleArnT>(value);
70 }
71 template <typename RoleArnT = Aws::String>
73 SetRoleArn(std::forward<RoleArnT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
87 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
88 template <typename ClientRequestTokenT = Aws::String>
90 m_clientRequestTokenHasBeenSet = true;
91 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
92 }
93 template <typename ClientRequestTokenT = Aws::String>
95 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetModelId() const { return m_modelId; }
106 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
107 template <typename ModelIdT = Aws::String>
108 void SetModelId(ModelIdT&& value) {
109 m_modelIdHasBeenSet = true;
110 m_modelId = std::forward<ModelIdT>(value);
111 }
112 template <typename ModelIdT = Aws::String>
114 SetModelId(std::forward<ModelIdT>(value));
115 return *this;
116 }
118
120
123 inline const ModelInvocationJobInputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
124 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
125 template <typename InputDataConfigT = ModelInvocationJobInputDataConfig>
127 m_inputDataConfigHasBeenSet = true;
128 m_inputDataConfig = std::forward<InputDataConfigT>(value);
129 }
130 template <typename InputDataConfigT = ModelInvocationJobInputDataConfig>
132 SetInputDataConfig(std::forward<InputDataConfigT>(value));
133 return *this;
134 }
136
138
141 inline const ModelInvocationJobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
142 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
143 template <typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
145 m_outputDataConfigHasBeenSet = true;
146 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
147 }
148 template <typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
150 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
151 return *this;
152 }
154
156
162 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
163 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
164 template <typename VpcConfigT = VpcConfig>
165 void SetVpcConfig(VpcConfigT&& value) {
166 m_vpcConfigHasBeenSet = true;
167 m_vpcConfig = std::forward<VpcConfigT>(value);
168 }
169 template <typename VpcConfigT = VpcConfig>
171 SetVpcConfig(std::forward<VpcConfigT>(value));
172 return *this;
173 }
175
177
181 inline int GetTimeoutDurationInHours() const { return m_timeoutDurationInHours; }
182 inline bool TimeoutDurationInHoursHasBeenSet() const { return m_timeoutDurationInHoursHasBeenSet; }
183 inline void SetTimeoutDurationInHours(int value) {
184 m_timeoutDurationInHoursHasBeenSet = true;
185 m_timeoutDurationInHours = value;
186 }
189 return *this;
190 }
192
194
200 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
201 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 template <typename TagsT = Aws::Vector<Tag>>
203 void SetTags(TagsT&& value) {
204 m_tagsHasBeenSet = true;
205 m_tags = std::forward<TagsT>(value);
206 }
207 template <typename TagsT = Aws::Vector<Tag>>
209 SetTags(std::forward<TagsT>(value));
210 return *this;
211 }
212 template <typename TagsT = Tag>
214 m_tagsHasBeenSet = true;
215 m_tags.emplace_back(std::forward<TagsT>(value));
216 return *this;
217 }
219
221
224 inline ModelInvocationType GetModelInvocationType() const { return m_modelInvocationType; }
225 inline bool ModelInvocationTypeHasBeenSet() const { return m_modelInvocationTypeHasBeenSet; }
227 m_modelInvocationTypeHasBeenSet = true;
228 m_modelInvocationType = value;
229 }
232 return *this;
233 }
235 private:
236 Aws::String m_jobName;
237
238 Aws::String m_roleArn;
239
240 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
241
242 Aws::String m_modelId;
243
244 ModelInvocationJobInputDataConfig m_inputDataConfig;
245
246 ModelInvocationJobOutputDataConfig m_outputDataConfig;
247
248 VpcConfig m_vpcConfig;
249
250 int m_timeoutDurationInHours{0};
251
252 Aws::Vector<Tag> m_tags;
253
255 bool m_jobNameHasBeenSet = false;
256 bool m_roleArnHasBeenSet = false;
257 bool m_clientRequestTokenHasBeenSet = true;
258 bool m_modelIdHasBeenSet = false;
259 bool m_inputDataConfigHasBeenSet = false;
260 bool m_outputDataConfigHasBeenSet = false;
261 bool m_vpcConfigHasBeenSet = false;
262 bool m_timeoutDurationInHoursHasBeenSet = false;
263 bool m_tagsHasBeenSet = false;
264 bool m_modelInvocationTypeHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace Bedrock
269} // namespace Aws
CreateModelInvocationJobRequest & WithModelInvocationType(ModelInvocationType value)
CreateModelInvocationJobRequest & WithTimeoutDurationInHours(int value)
CreateModelInvocationJobRequest & WithVpcConfig(VpcConfigT &&value)
CreateModelInvocationJobRequest & AddTags(TagsT &&value)
CreateModelInvocationJobRequest & WithJobName(JobNameT &&value)
const ModelInvocationJobOutputDataConfig & GetOutputDataConfig() const
CreateModelInvocationJobRequest & WithRoleArn(RoleArnT &&value)
CreateModelInvocationJobRequest & WithTags(TagsT &&value)
CreateModelInvocationJobRequest & WithInputDataConfig(InputDataConfigT &&value)
CreateModelInvocationJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
const ModelInvocationJobInputDataConfig & GetInputDataConfig() const
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateModelInvocationJobRequest & WithModelId(ModelIdT &&value)
AWS_BEDROCK_API CreateModelInvocationJobRequest()=default
CreateModelInvocationJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector