AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SlackConfiguration.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/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/DataSourceToIndexFieldMapping.h>
11#include <aws/kendra/model/DataSourceVpcConfiguration.h>
12#include <aws/kendra/model/SlackEntity.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace kendra {
24namespace Model {
25
43 public:
44 AWS_KENDRA_API SlackConfiguration() = default;
47 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
57 inline const Aws::String& GetTeamId() const { return m_teamId; }
58 inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; }
59 template <typename TeamIdT = Aws::String>
60 void SetTeamId(TeamIdT&& value) {
61 m_teamIdHasBeenSet = true;
62 m_teamId = std::forward<TeamIdT>(value);
63 }
64 template <typename TeamIdT = Aws::String>
65 SlackConfiguration& WithTeamId(TeamIdT&& value) {
66 SetTeamId(std::forward<TeamIdT>(value));
67 return *this;
68 }
70
72
81 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
82 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
83 template <typename SecretArnT = Aws::String>
84 void SetSecretArn(SecretArnT&& value) {
85 m_secretArnHasBeenSet = true;
86 m_secretArn = std::forward<SecretArnT>(value);
87 }
88 template <typename SecretArnT = Aws::String>
89 SlackConfiguration& WithSecretArn(SecretArnT&& value) {
90 SetSecretArn(std::forward<SecretArnT>(value));
91 return *this;
92 }
94
96
102 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
103 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
104 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
105 void SetVpcConfiguration(VpcConfigurationT&& value) {
106 m_vpcConfigurationHasBeenSet = true;
107 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
108 }
109 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
110 SlackConfiguration& WithVpcConfiguration(VpcConfigurationT&& value) {
111 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Vector<SlackEntity>& GetSlackEntityList() const { return m_slackEntityList; }
122 inline bool SlackEntityListHasBeenSet() const { return m_slackEntityListHasBeenSet; }
123 template <typename SlackEntityListT = Aws::Vector<SlackEntity>>
124 void SetSlackEntityList(SlackEntityListT&& value) {
125 m_slackEntityListHasBeenSet = true;
126 m_slackEntityList = std::forward<SlackEntityListT>(value);
127 }
128 template <typename SlackEntityListT = Aws::Vector<SlackEntity>>
129 SlackConfiguration& WithSlackEntityList(SlackEntityListT&& value) {
130 SetSlackEntityList(std::forward<SlackEntityListT>(value));
131 return *this;
132 }
134 m_slackEntityListHasBeenSet = true;
135 m_slackEntityList.push_back(value);
136 return *this;
137 }
139
141
147 inline bool GetUseChangeLog() const { return m_useChangeLog; }
148 inline bool UseChangeLogHasBeenSet() const { return m_useChangeLogHasBeenSet; }
149 inline void SetUseChangeLog(bool value) {
150 m_useChangeLogHasBeenSet = true;
151 m_useChangeLog = value;
152 }
154 SetUseChangeLog(value);
155 return *this;
156 }
158
160
163 inline bool GetCrawlBotMessage() const { return m_crawlBotMessage; }
164 inline bool CrawlBotMessageHasBeenSet() const { return m_crawlBotMessageHasBeenSet; }
165 inline void SetCrawlBotMessage(bool value) {
166 m_crawlBotMessageHasBeenSet = true;
167 m_crawlBotMessage = value;
168 }
170 SetCrawlBotMessage(value);
171 return *this;
172 }
174
176
180 inline bool GetExcludeArchived() const { return m_excludeArchived; }
181 inline bool ExcludeArchivedHasBeenSet() const { return m_excludeArchivedHasBeenSet; }
182 inline void SetExcludeArchived(bool value) {
183 m_excludeArchivedHasBeenSet = true;
184 m_excludeArchived = value;
185 }
187 SetExcludeArchived(value);
188 return *this;
189 }
191
193
197 inline const Aws::String& GetSinceCrawlDate() const { return m_sinceCrawlDate; }
198 inline bool SinceCrawlDateHasBeenSet() const { return m_sinceCrawlDateHasBeenSet; }
199 template <typename SinceCrawlDateT = Aws::String>
200 void SetSinceCrawlDate(SinceCrawlDateT&& value) {
201 m_sinceCrawlDateHasBeenSet = true;
202 m_sinceCrawlDate = std::forward<SinceCrawlDateT>(value);
203 }
204 template <typename SinceCrawlDateT = Aws::String>
205 SlackConfiguration& WithSinceCrawlDate(SinceCrawlDateT&& value) {
206 SetSinceCrawlDate(std::forward<SinceCrawlDateT>(value));
207 return *this;
208 }
210
212
221 inline int GetLookBackPeriod() const { return m_lookBackPeriod; }
222 inline bool LookBackPeriodHasBeenSet() const { return m_lookBackPeriodHasBeenSet; }
223 inline void SetLookBackPeriod(int value) {
224 m_lookBackPeriodHasBeenSet = true;
225 m_lookBackPeriod = value;
226 }
228 SetLookBackPeriod(value);
229 return *this;
230 }
232
234
239 inline const Aws::Vector<Aws::String>& GetPrivateChannelFilter() const { return m_privateChannelFilter; }
240 inline bool PrivateChannelFilterHasBeenSet() const { return m_privateChannelFilterHasBeenSet; }
241 template <typename PrivateChannelFilterT = Aws::Vector<Aws::String>>
242 void SetPrivateChannelFilter(PrivateChannelFilterT&& value) {
243 m_privateChannelFilterHasBeenSet = true;
244 m_privateChannelFilter = std::forward<PrivateChannelFilterT>(value);
245 }
246 template <typename PrivateChannelFilterT = Aws::Vector<Aws::String>>
247 SlackConfiguration& WithPrivateChannelFilter(PrivateChannelFilterT&& value) {
248 SetPrivateChannelFilter(std::forward<PrivateChannelFilterT>(value));
249 return *this;
250 }
251 template <typename PrivateChannelFilterT = Aws::String>
252 SlackConfiguration& AddPrivateChannelFilter(PrivateChannelFilterT&& value) {
253 m_privateChannelFilterHasBeenSet = true;
254 m_privateChannelFilter.emplace_back(std::forward<PrivateChannelFilterT>(value));
255 return *this;
256 }
258
260
265 inline const Aws::Vector<Aws::String>& GetPublicChannelFilter() const { return m_publicChannelFilter; }
266 inline bool PublicChannelFilterHasBeenSet() const { return m_publicChannelFilterHasBeenSet; }
267 template <typename PublicChannelFilterT = Aws::Vector<Aws::String>>
268 void SetPublicChannelFilter(PublicChannelFilterT&& value) {
269 m_publicChannelFilterHasBeenSet = true;
270 m_publicChannelFilter = std::forward<PublicChannelFilterT>(value);
271 }
272 template <typename PublicChannelFilterT = Aws::Vector<Aws::String>>
273 SlackConfiguration& WithPublicChannelFilter(PublicChannelFilterT&& value) {
274 SetPublicChannelFilter(std::forward<PublicChannelFilterT>(value));
275 return *this;
276 }
277 template <typename PublicChannelFilterT = Aws::String>
278 SlackConfiguration& AddPublicChannelFilter(PublicChannelFilterT&& value) {
279 m_publicChannelFilterHasBeenSet = true;
280 m_publicChannelFilter.emplace_back(std::forward<PublicChannelFilterT>(value));
281 return *this;
282 }
284
286
293 inline const Aws::Vector<Aws::String>& GetInclusionPatterns() const { return m_inclusionPatterns; }
294 inline bool InclusionPatternsHasBeenSet() const { return m_inclusionPatternsHasBeenSet; }
295 template <typename InclusionPatternsT = Aws::Vector<Aws::String>>
296 void SetInclusionPatterns(InclusionPatternsT&& value) {
297 m_inclusionPatternsHasBeenSet = true;
298 m_inclusionPatterns = std::forward<InclusionPatternsT>(value);
299 }
300 template <typename InclusionPatternsT = Aws::Vector<Aws::String>>
301 SlackConfiguration& WithInclusionPatterns(InclusionPatternsT&& value) {
302 SetInclusionPatterns(std::forward<InclusionPatternsT>(value));
303 return *this;
304 }
305 template <typename InclusionPatternsT = Aws::String>
306 SlackConfiguration& AddInclusionPatterns(InclusionPatternsT&& value) {
307 m_inclusionPatternsHasBeenSet = true;
308 m_inclusionPatterns.emplace_back(std::forward<InclusionPatternsT>(value));
309 return *this;
310 }
312
314
321 inline const Aws::Vector<Aws::String>& GetExclusionPatterns() const { return m_exclusionPatterns; }
322 inline bool ExclusionPatternsHasBeenSet() const { return m_exclusionPatternsHasBeenSet; }
323 template <typename ExclusionPatternsT = Aws::Vector<Aws::String>>
324 void SetExclusionPatterns(ExclusionPatternsT&& value) {
325 m_exclusionPatternsHasBeenSet = true;
326 m_exclusionPatterns = std::forward<ExclusionPatternsT>(value);
327 }
328 template <typename ExclusionPatternsT = Aws::Vector<Aws::String>>
329 SlackConfiguration& WithExclusionPatterns(ExclusionPatternsT&& value) {
330 SetExclusionPatterns(std::forward<ExclusionPatternsT>(value));
331 return *this;
332 }
333 template <typename ExclusionPatternsT = Aws::String>
334 SlackConfiguration& AddExclusionPatterns(ExclusionPatternsT&& value) {
335 m_exclusionPatternsHasBeenSet = true;
336 m_exclusionPatterns.emplace_back(std::forward<ExclusionPatternsT>(value));
337 return *this;
338 }
340
342
351 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetFieldMappings() const { return m_fieldMappings; }
352 inline bool FieldMappingsHasBeenSet() const { return m_fieldMappingsHasBeenSet; }
353 template <typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
354 void SetFieldMappings(FieldMappingsT&& value) {
355 m_fieldMappingsHasBeenSet = true;
356 m_fieldMappings = std::forward<FieldMappingsT>(value);
357 }
358 template <typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
359 SlackConfiguration& WithFieldMappings(FieldMappingsT&& value) {
360 SetFieldMappings(std::forward<FieldMappingsT>(value));
361 return *this;
362 }
363 template <typename FieldMappingsT = DataSourceToIndexFieldMapping>
364 SlackConfiguration& AddFieldMappings(FieldMappingsT&& value) {
365 m_fieldMappingsHasBeenSet = true;
366 m_fieldMappings.emplace_back(std::forward<FieldMappingsT>(value));
367 return *this;
368 }
370 private:
371 Aws::String m_teamId;
372 bool m_teamIdHasBeenSet = false;
373
374 Aws::String m_secretArn;
375 bool m_secretArnHasBeenSet = false;
376
377 DataSourceVpcConfiguration m_vpcConfiguration;
378 bool m_vpcConfigurationHasBeenSet = false;
379
380 Aws::Vector<SlackEntity> m_slackEntityList;
381 bool m_slackEntityListHasBeenSet = false;
382
383 bool m_useChangeLog{false};
384 bool m_useChangeLogHasBeenSet = false;
385
386 bool m_crawlBotMessage{false};
387 bool m_crawlBotMessageHasBeenSet = false;
388
389 bool m_excludeArchived{false};
390 bool m_excludeArchivedHasBeenSet = false;
391
392 Aws::String m_sinceCrawlDate;
393 bool m_sinceCrawlDateHasBeenSet = false;
394
395 int m_lookBackPeriod{0};
396 bool m_lookBackPeriodHasBeenSet = false;
397
398 Aws::Vector<Aws::String> m_privateChannelFilter;
399 bool m_privateChannelFilterHasBeenSet = false;
400
401 Aws::Vector<Aws::String> m_publicChannelFilter;
402 bool m_publicChannelFilterHasBeenSet = false;
403
404 Aws::Vector<Aws::String> m_inclusionPatterns;
405 bool m_inclusionPatternsHasBeenSet = false;
406
407 Aws::Vector<Aws::String> m_exclusionPatterns;
408 bool m_exclusionPatternsHasBeenSet = false;
409
411 bool m_fieldMappingsHasBeenSet = false;
412};
413
414} // namespace Model
415} // namespace kendra
416} // namespace Aws
void SetPublicChannelFilter(PublicChannelFilterT &&value)
SlackConfiguration & WithCrawlBotMessage(bool value)
const Aws::Vector< Aws::String > & GetPrivateChannelFilter() const
const Aws::Vector< Aws::String > & GetPublicChannelFilter() const
SlackConfiguration & WithVpcConfiguration(VpcConfigurationT &&value)
AWS_KENDRA_API SlackConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetSlackEntityList(SlackEntityListT &&value)
const Aws::Vector< Aws::String > & GetInclusionPatterns() const
AWS_KENDRA_API SlackConfiguration()=default
SlackConfiguration & WithInclusionPatterns(InclusionPatternsT &&value)
const Aws::String & GetSecretArn() const
SlackConfiguration & WithSlackEntityList(SlackEntityListT &&value)
SlackConfiguration & AddFieldMappings(FieldMappingsT &&value)
SlackConfiguration & WithUseChangeLog(bool value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
SlackConfiguration & AddInclusionPatterns(InclusionPatternsT &&value)
void SetFieldMappings(FieldMappingsT &&value)
SlackConfiguration & AddPublicChannelFilter(PublicChannelFilterT &&value)
SlackConfiguration & AddExclusionPatterns(ExclusionPatternsT &&value)
void SetInclusionPatterns(InclusionPatternsT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
const DataSourceVpcConfiguration & GetVpcConfiguration() const
SlackConfiguration & WithExclusionPatterns(ExclusionPatternsT &&value)
SlackConfiguration & AddSlackEntityList(SlackEntity value)
const Aws::String & GetSinceCrawlDate() const
const Aws::String & GetTeamId() const
void SetExclusionPatterns(ExclusionPatternsT &&value)
SlackConfiguration & AddPrivateChannelFilter(PrivateChannelFilterT &&value)
SlackConfiguration & WithSinceCrawlDate(SinceCrawlDateT &&value)
SlackConfiguration & WithSecretArn(SecretArnT &&value)
void SetPrivateChannelFilter(PrivateChannelFilterT &&value)
SlackConfiguration & WithFieldMappings(FieldMappingsT &&value)
AWS_KENDRA_API SlackConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSinceCrawlDate(SinceCrawlDateT &&value)
SlackConfiguration & WithTeamId(TeamIdT &&value)
const Aws::Vector< DataSourceToIndexFieldMapping > & GetFieldMappings() const
SlackConfiguration & WithPublicChannelFilter(PublicChannelFilterT &&value)
SlackConfiguration & WithLookBackPeriod(int value)
const Aws::Vector< SlackEntity > & GetSlackEntityList() const
SlackConfiguration & WithPrivateChannelFilter(PrivateChannelFilterT &&value)
SlackConfiguration & WithExcludeArchived(bool value)
const Aws::Vector< Aws::String > & GetExclusionPatterns() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue