AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CreateEvaluationJobRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock/model/ApplicationType.h>
12#include <aws/bedrock/model/EvaluationConfig.h>
13#include <aws/bedrock/model/EvaluationInferenceConfig.h>
14#include <aws/bedrock/model/EvaluationOutputDataConfig.h>
15#include <aws/bedrock/model/Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace Bedrock
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_BEDROCK_API CreateEvaluationJobRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateEvaluationJob"; }
38
39 AWS_BEDROCK_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::String& GetJobName() const { return m_jobName; }
48 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
49 template<typename JobNameT = Aws::String>
50 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
51 template<typename JobNameT = Aws::String>
52 CreateEvaluationJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetJobDescription() const { return m_jobDescription; }
60 inline bool JobDescriptionHasBeenSet() const { return m_jobDescriptionHasBeenSet; }
61 template<typename JobDescriptionT = Aws::String>
62 void SetJobDescription(JobDescriptionT&& value) { m_jobDescriptionHasBeenSet = true; m_jobDescription = std::forward<JobDescriptionT>(value); }
63 template<typename JobDescriptionT = Aws::String>
64 CreateEvaluationJobRequest& WithJobDescription(JobDescriptionT&& value) { SetJobDescription(std::forward<JobDescriptionT>(value)); return *this;}
66
68
75 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
76 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
77 template<typename ClientRequestTokenT = Aws::String>
78 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
79 template<typename ClientRequestTokenT = Aws::String>
80 CreateEvaluationJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
82
84
91 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
92 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
93 template<typename RoleArnT = Aws::String>
94 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
95 template<typename RoleArnT = Aws::String>
96 CreateEvaluationJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
98
100
104 inline const Aws::String& GetCustomerEncryptionKeyId() const { return m_customerEncryptionKeyId; }
105 inline bool CustomerEncryptionKeyIdHasBeenSet() const { return m_customerEncryptionKeyIdHasBeenSet; }
106 template<typename CustomerEncryptionKeyIdT = Aws::String>
107 void SetCustomerEncryptionKeyId(CustomerEncryptionKeyIdT&& value) { m_customerEncryptionKeyIdHasBeenSet = true; m_customerEncryptionKeyId = std::forward<CustomerEncryptionKeyIdT>(value); }
108 template<typename CustomerEncryptionKeyIdT = Aws::String>
109 CreateEvaluationJobRequest& WithCustomerEncryptionKeyId(CustomerEncryptionKeyIdT&& value) { SetCustomerEncryptionKeyId(std::forward<CustomerEncryptionKeyIdT>(value)); return *this;}
111
113
116 inline const Aws::Vector<Tag>& GetJobTags() const { return m_jobTags; }
117 inline bool JobTagsHasBeenSet() const { return m_jobTagsHasBeenSet; }
118 template<typename JobTagsT = Aws::Vector<Tag>>
119 void SetJobTags(JobTagsT&& value) { m_jobTagsHasBeenSet = true; m_jobTags = std::forward<JobTagsT>(value); }
120 template<typename JobTagsT = Aws::Vector<Tag>>
121 CreateEvaluationJobRequest& WithJobTags(JobTagsT&& value) { SetJobTags(std::forward<JobTagsT>(value)); return *this;}
122 template<typename JobTagsT = Tag>
123 CreateEvaluationJobRequest& AddJobTags(JobTagsT&& value) { m_jobTagsHasBeenSet = true; m_jobTags.emplace_back(std::forward<JobTagsT>(value)); return *this; }
125
127
131 inline ApplicationType GetApplicationType() const { return m_applicationType; }
132 inline bool ApplicationTypeHasBeenSet() const { return m_applicationTypeHasBeenSet; }
133 inline void SetApplicationType(ApplicationType value) { m_applicationTypeHasBeenSet = true; m_applicationType = value; }
136
138
142 inline const EvaluationConfig& GetEvaluationConfig() const { return m_evaluationConfig; }
143 inline bool EvaluationConfigHasBeenSet() const { return m_evaluationConfigHasBeenSet; }
144 template<typename EvaluationConfigT = EvaluationConfig>
145 void SetEvaluationConfig(EvaluationConfigT&& value) { m_evaluationConfigHasBeenSet = true; m_evaluationConfig = std::forward<EvaluationConfigT>(value); }
146 template<typename EvaluationConfigT = EvaluationConfig>
147 CreateEvaluationJobRequest& WithEvaluationConfig(EvaluationConfigT&& value) { SetEvaluationConfig(std::forward<EvaluationConfigT>(value)); return *this;}
149
151
159 inline const EvaluationInferenceConfig& GetInferenceConfig() const { return m_inferenceConfig; }
160 inline bool InferenceConfigHasBeenSet() const { return m_inferenceConfigHasBeenSet; }
161 template<typename InferenceConfigT = EvaluationInferenceConfig>
162 void SetInferenceConfig(InferenceConfigT&& value) { m_inferenceConfigHasBeenSet = true; m_inferenceConfig = std::forward<InferenceConfigT>(value); }
163 template<typename InferenceConfigT = EvaluationInferenceConfig>
164 CreateEvaluationJobRequest& WithInferenceConfig(InferenceConfigT&& value) { SetInferenceConfig(std::forward<InferenceConfigT>(value)); return *this;}
166
168
172 inline const EvaluationOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
173 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
174 template<typename OutputDataConfigT = EvaluationOutputDataConfig>
175 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
176 template<typename OutputDataConfigT = EvaluationOutputDataConfig>
177 CreateEvaluationJobRequest& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
179 private:
180
181 Aws::String m_jobName;
182 bool m_jobNameHasBeenSet = false;
183
184 Aws::String m_jobDescription;
185 bool m_jobDescriptionHasBeenSet = false;
186
187 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
188 bool m_clientRequestTokenHasBeenSet = true;
189
190 Aws::String m_roleArn;
191 bool m_roleArnHasBeenSet = false;
192
193 Aws::String m_customerEncryptionKeyId;
194 bool m_customerEncryptionKeyIdHasBeenSet = false;
195
196 Aws::Vector<Tag> m_jobTags;
197 bool m_jobTagsHasBeenSet = false;
198
199 ApplicationType m_applicationType{ApplicationType::NOT_SET};
200 bool m_applicationTypeHasBeenSet = false;
201
202 EvaluationConfig m_evaluationConfig;
203 bool m_evaluationConfigHasBeenSet = false;
204
205 EvaluationInferenceConfig m_inferenceConfig;
206 bool m_inferenceConfigHasBeenSet = false;
207
208 EvaluationOutputDataConfig m_outputDataConfig;
209 bool m_outputDataConfigHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace Bedrock
214} // 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