AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateKnowledgeBaseRequest.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 <utility>
13
14namespace Aws
15{
16namespace BedrockAgent
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BEDROCKAGENT_API UpdateKnowledgeBaseRequest();
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 "UpdateKnowledgeBase"; }
33
34 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetDescription() const{ return m_description; }
42 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
44 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
45 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
46 inline UpdateKnowledgeBaseRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
47 inline UpdateKnowledgeBaseRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
48 inline UpdateKnowledgeBaseRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
50
52
57 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const{ return m_knowledgeBaseConfiguration; }
58 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
59 inline void SetKnowledgeBaseConfiguration(const KnowledgeBaseConfiguration& value) { m_knowledgeBaseConfigurationHasBeenSet = true; m_knowledgeBaseConfiguration = value; }
60 inline void SetKnowledgeBaseConfiguration(KnowledgeBaseConfiguration&& value) { m_knowledgeBaseConfigurationHasBeenSet = true; m_knowledgeBaseConfiguration = std::move(value); }
64
66
69 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
70 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
71 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
72 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
73 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
75 inline UpdateKnowledgeBaseRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
76 inline UpdateKnowledgeBaseRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
78
80
83 inline const Aws::String& GetName() const{ return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
86 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
87 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
88 inline UpdateKnowledgeBaseRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
89 inline UpdateKnowledgeBaseRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 inline UpdateKnowledgeBaseRequest& WithName(const char* value) { SetName(value); return *this;}
92
94
98 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
99 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
100 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
101 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
102 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
103 inline UpdateKnowledgeBaseRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
104 inline UpdateKnowledgeBaseRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
105 inline UpdateKnowledgeBaseRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
107
109
113 inline const StorageConfiguration& GetStorageConfiguration() const{ return m_storageConfiguration; }
114 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
115 inline void SetStorageConfiguration(const StorageConfiguration& value) { m_storageConfigurationHasBeenSet = true; m_storageConfiguration = value; }
116 inline void SetStorageConfiguration(StorageConfiguration&& value) { m_storageConfigurationHasBeenSet = true; m_storageConfiguration = std::move(value); }
120 private:
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
125 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
126 bool m_knowledgeBaseConfigurationHasBeenSet = false;
127
128 Aws::String m_knowledgeBaseId;
129 bool m_knowledgeBaseIdHasBeenSet = false;
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_roleArn;
135 bool m_roleArnHasBeenSet = false;
136
137 StorageConfiguration m_storageConfiguration;
138 bool m_storageConfigurationHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace BedrockAgent
143} // namespace Aws
UpdateKnowledgeBaseRequest & WithKnowledgeBaseId(const Aws::String &value)
UpdateKnowledgeBaseRequest & WithName(const char *value)
void SetStorageConfiguration(const StorageConfiguration &value)
UpdateKnowledgeBaseRequest & WithKnowledgeBaseId(const char *value)
UpdateKnowledgeBaseRequest & WithName(Aws::String &&value)
UpdateKnowledgeBaseRequest & WithRoleArn(const char *value)
UpdateKnowledgeBaseRequest & WithRoleArn(const Aws::String &value)
UpdateKnowledgeBaseRequest & WithKnowledgeBaseConfiguration(KnowledgeBaseConfiguration &&value)
UpdateKnowledgeBaseRequest & WithStorageConfiguration(StorageConfiguration &&value)
UpdateKnowledgeBaseRequest & WithStorageConfiguration(const StorageConfiguration &value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateKnowledgeBaseRequest & WithKnowledgeBaseId(Aws::String &&value)
UpdateKnowledgeBaseRequest & WithDescription(const Aws::String &value)
UpdateKnowledgeBaseRequest & WithDescription(Aws::String &&value)
UpdateKnowledgeBaseRequest & WithRoleArn(Aws::String &&value)
UpdateKnowledgeBaseRequest & WithKnowledgeBaseConfiguration(const KnowledgeBaseConfiguration &value)
UpdateKnowledgeBaseRequest & WithName(const Aws::String &value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfiguration &&value)
UpdateKnowledgeBaseRequest & WithDescription(const char *value)
void SetKnowledgeBaseConfiguration(const KnowledgeBaseConfiguration &value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String