AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
CreateEvaluationJobRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/ApplicationType.h>
10#include <aws/bedrock/model/EvaluationConfig.h>
11#include <aws/bedrock/model/EvaluationInferenceConfig.h>
12#include <aws/bedrock/model/EvaluationOutputDataConfig.h>
13#include <aws/bedrock/model/Tag.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 CreateEvaluationJobRequest() = 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 "CreateEvaluationJob"; }
35
36 AWS_BEDROCK_API Aws::String SerializePayload() const override;
37
39
43 inline const Aws::String& GetJobName() const { return m_jobName; }
44 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
45 template <typename JobNameT = Aws::String>
46 void SetJobName(JobNameT&& value) {
47 m_jobNameHasBeenSet = true;
48 m_jobName = std::forward<JobNameT>(value);
49 }
50 template <typename JobNameT = Aws::String>
52 SetJobName(std::forward<JobNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetJobDescription() const { return m_jobDescription; }
62 inline bool JobDescriptionHasBeenSet() const { return m_jobDescriptionHasBeenSet; }
63 template <typename JobDescriptionT = Aws::String>
64 void SetJobDescription(JobDescriptionT&& value) {
65 m_jobDescriptionHasBeenSet = true;
66 m_jobDescription = std::forward<JobDescriptionT>(value);
67 }
68 template <typename JobDescriptionT = Aws::String>
70 SetJobDescription(std::forward<JobDescriptionT>(value));
71 return *this;
72 }
74
76
83 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
84 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
85 template <typename ClientRequestTokenT = Aws::String>
86 void SetClientRequestToken(ClientRequestTokenT&& value) {
87 m_clientRequestTokenHasBeenSet = true;
88 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
89 }
90 template <typename ClientRequestTokenT = Aws::String>
91 CreateEvaluationJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
92 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
93 return *this;
94 }
96
98
105 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
106 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
107 template <typename RoleArnT = Aws::String>
108 void SetRoleArn(RoleArnT&& value) {
109 m_roleArnHasBeenSet = true;
110 m_roleArn = std::forward<RoleArnT>(value);
111 }
112 template <typename RoleArnT = Aws::String>
114 SetRoleArn(std::forward<RoleArnT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetCustomerEncryptionKeyId() const { return m_customerEncryptionKeyId; }
125 inline bool CustomerEncryptionKeyIdHasBeenSet() const { return m_customerEncryptionKeyIdHasBeenSet; }
126 template <typename CustomerEncryptionKeyIdT = Aws::String>
127 void SetCustomerEncryptionKeyId(CustomerEncryptionKeyIdT&& value) {
128 m_customerEncryptionKeyIdHasBeenSet = true;
129 m_customerEncryptionKeyId = std::forward<CustomerEncryptionKeyIdT>(value);
130 }
131 template <typename CustomerEncryptionKeyIdT = Aws::String>
132 CreateEvaluationJobRequest& WithCustomerEncryptionKeyId(CustomerEncryptionKeyIdT&& value) {
133 SetCustomerEncryptionKeyId(std::forward<CustomerEncryptionKeyIdT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<Tag>& GetJobTags() const { return m_jobTags; }
143 inline bool JobTagsHasBeenSet() const { return m_jobTagsHasBeenSet; }
144 template <typename JobTagsT = Aws::Vector<Tag>>
145 void SetJobTags(JobTagsT&& value) {
146 m_jobTagsHasBeenSet = true;
147 m_jobTags = std::forward<JobTagsT>(value);
148 }
149 template <typename JobTagsT = Aws::Vector<Tag>>
151 SetJobTags(std::forward<JobTagsT>(value));
152 return *this;
153 }
154 template <typename JobTagsT = Tag>
156 m_jobTagsHasBeenSet = true;
157 m_jobTags.emplace_back(std::forward<JobTagsT>(value));
158 return *this;
159 }
161
163
167 inline ApplicationType GetApplicationType() const { return m_applicationType; }
168 inline bool ApplicationTypeHasBeenSet() const { return m_applicationTypeHasBeenSet; }
170 m_applicationTypeHasBeenSet = true;
171 m_applicationType = value;
172 }
174 SetApplicationType(value);
175 return *this;
176 }
178
180
184 inline const EvaluationConfig& GetEvaluationConfig() const { return m_evaluationConfig; }
185 inline bool EvaluationConfigHasBeenSet() const { return m_evaluationConfigHasBeenSet; }
186 template <typename EvaluationConfigT = EvaluationConfig>
187 void SetEvaluationConfig(EvaluationConfigT&& value) {
188 m_evaluationConfigHasBeenSet = true;
189 m_evaluationConfig = std::forward<EvaluationConfigT>(value);
190 }
191 template <typename EvaluationConfigT = EvaluationConfig>
193 SetEvaluationConfig(std::forward<EvaluationConfigT>(value));
194 return *this;
195 }
197
199
207 inline const EvaluationInferenceConfig& GetInferenceConfig() const { return m_inferenceConfig; }
208 inline bool InferenceConfigHasBeenSet() const { return m_inferenceConfigHasBeenSet; }
209 template <typename InferenceConfigT = EvaluationInferenceConfig>
210 void SetInferenceConfig(InferenceConfigT&& value) {
211 m_inferenceConfigHasBeenSet = true;
212 m_inferenceConfig = std::forward<InferenceConfigT>(value);
213 }
214 template <typename InferenceConfigT = EvaluationInferenceConfig>
216 SetInferenceConfig(std::forward<InferenceConfigT>(value));
217 return *this;
218 }
220
222
226 inline const EvaluationOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
227 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
228 template <typename OutputDataConfigT = EvaluationOutputDataConfig>
229 void SetOutputDataConfig(OutputDataConfigT&& value) {
230 m_outputDataConfigHasBeenSet = true;
231 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
232 }
233 template <typename OutputDataConfigT = EvaluationOutputDataConfig>
235 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_jobName;
241 bool m_jobNameHasBeenSet = false;
242
243 Aws::String m_jobDescription;
244 bool m_jobDescriptionHasBeenSet = false;
245
246 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
247 bool m_clientRequestTokenHasBeenSet = true;
248
249 Aws::String m_roleArn;
250 bool m_roleArnHasBeenSet = false;
251
252 Aws::String m_customerEncryptionKeyId;
253 bool m_customerEncryptionKeyIdHasBeenSet = false;
254
255 Aws::Vector<Tag> m_jobTags;
256 bool m_jobTagsHasBeenSet = false;
257
258 ApplicationType m_applicationType{ApplicationType::NOT_SET};
259 bool m_applicationTypeHasBeenSet = false;
260
261 EvaluationConfig m_evaluationConfig;
262 bool m_evaluationConfigHasBeenSet = false;
263
264 EvaluationInferenceConfig m_inferenceConfig;
265 bool m_inferenceConfigHasBeenSet = false;
266
267 EvaluationOutputDataConfig m_outputDataConfig;
268 bool m_outputDataConfigHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace Bedrock
273} // namespace Aws
CreateEvaluationJobRequest & WithJobDescription(JobDescriptionT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
const EvaluationOutputDataConfig & GetOutputDataConfig() const
CreateEvaluationJobRequest & AddJobTags(JobTagsT &&value)
CreateEvaluationJobRequest & WithInferenceConfig(InferenceConfigT &&value)
CreateEvaluationJobRequest & WithJobTags(JobTagsT &&value)
CreateEvaluationJobRequest & WithJobName(JobNameT &&value)
CreateEvaluationJobRequest & WithCustomerEncryptionKeyId(CustomerEncryptionKeyIdT &&value)
AWS_BEDROCK_API CreateEvaluationJobRequest()=default
CreateEvaluationJobRequest & WithRoleArn(RoleArnT &&value)
virtual const char * GetServiceRequestName() const override
CreateEvaluationJobRequest & WithEvaluationConfig(EvaluationConfigT &&value)
CreateEvaluationJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
const EvaluationInferenceConfig & GetInferenceConfig() const
CreateEvaluationJobRequest & WithApplicationType(ApplicationType value)
void SetCustomerEncryptionKeyId(CustomerEncryptionKeyIdT &&value)
CreateEvaluationJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector