AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ConfluenceAttachmentConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/model/ConfluenceAttachmentToIndexFieldMapping.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace kendra
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_KENDRA_API ConfluenceAttachmentConfiguration() = 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
64 inline const Aws::Vector<ConfluenceAttachmentToIndexFieldMapping>& GetAttachmentFieldMappings() const { return m_attachmentFieldMappings; }
65 inline bool AttachmentFieldMappingsHasBeenSet() const { return m_attachmentFieldMappingsHasBeenSet; }
66 template<typename AttachmentFieldMappingsT = Aws::Vector<ConfluenceAttachmentToIndexFieldMapping>>
67 void SetAttachmentFieldMappings(AttachmentFieldMappingsT&& value) { m_attachmentFieldMappingsHasBeenSet = true; m_attachmentFieldMappings = std::forward<AttachmentFieldMappingsT>(value); }
68 template<typename AttachmentFieldMappingsT = Aws::Vector<ConfluenceAttachmentToIndexFieldMapping>>
69 ConfluenceAttachmentConfiguration& WithAttachmentFieldMappings(AttachmentFieldMappingsT&& value) { SetAttachmentFieldMappings(std::forward<AttachmentFieldMappingsT>(value)); return *this;}
70 template<typename AttachmentFieldMappingsT = ConfluenceAttachmentToIndexFieldMapping>
71 ConfluenceAttachmentConfiguration& AddAttachmentFieldMappings(AttachmentFieldMappingsT&& value) { m_attachmentFieldMappingsHasBeenSet = true; m_attachmentFieldMappings.emplace_back(std::forward<AttachmentFieldMappingsT>(value)); return *this; }
73 private:
74
75 bool m_crawlAttachments{false};
76 bool m_crawlAttachmentsHasBeenSet = false;
77
79 bool m_attachmentFieldMappingsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace kendra
84} // namespace Aws
AWS_KENDRA_API ConfluenceAttachmentConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API ConfluenceAttachmentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfluenceAttachmentConfiguration & WithAttachmentFieldMappings(AttachmentFieldMappingsT &&value)
ConfluenceAttachmentConfiguration & AddAttachmentFieldMappings(AttachmentFieldMappingsT &&value)
ConfluenceAttachmentConfiguration & WithCrawlAttachments(bool value)
const Aws::Vector< ConfluenceAttachmentToIndexFieldMapping > & GetAttachmentFieldMappings() const
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue