AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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/Tag.h>
12#include <aws/bedrock/model/VpcConfig.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Bedrock {
21namespace Model {
22
26 public:
27 AWS_BEDROCK_API CreateModelInvocationJobRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateModelInvocationJob"; }
34
35 AWS_BEDROCK_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetJobName() const { return m_jobName; }
42 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
43 template <typename JobNameT = Aws::String>
44 void SetJobName(JobNameT&& value) {
45 m_jobNameHasBeenSet = true;
46 m_jobName = std::forward<JobNameT>(value);
47 }
48 template <typename JobNameT = Aws::String>
50 SetJobName(std::forward<JobNameT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
64 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
65 template <typename RoleArnT = Aws::String>
66 void SetRoleArn(RoleArnT&& value) {
67 m_roleArnHasBeenSet = true;
68 m_roleArn = std::forward<RoleArnT>(value);
69 }
70 template <typename RoleArnT = Aws::String>
72 SetRoleArn(std::forward<RoleArnT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
86 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
87 template <typename ClientRequestTokenT = Aws::String>
89 m_clientRequestTokenHasBeenSet = true;
90 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
91 }
92 template <typename ClientRequestTokenT = Aws::String>
94 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetModelId() const { return m_modelId; }
105 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
106 template <typename ModelIdT = Aws::String>
107 void SetModelId(ModelIdT&& value) {
108 m_modelIdHasBeenSet = true;
109 m_modelId = std::forward<ModelIdT>(value);
110 }
111 template <typename ModelIdT = Aws::String>
113 SetModelId(std::forward<ModelIdT>(value));
114 return *this;
115 }
117
119
122 inline const ModelInvocationJobInputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
123 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
124 template <typename InputDataConfigT = ModelInvocationJobInputDataConfig>
126 m_inputDataConfigHasBeenSet = true;
127 m_inputDataConfig = std::forward<InputDataConfigT>(value);
128 }
129 template <typename InputDataConfigT = ModelInvocationJobInputDataConfig>
131 SetInputDataConfig(std::forward<InputDataConfigT>(value));
132 return *this;
133 }
135
137
140 inline const ModelInvocationJobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
141 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
142 template <typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
144 m_outputDataConfigHasBeenSet = true;
145 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
146 }
147 template <typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
149 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
150 return *this;
151 }
153
155
161 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
162 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
163 template <typename VpcConfigT = VpcConfig>
164 void SetVpcConfig(VpcConfigT&& value) {
165 m_vpcConfigHasBeenSet = true;
166 m_vpcConfig = std::forward<VpcConfigT>(value);
167 }
168 template <typename VpcConfigT = VpcConfig>
170 SetVpcConfig(std::forward<VpcConfigT>(value));
171 return *this;
172 }
174
176
180 inline int GetTimeoutDurationInHours() const { return m_timeoutDurationInHours; }
181 inline bool TimeoutDurationInHoursHasBeenSet() const { return m_timeoutDurationInHoursHasBeenSet; }
182 inline void SetTimeoutDurationInHours(int value) {
183 m_timeoutDurationInHoursHasBeenSet = true;
184 m_timeoutDurationInHours = value;
185 }
188 return *this;
189 }
191
193
199 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
200 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
201 template <typename TagsT = Aws::Vector<Tag>>
202 void SetTags(TagsT&& value) {
203 m_tagsHasBeenSet = true;
204 m_tags = std::forward<TagsT>(value);
205 }
206 template <typename TagsT = Aws::Vector<Tag>>
208 SetTags(std::forward<TagsT>(value));
209 return *this;
210 }
211 template <typename TagsT = Tag>
213 m_tagsHasBeenSet = true;
214 m_tags.emplace_back(std::forward<TagsT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_jobName;
220
221 Aws::String m_roleArn;
222
223 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
224
225 Aws::String m_modelId;
226
227 ModelInvocationJobInputDataConfig m_inputDataConfig;
228
229 ModelInvocationJobOutputDataConfig m_outputDataConfig;
230
231 VpcConfig m_vpcConfig;
232
233 int m_timeoutDurationInHours{0};
234
235 Aws::Vector<Tag> m_tags;
236 bool m_jobNameHasBeenSet = false;
237 bool m_roleArnHasBeenSet = false;
238 bool m_clientRequestTokenHasBeenSet = true;
239 bool m_modelIdHasBeenSet = false;
240 bool m_inputDataConfigHasBeenSet = false;
241 bool m_outputDataConfigHasBeenSet = false;
242 bool m_vpcConfigHasBeenSet = false;
243 bool m_timeoutDurationInHoursHasBeenSet = false;
244 bool m_tagsHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace Bedrock
249} // namespace Aws
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