AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CreateRetrievalInstructionRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/bedrock-agent/model/RetrievalInstructionContent.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace BedrockAgent {
18namespace Model {
19
23 public:
24 AWS_BEDROCKAGENT_API CreateRetrievalInstructionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateRetrievalInstruction"; }
31
32 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetClientToken() const { return m_clientToken; }
40 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
41 template <typename ClientTokenT = Aws::String>
42 void SetClientToken(ClientTokenT&& value) {
43 m_clientTokenHasBeenSet = true;
44 m_clientToken = std::forward<ClientTokenT>(value);
45 }
46 template <typename ClientTokenT = Aws::String>
48 SetClientToken(std::forward<ClientTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
76 inline const RetrievalInstructionContent& GetInstruction() const { return m_instruction; }
77 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
78 template <typename InstructionT = RetrievalInstructionContent>
79 void SetInstruction(InstructionT&& value) {
80 m_instructionHasBeenSet = true;
81 m_instruction = std::forward<InstructionT>(value);
82 }
83 template <typename InstructionT = RetrievalInstructionContent>
85 SetInstruction(std::forward<InstructionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
115 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
116 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
117 template <typename CustomerEncryptionKeyArnT = Aws::String>
118 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) {
119 m_customerEncryptionKeyArnHasBeenSet = true;
120 m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value);
121 }
122 template <typename CustomerEncryptionKeyArnT = Aws::String>
124 SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 void SetTags(TagsT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags = std::forward<TagsT>(value);
139 }
140 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 SetTags(std::forward<TagsT>(value));
143 return *this;
144 }
145 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
146 CreateRetrievalInstructionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
147 m_tagsHasBeenSet = true;
148 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
149 return *this;
150 }
152 private:
154
155 Aws::String m_name;
156
157 RetrievalInstructionContent m_instruction;
158
159 Aws::String m_description;
160
161 Aws::String m_customerEncryptionKeyArn;
162
164 bool m_clientTokenHasBeenSet = true;
165 bool m_nameHasBeenSet = false;
166 bool m_instructionHasBeenSet = false;
167 bool m_descriptionHasBeenSet = false;
168 bool m_customerEncryptionKeyArnHasBeenSet = false;
169 bool m_tagsHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace BedrockAgent
174} // namespace Aws
CreateRetrievalInstructionRequest & WithClientToken(ClientTokenT &&value)
CreateRetrievalInstructionRequest & WithInstruction(InstructionT &&value)
CreateRetrievalInstructionRequest & WithDescription(DescriptionT &&value)
CreateRetrievalInstructionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_BEDROCKAGENT_API CreateRetrievalInstructionRequest()=default
CreateRetrievalInstructionRequest & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String