AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
CreateKnowledgeBaseRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/AccessControlConfiguration.h>
12#include <aws/quicksight/model/KnowledgeBaseConfiguration.h>
13#include <aws/quicksight/model/MediaExtractionConfiguration.h>
14#include <aws/quicksight/model/ResourcePermission.h>
15#include <aws/quicksight/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace QuickSight {
21namespace Model {
22
26 public:
27 AWS_QUICKSIGHT_API CreateKnowledgeBaseRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateKnowledgeBase"; }
34
35 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
43 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
44 template <typename AwsAccountIdT = Aws::String>
45 void SetAwsAccountId(AwsAccountIdT&& value) {
46 m_awsAccountIdHasBeenSet = true;
47 m_awsAccountId = std::forward<AwsAccountIdT>(value);
48 }
49 template <typename AwsAccountIdT = Aws::String>
51 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
61 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
62 template <typename KnowledgeBaseIdT = Aws::String>
63 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
64 m_knowledgeBaseIdHasBeenSet = true;
65 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
66 }
67 template <typename KnowledgeBaseIdT = Aws::String>
69 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
97 inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; }
98 template <typename DataSourceArnT = Aws::String>
99 void SetDataSourceArn(DataSourceArnT&& value) {
100 m_dataSourceArnHasBeenSet = true;
101 m_dataSourceArn = std::forward<DataSourceArnT>(value);
102 }
103 template <typename DataSourceArnT = Aws::String>
105 SetDataSourceArn(std::forward<DataSourceArnT>(value));
106 return *this;
107 }
109
111
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 CreateKnowledgeBaseRequest& WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
121 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
152 inline const Aws::Vector<ResourcePermission>& GetPermissions() const { return m_permissions; }
153 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
154 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
155 void SetPermissions(PermissionsT&& value) {
156 m_permissionsHasBeenSet = true;
157 m_permissions = std::forward<PermissionsT>(value);
158 }
159 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
161 SetPermissions(std::forward<PermissionsT>(value));
162 return *this;
163 }
164 template <typename PermissionsT = ResourcePermission>
166 m_permissionsHasBeenSet = true;
167 m_permissions.emplace_back(std::forward<PermissionsT>(value));
168 return *this;
169 }
171
173
174 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
175 inline bool MediaExtractionConfigurationHasBeenSet() const { return m_mediaExtractionConfigurationHasBeenSet; }
176 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
177 void SetMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) {
178 m_mediaExtractionConfigurationHasBeenSet = true;
179 m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value);
180 }
181 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
182 CreateKnowledgeBaseRequest& WithMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) {
183 SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value));
184 return *this;
185 }
187
189
193 inline const AccessControlConfiguration& GetAccessControlConfiguration() const { return m_accessControlConfiguration; }
194 inline bool AccessControlConfigurationHasBeenSet() const { return m_accessControlConfigurationHasBeenSet; }
195 template <typename AccessControlConfigurationT = AccessControlConfiguration>
196 void SetAccessControlConfiguration(AccessControlConfigurationT&& value) {
197 m_accessControlConfigurationHasBeenSet = true;
198 m_accessControlConfiguration = std::forward<AccessControlConfigurationT>(value);
199 }
200 template <typename AccessControlConfigurationT = AccessControlConfiguration>
201 CreateKnowledgeBaseRequest& WithAccessControlConfiguration(AccessControlConfigurationT&& value) {
202 SetAccessControlConfiguration(std::forward<AccessControlConfigurationT>(value));
203 return *this;
204 }
206
208
214 inline const Aws::String& GetPrimaryOwnerArn() const { return m_primaryOwnerArn; }
215 inline bool PrimaryOwnerArnHasBeenSet() const { return m_primaryOwnerArnHasBeenSet; }
216 template <typename PrimaryOwnerArnT = Aws::String>
217 void SetPrimaryOwnerArn(PrimaryOwnerArnT&& value) {
218 m_primaryOwnerArnHasBeenSet = true;
219 m_primaryOwnerArn = std::forward<PrimaryOwnerArnT>(value);
220 }
221 template <typename PrimaryOwnerArnT = Aws::String>
223 SetPrimaryOwnerArn(std::forward<PrimaryOwnerArnT>(value));
224 return *this;
225 }
227
229
233 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 template <typename TagsT = Aws::Vector<Tag>>
236 void SetTags(TagsT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags = std::forward<TagsT>(value);
239 }
240 template <typename TagsT = Aws::Vector<Tag>>
242 SetTags(std::forward<TagsT>(value));
243 return *this;
244 }
245 template <typename TagsT = Tag>
247 m_tagsHasBeenSet = true;
248 m_tags.emplace_back(std::forward<TagsT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_awsAccountId;
254
255 Aws::String m_knowledgeBaseId;
256
257 Aws::String m_name;
258
259 Aws::String m_dataSourceArn;
260
261 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
262
263 Aws::String m_description;
264
266
267 MediaExtractionConfiguration m_mediaExtractionConfiguration;
268
269 AccessControlConfiguration m_accessControlConfiguration;
270
271 Aws::String m_primaryOwnerArn;
272
273 Aws::Vector<Tag> m_tags;
274 bool m_awsAccountIdHasBeenSet = false;
275 bool m_knowledgeBaseIdHasBeenSet = false;
276 bool m_nameHasBeenSet = false;
277 bool m_dataSourceArnHasBeenSet = false;
278 bool m_knowledgeBaseConfigurationHasBeenSet = false;
279 bool m_descriptionHasBeenSet = false;
280 bool m_permissionsHasBeenSet = false;
281 bool m_mediaExtractionConfigurationHasBeenSet = false;
282 bool m_accessControlConfigurationHasBeenSet = false;
283 bool m_primaryOwnerArnHasBeenSet = false;
284 bool m_tagsHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace QuickSight
289} // namespace Aws
AWS_QUICKSIGHT_API CreateKnowledgeBaseRequest()=default
CreateKnowledgeBaseRequest & WithMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
const AccessControlConfiguration & GetAccessControlConfiguration() const
virtual const char * GetServiceRequestName() const override
CreateKnowledgeBaseRequest & WithAccessControlConfiguration(AccessControlConfigurationT &&value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
const MediaExtractionConfiguration & GetMediaExtractionConfiguration() const
const Aws::Vector< ResourcePermission > & GetPermissions() const
CreateKnowledgeBaseRequest & WithPrimaryOwnerArn(PrimaryOwnerArnT &&value)
CreateKnowledgeBaseRequest & WithAwsAccountId(AwsAccountIdT &&value)
CreateKnowledgeBaseRequest & WithTags(TagsT &&value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
CreateKnowledgeBaseRequest & WithPermissions(PermissionsT &&value)
CreateKnowledgeBaseRequest & WithName(NameT &&value)
CreateKnowledgeBaseRequest & AddTags(TagsT &&value)
CreateKnowledgeBaseRequest & WithDataSourceArn(DataSourceArnT &&value)
CreateKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
void SetAccessControlConfiguration(AccessControlConfigurationT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
void SetMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
CreateKnowledgeBaseRequest & AddPermissions(PermissionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector