AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
StartAsyncInvokeRequest.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
8#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
9#include <aws/bedrock-runtime/model/AsyncInvokeOutputDataConfig.h>
10#include <aws/bedrock-runtime/model/Tag.h>
11#include <aws/core/utils/Document.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace BedrockRuntime {
20namespace Model {
21
25 public:
26 AWS_BEDROCKRUNTIME_API StartAsyncInvokeRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartAsyncInvoke"; }
33
34 AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
41 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
42 template <typename ClientRequestTokenT = Aws::String>
43 void SetClientRequestToken(ClientRequestTokenT&& value) {
44 m_clientRequestTokenHasBeenSet = true;
45 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
46 }
47 template <typename ClientRequestTokenT = Aws::String>
48 StartAsyncInvokeRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
49 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetModelId() const { return m_modelId; }
59 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
60 template <typename ModelIdT = Aws::String>
61 void SetModelId(ModelIdT&& value) {
62 m_modelIdHasBeenSet = true;
63 m_modelId = std::forward<ModelIdT>(value);
64 }
65 template <typename ModelIdT = Aws::String>
67 SetModelId(std::forward<ModelIdT>(value));
68 return *this;
69 }
71
73
76 inline Aws::Utils::DocumentView GetModelInput() const { return m_modelInput; }
77 inline bool ModelInputHasBeenSet() const { return m_modelInputHasBeenSet; }
78 template <typename ModelInputT = Aws::Utils::Document>
79 void SetModelInput(ModelInputT&& value) {
80 m_modelInputHasBeenSet = true;
81 m_modelInput = std::forward<ModelInputT>(value);
82 }
83 template <typename ModelInputT = Aws::Utils::Document>
85 SetModelInput(std::forward<ModelInputT>(value));
86 return *this;
87 }
89
91
94 inline const AsyncInvokeOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
95 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
96 template <typename OutputDataConfigT = AsyncInvokeOutputDataConfig>
97 void SetOutputDataConfig(OutputDataConfigT&& value) {
98 m_outputDataConfigHasBeenSet = true;
99 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
100 }
101 template <typename OutputDataConfigT = AsyncInvokeOutputDataConfig>
102 StartAsyncInvokeRequest& WithOutputDataConfig(OutputDataConfigT&& value) {
103 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template <typename TagsT = Aws::Vector<Tag>>
115 void SetTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags = std::forward<TagsT>(value);
118 }
119 template <typename TagsT = Aws::Vector<Tag>>
121 SetTags(std::forward<TagsT>(value));
122 return *this;
123 }
124 template <typename TagsT = Tag>
126 m_tagsHasBeenSet = true;
127 m_tags.emplace_back(std::forward<TagsT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
133 bool m_clientRequestTokenHasBeenSet = true;
134
135 Aws::String m_modelId;
136 bool m_modelIdHasBeenSet = false;
137
138 Aws::Utils::Document m_modelInput;
139 bool m_modelInputHasBeenSet = false;
140
141 AsyncInvokeOutputDataConfig m_outputDataConfig;
142 bool m_outputDataConfigHasBeenSet = false;
143
144 Aws::Vector<Tag> m_tags;
145 bool m_tagsHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace BedrockRuntime
150} // namespace Aws
StartAsyncInvokeRequest & WithOutputDataConfig(OutputDataConfigT &&value)
StartAsyncInvokeRequest & WithModelId(ModelIdT &&value)
const AsyncInvokeOutputDataConfig & GetOutputDataConfig() const
StartAsyncInvokeRequest & WithTags(TagsT &&value)
StartAsyncInvokeRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StartAsyncInvokeRequest & WithModelInput(ModelInputT &&value)
AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_BEDROCKRUNTIME_API StartAsyncInvokeRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector