AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
StartAsyncInvokeRequest.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Document.h>
11#include <aws/bedrock-runtime/model/AsyncInvokeOutputDataConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/bedrock-runtime/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace BedrockRuntime
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BEDROCKRUNTIME_API StartAsyncInvokeRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartAsyncInvoke"; }
36
37 AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
45 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
46 template<typename ClientRequestTokenT = Aws::String>
47 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
48 template<typename ClientRequestTokenT = Aws::String>
49 StartAsyncInvokeRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
51
53
56 inline const Aws::String& GetModelId() const { return m_modelId; }
57 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
58 template<typename ModelIdT = Aws::String>
59 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet = true; m_modelId = std::forward<ModelIdT>(value); }
60 template<typename ModelIdT = Aws::String>
61 StartAsyncInvokeRequest& WithModelId(ModelIdT&& value) { SetModelId(std::forward<ModelIdT>(value)); return *this;}
63
65
68 inline Aws::Utils::DocumentView GetModelInput() const { return m_modelInput; }
69 inline bool ModelInputHasBeenSet() const { return m_modelInputHasBeenSet; }
70 template<typename ModelInputT = Aws::Utils::Document>
71 void SetModelInput(ModelInputT&& value) { m_modelInputHasBeenSet = true; m_modelInput = std::forward<ModelInputT>(value); }
72 template<typename ModelInputT = Aws::Utils::Document>
73 StartAsyncInvokeRequest& WithModelInput(ModelInputT&& value) { SetModelInput(std::forward<ModelInputT>(value)); return *this;}
75
77
80 inline const AsyncInvokeOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
81 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
82 template<typename OutputDataConfigT = AsyncInvokeOutputDataConfig>
83 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
84 template<typename OutputDataConfigT = AsyncInvokeOutputDataConfig>
85 StartAsyncInvokeRequest& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
87
89
92 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template<typename TagsT = Aws::Vector<Tag>>
95 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
96 template<typename TagsT = Aws::Vector<Tag>>
97 StartAsyncInvokeRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
98 template<typename TagsT = Tag>
99 StartAsyncInvokeRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
101 private:
102
103 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
104 bool m_clientRequestTokenHasBeenSet = true;
105
106 Aws::String m_modelId;
107 bool m_modelIdHasBeenSet = false;
108
109 Aws::Utils::Document m_modelInput;
110 bool m_modelInputHasBeenSet = false;
111
112 AsyncInvokeOutputDataConfig m_outputDataConfig;
113 bool m_outputDataConfigHasBeenSet = false;
114
115 Aws::Vector<Tag> m_tags;
116 bool m_tagsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace BedrockRuntime
121} // namespace Aws
StartAsyncInvokeRequest & WithOutputDataConfig(OutputDataConfigT &&value)
StartAsyncInvokeRequest & WithModelId(ModelIdT &&value)
const AsyncInvokeOutputDataConfig & GetOutputDataConfig() const
StartAsyncInvokeRequest & WithTags(TagsT &&value)
StartAsyncInvokeRequest & AddTags(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