AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateKnowledgeBaseRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/BedrockAgentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent/model/KnowledgeBaseConfiguration.h>
11#include <aws/bedrock-agent/model/StorageConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace BedrockAgent
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BEDROCKAGENT_API CreateKnowledgeBaseRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateKnowledgeBase"; }
35
36 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
37
38
40
47 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
50 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
51 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
52 inline CreateKnowledgeBaseRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
53 inline CreateKnowledgeBaseRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
54 inline CreateKnowledgeBaseRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline CreateKnowledgeBaseRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline CreateKnowledgeBaseRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline CreateKnowledgeBaseRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
75 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const{ return m_knowledgeBaseConfiguration; }
76 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
77 inline void SetKnowledgeBaseConfiguration(const KnowledgeBaseConfiguration& value) { m_knowledgeBaseConfigurationHasBeenSet = true; m_knowledgeBaseConfiguration = value; }
78 inline void SetKnowledgeBaseConfiguration(KnowledgeBaseConfiguration&& value) { m_knowledgeBaseConfigurationHasBeenSet = true; m_knowledgeBaseConfiguration = std::move(value); }
82
84
87 inline const Aws::String& GetName() const{ return m_name; }
88 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
90 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
91 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
92 inline CreateKnowledgeBaseRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
93 inline CreateKnowledgeBaseRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
94 inline CreateKnowledgeBaseRequest& WithName(const char* value) { SetName(value); return *this;}
96
98
102 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
103 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
104 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
105 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
106 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
107 inline CreateKnowledgeBaseRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
108 inline CreateKnowledgeBaseRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
109 inline CreateKnowledgeBaseRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
111
113
117 inline const StorageConfiguration& GetStorageConfiguration() const{ return m_storageConfiguration; }
118 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
119 inline void SetStorageConfiguration(const StorageConfiguration& value) { m_storageConfigurationHasBeenSet = true; m_storageConfiguration = value; }
120 inline void SetStorageConfiguration(StorageConfiguration&& value) { m_storageConfigurationHasBeenSet = true; m_storageConfiguration = std::move(value); }
124
126
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
135 inline CreateKnowledgeBaseRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
136 inline CreateKnowledgeBaseRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
137 inline CreateKnowledgeBaseRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 inline CreateKnowledgeBaseRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline CreateKnowledgeBaseRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
140 inline CreateKnowledgeBaseRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
141 inline CreateKnowledgeBaseRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
142 inline CreateKnowledgeBaseRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
144 private:
145
146 Aws::String m_clientToken;
147 bool m_clientTokenHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
152 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
153 bool m_knowledgeBaseConfigurationHasBeenSet = false;
154
155 Aws::String m_name;
156 bool m_nameHasBeenSet = false;
157
158 Aws::String m_roleArn;
159 bool m_roleArnHasBeenSet = false;
160
161 StorageConfiguration m_storageConfiguration;
162 bool m_storageConfigurationHasBeenSet = false;
163
165 bool m_tagsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace BedrockAgent
170} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetKnowledgeBaseConfiguration(const KnowledgeBaseConfiguration &value)
CreateKnowledgeBaseRequest & AddTags(const char *key, Aws::String &&value)
CreateKnowledgeBaseRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateKnowledgeBaseRequest & WithKnowledgeBaseConfiguration(KnowledgeBaseConfiguration &&value)
CreateKnowledgeBaseRequest & WithDescription(const Aws::String &value)
CreateKnowledgeBaseRequest & WithRoleArn(const Aws::String &value)
CreateKnowledgeBaseRequest & AddTags(Aws::String &&key, const char *value)
CreateKnowledgeBaseRequest & WithStorageConfiguration(StorageConfiguration &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
CreateKnowledgeBaseRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateKnowledgeBaseRequest & WithStorageConfiguration(const StorageConfiguration &value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfiguration &&value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
CreateKnowledgeBaseRequest & WithName(const Aws::String &value)
CreateKnowledgeBaseRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateKnowledgeBaseRequest & WithDescription(Aws::String &&value)
CreateKnowledgeBaseRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateKnowledgeBaseRequest & WithRoleArn(const char *value)
CreateKnowledgeBaseRequest & AddTags(const char *key, const char *value)
CreateKnowledgeBaseRequest & WithName(Aws::String &&value)
CreateKnowledgeBaseRequest & WithDescription(const char *value)
CreateKnowledgeBaseRequest & WithClientToken(const char *value)
CreateKnowledgeBaseRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateKnowledgeBaseRequest & WithName(const char *value)
CreateKnowledgeBaseRequest & WithRoleArn(Aws::String &&value)
CreateKnowledgeBaseRequest & WithClientToken(const Aws::String &value)
void SetStorageConfiguration(const StorageConfiguration &value)
CreateKnowledgeBaseRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseConfiguration(const KnowledgeBaseConfiguration &value)
CreateKnowledgeBaseRequest & WithClientToken(Aws::String &&value)
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