@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceNowKnowledgeArticleConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Provides configuration information for crawling knowledge articles in the ServiceNow site.
Constructor and Description |
---|
ServiceNowKnowledgeArticleConfiguration() |
Modifier and Type | Method and Description |
---|---|
ServiceNowKnowledgeArticleConfiguration |
clone() |
boolean |
equals(Object obj) |
Boolean |
getCrawlAttachments()
Indicates whether Amazon Kendra should index attachments to knowledge articles.
|
String |
getDocumentDataFieldName()
The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.
|
String |
getDocumentTitleFieldName()
The name of the ServiceNow field that is mapped to the index document title field.
|
List<String> |
getExcludeAttachmentFilePatterns()
List of regular expressions applied to knowledge articles.
|
List<DataSourceToIndexFieldMapping> |
getFieldMappings()
Mapping between ServiceNow fields and Amazon Kendra index fields.
|
String |
getFilterQuery()
A query that selects the knowledge articles to index.
|
List<String> |
getIncludeAttachmentFilePatterns()
List of regular expressions applied to knowledge articles.
|
int |
hashCode() |
Boolean |
isCrawlAttachments()
Indicates whether Amazon Kendra should index attachments to knowledge articles.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCrawlAttachments(Boolean crawlAttachments)
Indicates whether Amazon Kendra should index attachments to knowledge articles.
|
void |
setDocumentDataFieldName(String documentDataFieldName)
The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.
|
void |
setDocumentTitleFieldName(String documentTitleFieldName)
The name of the ServiceNow field that is mapped to the index document title field.
|
void |
setExcludeAttachmentFilePatterns(Collection<String> excludeAttachmentFilePatterns)
List of regular expressions applied to knowledge articles.
|
void |
setFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
Mapping between ServiceNow fields and Amazon Kendra index fields.
|
void |
setFilterQuery(String filterQuery)
A query that selects the knowledge articles to index.
|
void |
setIncludeAttachmentFilePatterns(Collection<String> includeAttachmentFilePatterns)
List of regular expressions applied to knowledge articles.
|
String |
toString()
Returns a string representation of this object.
|
ServiceNowKnowledgeArticleConfiguration |
withCrawlAttachments(Boolean crawlAttachments)
Indicates whether Amazon Kendra should index attachments to knowledge articles.
|
ServiceNowKnowledgeArticleConfiguration |
withDocumentDataFieldName(String documentDataFieldName)
The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.
|
ServiceNowKnowledgeArticleConfiguration |
withDocumentTitleFieldName(String documentTitleFieldName)
The name of the ServiceNow field that is mapped to the index document title field.
|
ServiceNowKnowledgeArticleConfiguration |
withExcludeAttachmentFilePatterns(Collection<String> excludeAttachmentFilePatterns)
List of regular expressions applied to knowledge articles.
|
ServiceNowKnowledgeArticleConfiguration |
withExcludeAttachmentFilePatterns(String... excludeAttachmentFilePatterns)
List of regular expressions applied to knowledge articles.
|
ServiceNowKnowledgeArticleConfiguration |
withFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
Mapping between ServiceNow fields and Amazon Kendra index fields.
|
ServiceNowKnowledgeArticleConfiguration |
withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings)
Mapping between ServiceNow fields and Amazon Kendra index fields.
|
ServiceNowKnowledgeArticleConfiguration |
withFilterQuery(String filterQuery)
A query that selects the knowledge articles to index.
|
ServiceNowKnowledgeArticleConfiguration |
withIncludeAttachmentFilePatterns(Collection<String> includeAttachmentFilePatterns)
List of regular expressions applied to knowledge articles.
|
ServiceNowKnowledgeArticleConfiguration |
withIncludeAttachmentFilePatterns(String... includeAttachmentFilePatterns)
List of regular expressions applied to knowledge articles.
|
public ServiceNowKnowledgeArticleConfiguration()
public void setCrawlAttachments(Boolean crawlAttachments)
Indicates whether Amazon Kendra should index attachments to knowledge articles.
crawlAttachments
- Indicates whether Amazon Kendra should index attachments to knowledge articles.public Boolean getCrawlAttachments()
Indicates whether Amazon Kendra should index attachments to knowledge articles.
public ServiceNowKnowledgeArticleConfiguration withCrawlAttachments(Boolean crawlAttachments)
Indicates whether Amazon Kendra should index attachments to knowledge articles.
crawlAttachments
- Indicates whether Amazon Kendra should index attachments to knowledge articles.public Boolean isCrawlAttachments()
Indicates whether Amazon Kendra should index attachments to knowledge articles.
public List<String> getIncludeAttachmentFilePatterns()
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 PatternTargetField
.
PatternTargetField
.public void setIncludeAttachmentFilePatterns(Collection<String> includeAttachmentFilePatterns)
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 PatternTargetField
.
includeAttachmentFilePatterns
- 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 PatternTargetField
.public ServiceNowKnowledgeArticleConfiguration withIncludeAttachmentFilePatterns(String... includeAttachmentFilePatterns)
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 PatternTargetField
.
NOTE: This method appends the values to the existing list (if any). Use
setIncludeAttachmentFilePatterns(java.util.Collection)
or
withIncludeAttachmentFilePatterns(java.util.Collection)
if you want to override the existing values.
includeAttachmentFilePatterns
- 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 PatternTargetField
.public ServiceNowKnowledgeArticleConfiguration withIncludeAttachmentFilePatterns(Collection<String> includeAttachmentFilePatterns)
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 PatternTargetField
.
includeAttachmentFilePatterns
- 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 PatternTargetField
.public List<String> getExcludeAttachmentFilePatterns()
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 PatternTargetField
PatternTargetField
public void setExcludeAttachmentFilePatterns(Collection<String> excludeAttachmentFilePatterns)
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 PatternTargetField
excludeAttachmentFilePatterns
- 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 PatternTargetField
public ServiceNowKnowledgeArticleConfiguration withExcludeAttachmentFilePatterns(String... excludeAttachmentFilePatterns)
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 PatternTargetField
NOTE: This method appends the values to the existing list (if any). Use
setExcludeAttachmentFilePatterns(java.util.Collection)
or
withExcludeAttachmentFilePatterns(java.util.Collection)
if you want to override the existing values.
excludeAttachmentFilePatterns
- 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 PatternTargetField
public ServiceNowKnowledgeArticleConfiguration withExcludeAttachmentFilePatterns(Collection<String> excludeAttachmentFilePatterns)
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 PatternTargetField
excludeAttachmentFilePatterns
- 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 PatternTargetField
public void setDocumentDataFieldName(String documentDataFieldName)
The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.
documentDataFieldName
- The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra
index.public String getDocumentDataFieldName()
The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.
public ServiceNowKnowledgeArticleConfiguration withDocumentDataFieldName(String documentDataFieldName)
The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.
documentDataFieldName
- The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra
index.public void setDocumentTitleFieldName(String documentTitleFieldName)
The name of the ServiceNow field that is mapped to the index document title field.
documentTitleFieldName
- The name of the ServiceNow field that is mapped to the index document title field.public String getDocumentTitleFieldName()
The name of the ServiceNow field that is mapped to the index document title field.
public ServiceNowKnowledgeArticleConfiguration withDocumentTitleFieldName(String documentTitleFieldName)
The name of the ServiceNow field that is mapped to the index document title field.
documentTitleFieldName
- The name of the ServiceNow field that is mapped to the index document title field.public List<DataSourceToIndexFieldMapping> getFieldMappings()
Mapping between ServiceNow fields and Amazon Kendra index fields. You must create the index field before you map the field.
public void setFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
Mapping between ServiceNow fields and Amazon Kendra index fields. You must create the index field before you map the field.
fieldMappings
- Mapping between ServiceNow fields and Amazon Kendra index fields. You must create the index field before
you map the field.public ServiceNowKnowledgeArticleConfiguration withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings)
Mapping between ServiceNow fields and Amazon Kendra index fields. You must create the index field before you map the field.
NOTE: This method appends the values to the existing list (if any). Use
setFieldMappings(java.util.Collection)
or withFieldMappings(java.util.Collection)
if you want
to override the existing values.
fieldMappings
- Mapping between ServiceNow fields and Amazon Kendra index fields. You must create the index field before
you map the field.public ServiceNowKnowledgeArticleConfiguration withFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
Mapping between ServiceNow fields and Amazon Kendra index fields. You must create the index field before you map the field.
fieldMappings
- Mapping between ServiceNow fields and Amazon Kendra index fields. You must create the index field before
you map the field.public void setFilterQuery(String filterQuery)
A query that selects the knowledge articles to index. The query can return articles from multiple knowledge bases, and the knowledge bases can be public or private.
The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.
filterQuery
- A query that selects the knowledge articles to index. The query can return articles from multiple
knowledge bases, and the knowledge bases can be public or private.
The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.
public String getFilterQuery()
A query that selects the knowledge articles to index. The query can return articles from multiple knowledge bases, and the knowledge bases can be public or private.
The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.
The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.
public ServiceNowKnowledgeArticleConfiguration withFilterQuery(String filterQuery)
A query that selects the knowledge articles to index. The query can return articles from multiple knowledge bases, and the knowledge bases can be public or private.
The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.
filterQuery
- A query that selects the knowledge articles to index. The query can return articles from multiple
knowledge bases, and the knowledge bases can be public or private.
The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.
public String toString()
toString
in class Object
Object.toString()
public ServiceNowKnowledgeArticleConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.