AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
48 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
49 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
50 inline CreateModelInvocationJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
51 inline CreateModelInvocationJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
52 inline CreateModelInvocationJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
54
56
63 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
64 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
65 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
66 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
67 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
68 inline CreateModelInvocationJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
69 inline CreateModelInvocationJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
70 inline CreateModelInvocationJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
72
74
81 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
82 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
83 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
84 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
85 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
88 inline CreateModelInvocationJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
90
92
96 inline const Aws::String& GetModelId() const{ return m_modelId; }
97 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
98 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
99 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
100 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
101 inline CreateModelInvocationJobRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
102 inline CreateModelInvocationJobRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
103 inline CreateModelInvocationJobRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
105
107
110 inline const ModelInvocationJobInputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
111 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
112 inline void SetInputDataConfig(const ModelInvocationJobInputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
113 inline void SetInputDataConfig(ModelInvocationJobInputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
117
119
122 inline const ModelInvocationJobOutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
123 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
124 inline void SetOutputDataConfig(const ModelInvocationJobOutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
125 inline void SetOutputDataConfig(ModelInvocationJobOutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
129
131
137 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
138 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
139 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
140 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
141 inline CreateModelInvocationJobRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
142 inline CreateModelInvocationJobRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
144
146
150 inline int GetTimeoutDurationInHours() const{ return m_timeoutDurationInHours; }
151 inline bool TimeoutDurationInHoursHasBeenSet() const { return m_timeoutDurationInHoursHasBeenSet; }
152 inline void SetTimeoutDurationInHours(int value) { m_timeoutDurationInHoursHasBeenSet = true; m_timeoutDurationInHours = value; }
155
157
163 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
164 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
166 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
167 inline CreateModelInvocationJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
168 inline CreateModelInvocationJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
169 inline CreateModelInvocationJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
170 inline CreateModelInvocationJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
172 private:
173
174 Aws::String m_jobName;
175 bool m_jobNameHasBeenSet = false;
176
177 Aws::String m_roleArn;
178 bool m_roleArnHasBeenSet = false;
179
180 Aws::String m_clientRequestToken;
181 bool m_clientRequestTokenHasBeenSet = false;
182
183 Aws::String m_modelId;
184 bool m_modelIdHasBeenSet = false;
185
186 ModelInvocationJobInputDataConfig m_inputDataConfig;
187 bool m_inputDataConfigHasBeenSet = false;
188
189 ModelInvocationJobOutputDataConfig m_outputDataConfig;
190 bool m_outputDataConfigHasBeenSet = false;
191
192 VpcConfig m_vpcConfig;
193 bool m_vpcConfigHasBeenSet = false;
194
195 int m_timeoutDurationInHours;
196 bool m_timeoutDurationInHoursHasBeenSet = false;
197
198 Aws::Vector<Tag> m_tags;
199 bool m_tagsHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace Bedrock
204} // namespace Aws
void SetInputDataConfig(ModelInvocationJobInputDataConfig &&value)
CreateModelInvocationJobRequest & WithJobName(const Aws::String &value)
void SetOutputDataConfig(ModelInvocationJobOutputDataConfig &&value)
CreateModelInvocationJobRequest & WithClientRequestToken(const char *value)
CreateModelInvocationJobRequest & WithInputDataConfig(ModelInvocationJobInputDataConfig &&value)
void SetOutputDataConfig(const ModelInvocationJobOutputDataConfig &value)
CreateModelInvocationJobRequest & WithJobName(Aws::String &&value)
CreateModelInvocationJobRequest & WithModelId(const Aws::String &value)
CreateModelInvocationJobRequest & WithClientRequestToken(const Aws::String &value)
CreateModelInvocationJobRequest & WithTimeoutDurationInHours(int value)
CreateModelInvocationJobRequest & AddTags(const Tag &value)
CreateModelInvocationJobRequest & WithOutputDataConfig(ModelInvocationJobOutputDataConfig &&value)
CreateModelInvocationJobRequest & WithTags(Aws::Vector< Tag > &&value)
CreateModelInvocationJobRequest & WithOutputDataConfig(const ModelInvocationJobOutputDataConfig &value)
CreateModelInvocationJobRequest & WithRoleArn(const Aws::String &value)
const ModelInvocationJobOutputDataConfig & GetOutputDataConfig() const
CreateModelInvocationJobRequest & WithModelId(Aws::String &&value)
CreateModelInvocationJobRequest & WithVpcConfig(VpcConfig &&value)
CreateModelInvocationJobRequest & WithVpcConfig(const VpcConfig &value)
CreateModelInvocationJobRequest & WithJobName(const char *value)
CreateModelInvocationJobRequest & WithModelId(const char *value)
CreateModelInvocationJobRequest & WithTags(const Aws::Vector< Tag > &value)
const ModelInvocationJobInputDataConfig & GetInputDataConfig() const
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateModelInvocationJobRequest & WithInputDataConfig(const ModelInvocationJobInputDataConfig &value)
void SetInputDataConfig(const ModelInvocationJobInputDataConfig &value)
CreateModelInvocationJobRequest & WithClientRequestToken(Aws::String &&value)
CreateModelInvocationJobRequest & WithRoleArn(Aws::String &&value)
CreateModelInvocationJobRequest & WithRoleArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector