AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ServiceNowKnowledgeArticleConfiguration.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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace kendra {
22namespace Model {
23
31 public:
32 AWS_KENDRA_API ServiceNowKnowledgeArticleConfiguration() = default;
35 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline bool GetCrawlAttachments() const { return m_crawlAttachments; }
42 inline bool CrawlAttachmentsHasBeenSet() const { return m_crawlAttachmentsHasBeenSet; }
43 inline void SetCrawlAttachments(bool value) {
44 m_crawlAttachmentsHasBeenSet = true;
45 m_crawlAttachments = value;
46 }
49 return *this;
50 }
52
54
61 inline const Aws::Vector<Aws::String>& GetIncludeAttachmentFilePatterns() const { return m_includeAttachmentFilePatterns; }
62 inline bool IncludeAttachmentFilePatternsHasBeenSet() const { return m_includeAttachmentFilePatternsHasBeenSet; }
63 template <typename IncludeAttachmentFilePatternsT = Aws::Vector<Aws::String>>
64 void SetIncludeAttachmentFilePatterns(IncludeAttachmentFilePatternsT&& value) {
65 m_includeAttachmentFilePatternsHasBeenSet = true;
66 m_includeAttachmentFilePatterns = std::forward<IncludeAttachmentFilePatternsT>(value);
67 }
68 template <typename IncludeAttachmentFilePatternsT = Aws::Vector<Aws::String>>
70 SetIncludeAttachmentFilePatterns(std::forward<IncludeAttachmentFilePatternsT>(value));
71 return *this;
72 }
73 template <typename IncludeAttachmentFilePatternsT = Aws::String>
75 m_includeAttachmentFilePatternsHasBeenSet = true;
76 m_includeAttachmentFilePatterns.emplace_back(std::forward<IncludeAttachmentFilePatternsT>(value));
77 return *this;
78 }
80
82
89 inline const Aws::Vector<Aws::String>& GetExcludeAttachmentFilePatterns() const { return m_excludeAttachmentFilePatterns; }
90 inline bool ExcludeAttachmentFilePatternsHasBeenSet() const { return m_excludeAttachmentFilePatternsHasBeenSet; }
91 template <typename ExcludeAttachmentFilePatternsT = Aws::Vector<Aws::String>>
92 void SetExcludeAttachmentFilePatterns(ExcludeAttachmentFilePatternsT&& value) {
93 m_excludeAttachmentFilePatternsHasBeenSet = true;
94 m_excludeAttachmentFilePatterns = std::forward<ExcludeAttachmentFilePatternsT>(value);
95 }
96 template <typename ExcludeAttachmentFilePatternsT = Aws::Vector<Aws::String>>
98 SetExcludeAttachmentFilePatterns(std::forward<ExcludeAttachmentFilePatternsT>(value));
99 return *this;
100 }
101 template <typename ExcludeAttachmentFilePatternsT = Aws::String>
103 m_excludeAttachmentFilePatternsHasBeenSet = true;
104 m_excludeAttachmentFilePatterns.emplace_back(std::forward<ExcludeAttachmentFilePatternsT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetDocumentDataFieldName() const { return m_documentDataFieldName; }
115 inline bool DocumentDataFieldNameHasBeenSet() const { return m_documentDataFieldNameHasBeenSet; }
116 template <typename DocumentDataFieldNameT = Aws::String>
117 void SetDocumentDataFieldName(DocumentDataFieldNameT&& value) {
118 m_documentDataFieldNameHasBeenSet = true;
119 m_documentDataFieldName = std::forward<DocumentDataFieldNameT>(value);
120 }
121 template <typename DocumentDataFieldNameT = Aws::String>
123 SetDocumentDataFieldName(std::forward<DocumentDataFieldNameT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetDocumentTitleFieldName() const { return m_documentTitleFieldName; }
134 inline bool DocumentTitleFieldNameHasBeenSet() const { return m_documentTitleFieldNameHasBeenSet; }
135 template <typename DocumentTitleFieldNameT = Aws::String>
136 void SetDocumentTitleFieldName(DocumentTitleFieldNameT&& value) {
137 m_documentTitleFieldNameHasBeenSet = true;
138 m_documentTitleFieldName = std::forward<DocumentTitleFieldNameT>(value);
139 }
140 template <typename DocumentTitleFieldNameT = Aws::String>
142 SetDocumentTitleFieldName(std::forward<DocumentTitleFieldNameT>(value));
143 return *this;
144 }
146
148
156 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetFieldMappings() const { return m_fieldMappings; }
157 inline bool FieldMappingsHasBeenSet() const { return m_fieldMappingsHasBeenSet; }
158 template <typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
159 void SetFieldMappings(FieldMappingsT&& value) {
160 m_fieldMappingsHasBeenSet = true;
161 m_fieldMappings = std::forward<FieldMappingsT>(value);
162 }
163 template <typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
165 SetFieldMappings(std::forward<FieldMappingsT>(value));
166 return *this;
167 }
168 template <typename FieldMappingsT = DataSourceToIndexFieldMapping>
170 m_fieldMappingsHasBeenSet = true;
171 m_fieldMappings.emplace_back(std::forward<FieldMappingsT>(value));
172 return *this;
173 }
175
177
185 inline const Aws::String& GetFilterQuery() const { return m_filterQuery; }
186 inline bool FilterQueryHasBeenSet() const { return m_filterQueryHasBeenSet; }
187 template <typename FilterQueryT = Aws::String>
188 void SetFilterQuery(FilterQueryT&& value) {
189 m_filterQueryHasBeenSet = true;
190 m_filterQuery = std::forward<FilterQueryT>(value);
191 }
192 template <typename FilterQueryT = Aws::String>
194 SetFilterQuery(std::forward<FilterQueryT>(value));
195 return *this;
196 }
198 private:
199 bool m_crawlAttachments{false};
200 bool m_crawlAttachmentsHasBeenSet = false;
201
202 Aws::Vector<Aws::String> m_includeAttachmentFilePatterns;
203 bool m_includeAttachmentFilePatternsHasBeenSet = false;
204
205 Aws::Vector<Aws::String> m_excludeAttachmentFilePatterns;
206 bool m_excludeAttachmentFilePatternsHasBeenSet = false;
207
208 Aws::String m_documentDataFieldName;
209 bool m_documentDataFieldNameHasBeenSet = false;
210
211 Aws::String m_documentTitleFieldName;
212 bool m_documentTitleFieldNameHasBeenSet = false;
213
215 bool m_fieldMappingsHasBeenSet = false;
216
217 Aws::String m_filterQuery;
218 bool m_filterQueryHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace kendra
223} // namespace Aws
AWS_KENDRA_API ServiceNowKnowledgeArticleConfiguration()=default
bool FilterQueryHasBeenSet() const
ServiceNowKnowledgeArticleConfiguration & AddIncludeAttachmentFilePatterns(IncludeAttachmentFilePatternsT &&value)
void SetFilterQuery(FilterQueryT &&value)
ServiceNowKnowledgeArticleConfiguration & AddFieldMappings(FieldMappingsT &&value)
bool IncludeAttachmentFilePatternsHasBeenSet() const
bool DocumentDataFieldNameHasBeenSet() const
const Aws::String & GetDocumentTitleFieldName() const
ServiceNowKnowledgeArticleConfiguration & WithDocumentTitleFieldName(DocumentTitleFieldNameT &&value)
void SetExcludeAttachmentFilePatterns(ExcludeAttachmentFilePatternsT &&value)
ServiceNowKnowledgeArticleConfiguration & WithFilterQuery(FilterQueryT &&value)
AWS_KENDRA_API ServiceNowKnowledgeArticleConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFilterQuery() const
const Aws::String & GetDocumentDataFieldName() const
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDocumentDataFieldName(DocumentDataFieldNameT &&value)
ServiceNowKnowledgeArticleConfiguration & WithCrawlAttachments(bool value)
bool GetCrawlAttachments() const
ServiceNowKnowledgeArticleConfiguration & AddExcludeAttachmentFilePatterns(ExcludeAttachmentFilePatternsT &&value)
const Aws::Vector< Aws::String > & GetIncludeAttachmentFilePatterns() const
ServiceNowKnowledgeArticleConfiguration & WithDocumentDataFieldName(DocumentDataFieldNameT &&value)
const Aws::Vector< Aws::String > & GetExcludeAttachmentFilePatterns() const
ServiceNowKnowledgeArticleConfiguration & WithIncludeAttachmentFilePatterns(IncludeAttachmentFilePatternsT &&value)
bool CrawlAttachmentsHasBeenSet() const
ServiceNowKnowledgeArticleConfiguration & WithFieldMappings(FieldMappingsT &&value)
bool FieldMappingsHasBeenSet() const
AWS_KENDRA_API ServiceNowKnowledgeArticleConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceNowKnowledgeArticleConfiguration & WithExcludeAttachmentFilePatterns(ExcludeAttachmentFilePatternsT &&value)
void SetIncludeAttachmentFilePatterns(IncludeAttachmentFilePatternsT &&value)
void SetDocumentTitleFieldName(DocumentTitleFieldNameT &&value)
void SetCrawlAttachments(bool value)
const Aws::Vector< DataSourceToIndexFieldMapping > & GetFieldMappings() const
void SetFieldMappings(FieldMappingsT &&value)
bool DocumentTitleFieldNameHasBeenSet() const
bool ExcludeAttachmentFilePatternsHasBeenSet() 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