AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateKnowledgeBaseRequest.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/KnowledgeBaseConfiguration.h>
10#include <aws/bedrock-agent/model/StorageConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace BedrockAgent {
17namespace Model {
18
22 public:
23 AWS_BEDROCKAGENT_API UpdateKnowledgeBaseRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateKnowledgeBase"; }
30
31 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
38 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
39 template <typename KnowledgeBaseIdT = Aws::String>
40 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
41 m_knowledgeBaseIdHasBeenSet = true;
42 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
43 }
44 template <typename KnowledgeBaseIdT = Aws::String>
46 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
93 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
94 template <typename RoleArnT = Aws::String>
95 void SetRoleArn(RoleArnT&& value) {
96 m_roleArnHasBeenSet = true;
97 m_roleArn = std::forward<RoleArnT>(value);
98 }
99 template <typename RoleArnT = Aws::String>
101 SetRoleArn(std::forward<RoleArnT>(value));
102 return *this;
103 }
105
107
112 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
113 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
114 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
115 void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
116 m_knowledgeBaseConfigurationHasBeenSet = true;
117 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
118 }
119 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
120 UpdateKnowledgeBaseRequest& WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
121 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
122 return *this;
123 }
125
127
131 inline const StorageConfiguration& GetStorageConfiguration() const { return m_storageConfiguration; }
132 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
133 template <typename StorageConfigurationT = StorageConfiguration>
134 void SetStorageConfiguration(StorageConfigurationT&& value) {
135 m_storageConfigurationHasBeenSet = true;
136 m_storageConfiguration = std::forward<StorageConfigurationT>(value);
137 }
138 template <typename StorageConfigurationT = StorageConfiguration>
139 UpdateKnowledgeBaseRequest& WithStorageConfiguration(StorageConfigurationT&& value) {
140 SetStorageConfiguration(std::forward<StorageConfigurationT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_knowledgeBaseId;
146
147 Aws::String m_name;
148
149 Aws::String m_description;
150
151 Aws::String m_roleArn;
152
153 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
154
155 StorageConfiguration m_storageConfiguration;
156 bool m_knowledgeBaseIdHasBeenSet = false;
157 bool m_nameHasBeenSet = false;
158 bool m_descriptionHasBeenSet = false;
159 bool m_roleArnHasBeenSet = false;
160 bool m_knowledgeBaseConfigurationHasBeenSet = false;
161 bool m_storageConfigurationHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace BedrockAgent
166} // namespace Aws
UpdateKnowledgeBaseRequest & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
UpdateKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENT_API UpdateKnowledgeBaseRequest()=default
UpdateKnowledgeBaseRequest & WithStorageConfiguration(StorageConfigurationT &&value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
UpdateKnowledgeBaseRequest & WithName(NameT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateKnowledgeBaseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
UpdateKnowledgeBaseRequest & WithRoleArn(RoleArnT &&value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String