366 lines
17 KiB
C++
366 lines
17 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/kendra/Kendra_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/kendra/model/DataSourceToIndexFieldMapping.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace kendra
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Provides configuration information for crawling knowledge articles in the
|
|
* ServiceNow site.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/ServiceNowKnowledgeArticleConfiguration">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_KENDRA_API ServiceNowKnowledgeArticleConfiguration
|
|
{
|
|
public:
|
|
ServiceNowKnowledgeArticleConfiguration();
|
|
ServiceNowKnowledgeArticleConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
|
ServiceNowKnowledgeArticleConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>Indicates whether Amazon Kendra should index attachments to knowledge
|
|
* articles.</p>
|
|
*/
|
|
inline bool GetCrawlAttachments() const{ return m_crawlAttachments; }
|
|
|
|
/**
|
|
* <p>Indicates whether Amazon Kendra should index attachments to knowledge
|
|
* articles.</p>
|
|
*/
|
|
inline bool CrawlAttachmentsHasBeenSet() const { return m_crawlAttachmentsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates whether Amazon Kendra should index attachments to knowledge
|
|
* articles.</p>
|
|
*/
|
|
inline void SetCrawlAttachments(bool value) { m_crawlAttachmentsHasBeenSet = true; m_crawlAttachments = value; }
|
|
|
|
/**
|
|
* <p>Indicates whether Amazon Kendra should index attachments to knowledge
|
|
* articles.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithCrawlAttachments(bool value) { SetCrawlAttachments(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code>.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetIncludeAttachmentFilePatterns() const{ return m_includeAttachmentFilePatterns; }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code>.</p>
|
|
*/
|
|
inline bool IncludeAttachmentFilePatternsHasBeenSet() const { return m_includeAttachmentFilePatternsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code>.</p>
|
|
*/
|
|
inline void SetIncludeAttachmentFilePatterns(const Aws::Vector<Aws::String>& value) { m_includeAttachmentFilePatternsHasBeenSet = true; m_includeAttachmentFilePatterns = value; }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code>.</p>
|
|
*/
|
|
inline void SetIncludeAttachmentFilePatterns(Aws::Vector<Aws::String>&& value) { m_includeAttachmentFilePatternsHasBeenSet = true; m_includeAttachmentFilePatterns = std::move(value); }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code>.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithIncludeAttachmentFilePatterns(const Aws::Vector<Aws::String>& value) { SetIncludeAttachmentFilePatterns(value); return *this;}
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code>.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithIncludeAttachmentFilePatterns(Aws::Vector<Aws::String>&& value) { SetIncludeAttachmentFilePatterns(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code>.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& AddIncludeAttachmentFilePatterns(const Aws::String& value) { m_includeAttachmentFilePatternsHasBeenSet = true; m_includeAttachmentFilePatterns.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code>.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& AddIncludeAttachmentFilePatterns(Aws::String&& value) { m_includeAttachmentFilePatternsHasBeenSet = true; m_includeAttachmentFilePatterns.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code>.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& AddIncludeAttachmentFilePatterns(const char* value) { m_includeAttachmentFilePatternsHasBeenSet = true; m_includeAttachmentFilePatterns.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code> </p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetExcludeAttachmentFilePatterns() const{ return m_excludeAttachmentFilePatterns; }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code> </p>
|
|
*/
|
|
inline bool ExcludeAttachmentFilePatternsHasBeenSet() const { return m_excludeAttachmentFilePatternsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code> </p>
|
|
*/
|
|
inline void SetExcludeAttachmentFilePatterns(const Aws::Vector<Aws::String>& value) { m_excludeAttachmentFilePatternsHasBeenSet = true; m_excludeAttachmentFilePatterns = value; }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code> </p>
|
|
*/
|
|
inline void SetExcludeAttachmentFilePatterns(Aws::Vector<Aws::String>&& value) { m_excludeAttachmentFilePatternsHasBeenSet = true; m_excludeAttachmentFilePatterns = std::move(value); }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code> </p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithExcludeAttachmentFilePatterns(const Aws::Vector<Aws::String>& value) { SetExcludeAttachmentFilePatterns(value); return *this;}
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code> </p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithExcludeAttachmentFilePatterns(Aws::Vector<Aws::String>&& value) { SetExcludeAttachmentFilePatterns(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code> </p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& AddExcludeAttachmentFilePatterns(const Aws::String& value) { m_excludeAttachmentFilePatternsHasBeenSet = true; m_excludeAttachmentFilePatterns.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code> </p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& AddExcludeAttachmentFilePatterns(Aws::String&& value) { m_excludeAttachmentFilePatternsHasBeenSet = true; m_excludeAttachmentFilePatterns.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>List of regular expressions applied to knowledge articles. Items that don't
|
|
* match the inclusion pattern are not indexed. The regex is applied to the field
|
|
* specified in the <code>PatternTargetField</code> </p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& AddExcludeAttachmentFilePatterns(const char* value) { m_excludeAttachmentFilePatternsHasBeenSet = true; m_excludeAttachmentFilePatterns.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document
|
|
* contents field in the Amazon Kendra index.</p>
|
|
*/
|
|
inline const Aws::String& GetDocumentDataFieldName() const{ return m_documentDataFieldName; }
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document
|
|
* contents field in the Amazon Kendra index.</p>
|
|
*/
|
|
inline bool DocumentDataFieldNameHasBeenSet() const { return m_documentDataFieldNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document
|
|
* contents field in the Amazon Kendra index.</p>
|
|
*/
|
|
inline void SetDocumentDataFieldName(const Aws::String& value) { m_documentDataFieldNameHasBeenSet = true; m_documentDataFieldName = value; }
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document
|
|
* contents field in the Amazon Kendra index.</p>
|
|
*/
|
|
inline void SetDocumentDataFieldName(Aws::String&& value) { m_documentDataFieldNameHasBeenSet = true; m_documentDataFieldName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document
|
|
* contents field in the Amazon Kendra index.</p>
|
|
*/
|
|
inline void SetDocumentDataFieldName(const char* value) { m_documentDataFieldNameHasBeenSet = true; m_documentDataFieldName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document
|
|
* contents field in the Amazon Kendra index.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithDocumentDataFieldName(const Aws::String& value) { SetDocumentDataFieldName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document
|
|
* contents field in the Amazon Kendra index.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithDocumentDataFieldName(Aws::String&& value) { SetDocumentDataFieldName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document
|
|
* contents field in the Amazon Kendra index.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithDocumentDataFieldName(const char* value) { SetDocumentDataFieldName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document title
|
|
* field.</p>
|
|
*/
|
|
inline const Aws::String& GetDocumentTitleFieldName() const{ return m_documentTitleFieldName; }
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document title
|
|
* field.</p>
|
|
*/
|
|
inline bool DocumentTitleFieldNameHasBeenSet() const { return m_documentTitleFieldNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document title
|
|
* field.</p>
|
|
*/
|
|
inline void SetDocumentTitleFieldName(const Aws::String& value) { m_documentTitleFieldNameHasBeenSet = true; m_documentTitleFieldName = value; }
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document title
|
|
* field.</p>
|
|
*/
|
|
inline void SetDocumentTitleFieldName(Aws::String&& value) { m_documentTitleFieldNameHasBeenSet = true; m_documentTitleFieldName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document title
|
|
* field.</p>
|
|
*/
|
|
inline void SetDocumentTitleFieldName(const char* value) { m_documentTitleFieldNameHasBeenSet = true; m_documentTitleFieldName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document title
|
|
* field.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithDocumentTitleFieldName(const Aws::String& value) { SetDocumentTitleFieldName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document title
|
|
* field.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithDocumentTitleFieldName(Aws::String&& value) { SetDocumentTitleFieldName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the ServiceNow field that is mapped to the index document title
|
|
* field.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithDocumentTitleFieldName(const char* value) { SetDocumentTitleFieldName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Mapping between ServiceNow fields and Amazon Kendra index fields. You must
|
|
* create the index field before you map the field.</p>
|
|
*/
|
|
inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetFieldMappings() const{ return m_fieldMappings; }
|
|
|
|
/**
|
|
* <p>Mapping between ServiceNow fields and Amazon Kendra index fields. You must
|
|
* create the index field before you map the field.</p>
|
|
*/
|
|
inline bool FieldMappingsHasBeenSet() const { return m_fieldMappingsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Mapping between ServiceNow fields and Amazon Kendra index fields. You must
|
|
* create the index field before you map the field.</p>
|
|
*/
|
|
inline void SetFieldMappings(const Aws::Vector<DataSourceToIndexFieldMapping>& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings = value; }
|
|
|
|
/**
|
|
* <p>Mapping between ServiceNow fields and Amazon Kendra index fields. You must
|
|
* create the index field before you map the field.</p>
|
|
*/
|
|
inline void SetFieldMappings(Aws::Vector<DataSourceToIndexFieldMapping>&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings = std::move(value); }
|
|
|
|
/**
|
|
* <p>Mapping between ServiceNow fields and Amazon Kendra index fields. You must
|
|
* create the index field before you map the field.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithFieldMappings(const Aws::Vector<DataSourceToIndexFieldMapping>& value) { SetFieldMappings(value); return *this;}
|
|
|
|
/**
|
|
* <p>Mapping between ServiceNow fields and Amazon Kendra index fields. You must
|
|
* create the index field before you map the field.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& WithFieldMappings(Aws::Vector<DataSourceToIndexFieldMapping>&& value) { SetFieldMappings(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Mapping between ServiceNow fields and Amazon Kendra index fields. You must
|
|
* create the index field before you map the field.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& AddFieldMappings(const DataSourceToIndexFieldMapping& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Mapping between ServiceNow fields and Amazon Kendra index fields. You must
|
|
* create the index field before you map the field.</p>
|
|
*/
|
|
inline ServiceNowKnowledgeArticleConfiguration& AddFieldMappings(DataSourceToIndexFieldMapping&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
bool m_crawlAttachments;
|
|
bool m_crawlAttachmentsHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_includeAttachmentFilePatterns;
|
|
bool m_includeAttachmentFilePatternsHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_excludeAttachmentFilePatterns;
|
|
bool m_excludeAttachmentFilePatternsHasBeenSet;
|
|
|
|
Aws::String m_documentDataFieldName;
|
|
bool m_documentDataFieldNameHasBeenSet;
|
|
|
|
Aws::String m_documentTitleFieldName;
|
|
bool m_documentTitleFieldNameHasBeenSet;
|
|
|
|
Aws::Vector<DataSourceToIndexFieldMapping> m_fieldMappings;
|
|
bool m_fieldMappingsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace kendra
|
|
} // namespace Aws
|