AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SlackConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/model/DataSourceVpcConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kendra/model/SlackEntity.h>
12#include <aws/kendra/model/DataSourceToIndexFieldMapping.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace kendra
26{
27namespace Model
28{
29
47 {
48 public:
49 AWS_KENDRA_API SlackConfiguration() = default;
52 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
63 inline const Aws::String& GetTeamId() const { return m_teamId; }
64 inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; }
65 template<typename TeamIdT = Aws::String>
66 void SetTeamId(TeamIdT&& value) { m_teamIdHasBeenSet = true; m_teamId = std::forward<TeamIdT>(value); }
67 template<typename TeamIdT = Aws::String>
68 SlackConfiguration& WithTeamId(TeamIdT&& value) { SetTeamId(std::forward<TeamIdT>(value)); return *this;}
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) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
85 template<typename SecretArnT = Aws::String>
86 SlackConfiguration& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
88
90
96 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
97 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
98 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
99 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
100 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
101 SlackConfiguration& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
103
105
109 inline const Aws::Vector<SlackEntity>& GetSlackEntityList() const { return m_slackEntityList; }
110 inline bool SlackEntityListHasBeenSet() const { return m_slackEntityListHasBeenSet; }
111 template<typename SlackEntityListT = Aws::Vector<SlackEntity>>
112 void SetSlackEntityList(SlackEntityListT&& value) { m_slackEntityListHasBeenSet = true; m_slackEntityList = std::forward<SlackEntityListT>(value); }
113 template<typename SlackEntityListT = Aws::Vector<SlackEntity>>
114 SlackConfiguration& WithSlackEntityList(SlackEntityListT&& value) { SetSlackEntityList(std::forward<SlackEntityListT>(value)); return *this;}
115 inline SlackConfiguration& AddSlackEntityList(SlackEntity value) { m_slackEntityListHasBeenSet = true; m_slackEntityList.push_back(value); return *this; }
117
119
125 inline bool GetUseChangeLog() const { return m_useChangeLog; }
126 inline bool UseChangeLogHasBeenSet() const { return m_useChangeLogHasBeenSet; }
127 inline void SetUseChangeLog(bool value) { m_useChangeLogHasBeenSet = true; m_useChangeLog = value; }
128 inline SlackConfiguration& WithUseChangeLog(bool value) { SetUseChangeLog(value); return *this;}
130
132
135 inline bool GetCrawlBotMessage() const { return m_crawlBotMessage; }
136 inline bool CrawlBotMessageHasBeenSet() const { return m_crawlBotMessageHasBeenSet; }
137 inline void SetCrawlBotMessage(bool value) { m_crawlBotMessageHasBeenSet = true; m_crawlBotMessage = value; }
138 inline SlackConfiguration& WithCrawlBotMessage(bool value) { SetCrawlBotMessage(value); return *this;}
140
142
146 inline bool GetExcludeArchived() const { return m_excludeArchived; }
147 inline bool ExcludeArchivedHasBeenSet() const { return m_excludeArchivedHasBeenSet; }
148 inline void SetExcludeArchived(bool value) { m_excludeArchivedHasBeenSet = true; m_excludeArchived = value; }
149 inline SlackConfiguration& WithExcludeArchived(bool value) { SetExcludeArchived(value); return *this;}
151
153
157 inline const Aws::String& GetSinceCrawlDate() const { return m_sinceCrawlDate; }
158 inline bool SinceCrawlDateHasBeenSet() const { return m_sinceCrawlDateHasBeenSet; }
159 template<typename SinceCrawlDateT = Aws::String>
160 void SetSinceCrawlDate(SinceCrawlDateT&& value) { m_sinceCrawlDateHasBeenSet = true; m_sinceCrawlDate = std::forward<SinceCrawlDateT>(value); }
161 template<typename SinceCrawlDateT = Aws::String>
162 SlackConfiguration& WithSinceCrawlDate(SinceCrawlDateT&& value) { SetSinceCrawlDate(std::forward<SinceCrawlDateT>(value)); return *this;}
164
166
175 inline int GetLookBackPeriod() const { return m_lookBackPeriod; }
176 inline bool LookBackPeriodHasBeenSet() const { return m_lookBackPeriodHasBeenSet; }
177 inline void SetLookBackPeriod(int value) { m_lookBackPeriodHasBeenSet = true; m_lookBackPeriod = value; }
178 inline SlackConfiguration& WithLookBackPeriod(int value) { SetLookBackPeriod(value); return *this;}
180
182
187 inline const Aws::Vector<Aws::String>& GetPrivateChannelFilter() const { return m_privateChannelFilter; }
188 inline bool PrivateChannelFilterHasBeenSet() const { return m_privateChannelFilterHasBeenSet; }
189 template<typename PrivateChannelFilterT = Aws::Vector<Aws::String>>
190 void SetPrivateChannelFilter(PrivateChannelFilterT&& value) { m_privateChannelFilterHasBeenSet = true; m_privateChannelFilter = std::forward<PrivateChannelFilterT>(value); }
191 template<typename PrivateChannelFilterT = Aws::Vector<Aws::String>>
192 SlackConfiguration& WithPrivateChannelFilter(PrivateChannelFilterT&& value) { SetPrivateChannelFilter(std::forward<PrivateChannelFilterT>(value)); return *this;}
193 template<typename PrivateChannelFilterT = Aws::String>
194 SlackConfiguration& AddPrivateChannelFilter(PrivateChannelFilterT&& value) { m_privateChannelFilterHasBeenSet = true; m_privateChannelFilter.emplace_back(std::forward<PrivateChannelFilterT>(value)); return *this; }
196
198
203 inline const Aws::Vector<Aws::String>& GetPublicChannelFilter() const { return m_publicChannelFilter; }
204 inline bool PublicChannelFilterHasBeenSet() const { return m_publicChannelFilterHasBeenSet; }
205 template<typename PublicChannelFilterT = Aws::Vector<Aws::String>>
206 void SetPublicChannelFilter(PublicChannelFilterT&& value) { m_publicChannelFilterHasBeenSet = true; m_publicChannelFilter = std::forward<PublicChannelFilterT>(value); }
207 template<typename PublicChannelFilterT = Aws::Vector<Aws::String>>
208 SlackConfiguration& WithPublicChannelFilter(PublicChannelFilterT&& value) { SetPublicChannelFilter(std::forward<PublicChannelFilterT>(value)); return *this;}
209 template<typename PublicChannelFilterT = Aws::String>
210 SlackConfiguration& AddPublicChannelFilter(PublicChannelFilterT&& value) { m_publicChannelFilterHasBeenSet = true; m_publicChannelFilter.emplace_back(std::forward<PublicChannelFilterT>(value)); return *this; }
212
214
221 inline const Aws::Vector<Aws::String>& GetInclusionPatterns() const { return m_inclusionPatterns; }
222 inline bool InclusionPatternsHasBeenSet() const { return m_inclusionPatternsHasBeenSet; }
223 template<typename InclusionPatternsT = Aws::Vector<Aws::String>>
224 void SetInclusionPatterns(InclusionPatternsT&& value) { m_inclusionPatternsHasBeenSet = true; m_inclusionPatterns = std::forward<InclusionPatternsT>(value); }
225 template<typename InclusionPatternsT = Aws::Vector<Aws::String>>
226 SlackConfiguration& WithInclusionPatterns(InclusionPatternsT&& value) { SetInclusionPatterns(std::forward<InclusionPatternsT>(value)); return *this;}
227 template<typename InclusionPatternsT = Aws::String>
228 SlackConfiguration& AddInclusionPatterns(InclusionPatternsT&& value) { m_inclusionPatternsHasBeenSet = true; m_inclusionPatterns.emplace_back(std::forward<InclusionPatternsT>(value)); return *this; }
230
232
239 inline const Aws::Vector<Aws::String>& GetExclusionPatterns() const { return m_exclusionPatterns; }
240 inline bool ExclusionPatternsHasBeenSet() const { return m_exclusionPatternsHasBeenSet; }
241 template<typename ExclusionPatternsT = Aws::Vector<Aws::String>>
242 void SetExclusionPatterns(ExclusionPatternsT&& value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns = std::forward<ExclusionPatternsT>(value); }
243 template<typename ExclusionPatternsT = Aws::Vector<Aws::String>>
244 SlackConfiguration& WithExclusionPatterns(ExclusionPatternsT&& value) { SetExclusionPatterns(std::forward<ExclusionPatternsT>(value)); return *this;}
245 template<typename ExclusionPatternsT = Aws::String>
246 SlackConfiguration& AddExclusionPatterns(ExclusionPatternsT&& value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns.emplace_back(std::forward<ExclusionPatternsT>(value)); return *this; }
248
250
259 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetFieldMappings() const { return m_fieldMappings; }
260 inline bool FieldMappingsHasBeenSet() const { return m_fieldMappingsHasBeenSet; }
261 template<typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
262 void SetFieldMappings(FieldMappingsT&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings = std::forward<FieldMappingsT>(value); }
263 template<typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
264 SlackConfiguration& WithFieldMappings(FieldMappingsT&& value) { SetFieldMappings(std::forward<FieldMappingsT>(value)); return *this;}
265 template<typename FieldMappingsT = DataSourceToIndexFieldMapping>
266 SlackConfiguration& AddFieldMappings(FieldMappingsT&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.emplace_back(std::forward<FieldMappingsT>(value)); return *this; }
268 private:
269
270 Aws::String m_teamId;
271 bool m_teamIdHasBeenSet = false;
272
273 Aws::String m_secretArn;
274 bool m_secretArnHasBeenSet = false;
275
276 DataSourceVpcConfiguration m_vpcConfiguration;
277 bool m_vpcConfigurationHasBeenSet = false;
278
279 Aws::Vector<SlackEntity> m_slackEntityList;
280 bool m_slackEntityListHasBeenSet = false;
281
282 bool m_useChangeLog{false};
283 bool m_useChangeLogHasBeenSet = false;
284
285 bool m_crawlBotMessage{false};
286 bool m_crawlBotMessageHasBeenSet = false;
287
288 bool m_excludeArchived{false};
289 bool m_excludeArchivedHasBeenSet = false;
290
291 Aws::String m_sinceCrawlDate;
292 bool m_sinceCrawlDateHasBeenSet = false;
293
294 int m_lookBackPeriod{0};
295 bool m_lookBackPeriodHasBeenSet = false;
296
297 Aws::Vector<Aws::String> m_privateChannelFilter;
298 bool m_privateChannelFilterHasBeenSet = false;
299
300 Aws::Vector<Aws::String> m_publicChannelFilter;
301 bool m_publicChannelFilterHasBeenSet = false;
302
303 Aws::Vector<Aws::String> m_inclusionPatterns;
304 bool m_inclusionPatternsHasBeenSet = false;
305
306 Aws::Vector<Aws::String> m_exclusionPatterns;
307 bool m_exclusionPatternsHasBeenSet = false;
308
310 bool m_fieldMappingsHasBeenSet = false;
311 };
312
313} // namespace Model
314} // namespace kendra
315} // 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