AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceNowKnowledgeArticleConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kendra/model/DataSourceToIndexFieldMapping.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace kendra
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_KENDRA_API ServiceNowKnowledgeArticleConfiguration() = default;
40 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline bool GetCrawlAttachments() const { return m_crawlAttachments; }
48 inline bool CrawlAttachmentsHasBeenSet() const { return m_crawlAttachmentsHasBeenSet; }
49 inline void SetCrawlAttachments(bool value) { m_crawlAttachmentsHasBeenSet = true; m_crawlAttachments = value; }
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) { m_includeAttachmentFilePatternsHasBeenSet = true; m_includeAttachmentFilePatterns = std::forward<IncludeAttachmentFilePatternsT>(value); }
65 template<typename IncludeAttachmentFilePatternsT = Aws::Vector<Aws::String>>
66 ServiceNowKnowledgeArticleConfiguration& WithIncludeAttachmentFilePatterns(IncludeAttachmentFilePatternsT&& value) { SetIncludeAttachmentFilePatterns(std::forward<IncludeAttachmentFilePatternsT>(value)); return *this;}
67 template<typename IncludeAttachmentFilePatternsT = Aws::String>
68 ServiceNowKnowledgeArticleConfiguration& AddIncludeAttachmentFilePatterns(IncludeAttachmentFilePatternsT&& value) { m_includeAttachmentFilePatternsHasBeenSet = true; m_includeAttachmentFilePatterns.emplace_back(std::forward<IncludeAttachmentFilePatternsT>(value)); return *this; }
70
72
79 inline const Aws::Vector<Aws::String>& GetExcludeAttachmentFilePatterns() const { return m_excludeAttachmentFilePatterns; }
80 inline bool ExcludeAttachmentFilePatternsHasBeenSet() const { return m_excludeAttachmentFilePatternsHasBeenSet; }
81 template<typename ExcludeAttachmentFilePatternsT = Aws::Vector<Aws::String>>
82 void SetExcludeAttachmentFilePatterns(ExcludeAttachmentFilePatternsT&& value) { m_excludeAttachmentFilePatternsHasBeenSet = true; m_excludeAttachmentFilePatterns = std::forward<ExcludeAttachmentFilePatternsT>(value); }
83 template<typename ExcludeAttachmentFilePatternsT = Aws::Vector<Aws::String>>
84 ServiceNowKnowledgeArticleConfiguration& WithExcludeAttachmentFilePatterns(ExcludeAttachmentFilePatternsT&& value) { SetExcludeAttachmentFilePatterns(std::forward<ExcludeAttachmentFilePatternsT>(value)); return *this;}
85 template<typename ExcludeAttachmentFilePatternsT = Aws::String>
86 ServiceNowKnowledgeArticleConfiguration& AddExcludeAttachmentFilePatterns(ExcludeAttachmentFilePatternsT&& value) { m_excludeAttachmentFilePatternsHasBeenSet = true; m_excludeAttachmentFilePatterns.emplace_back(std::forward<ExcludeAttachmentFilePatternsT>(value)); return *this; }
88
90
94 inline const Aws::String& GetDocumentDataFieldName() const { return m_documentDataFieldName; }
95 inline bool DocumentDataFieldNameHasBeenSet() const { return m_documentDataFieldNameHasBeenSet; }
96 template<typename DocumentDataFieldNameT = Aws::String>
97 void SetDocumentDataFieldName(DocumentDataFieldNameT&& value) { m_documentDataFieldNameHasBeenSet = true; m_documentDataFieldName = std::forward<DocumentDataFieldNameT>(value); }
98 template<typename DocumentDataFieldNameT = Aws::String>
99 ServiceNowKnowledgeArticleConfiguration& WithDocumentDataFieldName(DocumentDataFieldNameT&& value) { SetDocumentDataFieldName(std::forward<DocumentDataFieldNameT>(value)); return *this;}
101
103
107 inline const Aws::String& GetDocumentTitleFieldName() const { return m_documentTitleFieldName; }
108 inline bool DocumentTitleFieldNameHasBeenSet() const { return m_documentTitleFieldNameHasBeenSet; }
109 template<typename DocumentTitleFieldNameT = Aws::String>
110 void SetDocumentTitleFieldName(DocumentTitleFieldNameT&& value) { m_documentTitleFieldNameHasBeenSet = true; m_documentTitleFieldName = std::forward<DocumentTitleFieldNameT>(value); }
111 template<typename DocumentTitleFieldNameT = Aws::String>
112 ServiceNowKnowledgeArticleConfiguration& WithDocumentTitleFieldName(DocumentTitleFieldNameT&& value) { SetDocumentTitleFieldName(std::forward<DocumentTitleFieldNameT>(value)); return *this;}
114
116
124 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetFieldMappings() const { return m_fieldMappings; }
125 inline bool FieldMappingsHasBeenSet() const { return m_fieldMappingsHasBeenSet; }
126 template<typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
127 void SetFieldMappings(FieldMappingsT&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings = std::forward<FieldMappingsT>(value); }
128 template<typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
129 ServiceNowKnowledgeArticleConfiguration& WithFieldMappings(FieldMappingsT&& value) { SetFieldMappings(std::forward<FieldMappingsT>(value)); return *this;}
130 template<typename FieldMappingsT = DataSourceToIndexFieldMapping>
131 ServiceNowKnowledgeArticleConfiguration& AddFieldMappings(FieldMappingsT&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.emplace_back(std::forward<FieldMappingsT>(value)); return *this; }
133
135
143 inline const Aws::String& GetFilterQuery() const { return m_filterQuery; }
144 inline bool FilterQueryHasBeenSet() const { return m_filterQueryHasBeenSet; }
145 template<typename FilterQueryT = Aws::String>
146 void SetFilterQuery(FilterQueryT&& value) { m_filterQueryHasBeenSet = true; m_filterQuery = std::forward<FilterQueryT>(value); }
147 template<typename FilterQueryT = Aws::String>
148 ServiceNowKnowledgeArticleConfiguration& WithFilterQuery(FilterQueryT&& value) { SetFilterQuery(std::forward<FilterQueryT>(value)); return *this;}
150 private:
151
152 bool m_crawlAttachments{false};
153 bool m_crawlAttachmentsHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_includeAttachmentFilePatterns;
156 bool m_includeAttachmentFilePatternsHasBeenSet = false;
157
158 Aws::Vector<Aws::String> m_excludeAttachmentFilePatterns;
159 bool m_excludeAttachmentFilePatternsHasBeenSet = false;
160
161 Aws::String m_documentDataFieldName;
162 bool m_documentDataFieldNameHasBeenSet = false;
163
164 Aws::String m_documentTitleFieldName;
165 bool m_documentTitleFieldNameHasBeenSet = false;
166
168 bool m_fieldMappingsHasBeenSet = false;
169
170 Aws::String m_filterQuery;
171 bool m_filterQueryHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace kendra
176} // 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