AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CreateModelInvocationJobRequest.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/ModelInvocationJobInputDataConfig.h>
11#include <aws/bedrock/model/ModelInvocationJobOutputDataConfig.h>
12#include <aws/bedrock/model/VpcConfig.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/bedrock/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace Bedrock
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_BEDROCK_API CreateModelInvocationJobRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateModelInvocationJob"; }
37
38 AWS_BEDROCK_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetJobName() const { return m_jobName; }
46 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
47 template<typename JobNameT = Aws::String>
48 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
49 template<typename JobNameT = Aws::String>
50 CreateModelInvocationJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
52
54
61 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
62 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
63 template<typename RoleArnT = Aws::String>
64 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
65 template<typename RoleArnT = Aws::String>
66 CreateModelInvocationJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
68
70
77 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
78 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
79 template<typename ClientRequestTokenT = Aws::String>
80 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
81 template<typename ClientRequestTokenT = Aws::String>
82 CreateModelInvocationJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
84
86
90 inline const Aws::String& GetModelId() const { return m_modelId; }
91 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
92 template<typename ModelIdT = Aws::String>
93 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet = true; m_modelId = std::forward<ModelIdT>(value); }
94 template<typename ModelIdT = Aws::String>
95 CreateModelInvocationJobRequest& WithModelId(ModelIdT&& value) { SetModelId(std::forward<ModelIdT>(value)); return *this;}
97
99
102 inline const ModelInvocationJobInputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
103 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
104 template<typename InputDataConfigT = ModelInvocationJobInputDataConfig>
105 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
106 template<typename InputDataConfigT = ModelInvocationJobInputDataConfig>
107 CreateModelInvocationJobRequest& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
109
111
114 inline const ModelInvocationJobOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
115 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
116 template<typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
117 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
118 template<typename OutputDataConfigT = ModelInvocationJobOutputDataConfig>
119 CreateModelInvocationJobRequest& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
121
123
129 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
130 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
131 template<typename VpcConfigT = VpcConfig>
132 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
133 template<typename VpcConfigT = VpcConfig>
134 CreateModelInvocationJobRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
136
138
142 inline int GetTimeoutDurationInHours() const { return m_timeoutDurationInHours; }
143 inline bool TimeoutDurationInHoursHasBeenSet() const { return m_timeoutDurationInHoursHasBeenSet; }
144 inline void SetTimeoutDurationInHours(int value) { m_timeoutDurationInHoursHasBeenSet = true; m_timeoutDurationInHours = value; }
147
149
155 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template<typename TagsT = Aws::Vector<Tag>>
158 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
159 template<typename TagsT = Aws::Vector<Tag>>
160 CreateModelInvocationJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
161 template<typename TagsT = Tag>
162 CreateModelInvocationJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
164 private:
165
166 Aws::String m_jobName;
167 bool m_jobNameHasBeenSet = false;
168
169 Aws::String m_roleArn;
170 bool m_roleArnHasBeenSet = false;
171
172 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
173 bool m_clientRequestTokenHasBeenSet = true;
174
175 Aws::String m_modelId;
176 bool m_modelIdHasBeenSet = false;
177
178 ModelInvocationJobInputDataConfig m_inputDataConfig;
179 bool m_inputDataConfigHasBeenSet = false;
180
181 ModelInvocationJobOutputDataConfig m_outputDataConfig;
182 bool m_outputDataConfigHasBeenSet = false;
183
184 VpcConfig m_vpcConfig;
185 bool m_vpcConfigHasBeenSet = false;
186
187 int m_timeoutDurationInHours{0};
188 bool m_timeoutDurationInHoursHasBeenSet = false;
189
190 Aws::Vector<Tag> m_tags;
191 bool m_tagsHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace Bedrock
196} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector