AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ConfluenceAttachmentConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9#include <aws/kendra/model/ConfluenceAttachmentToIndexFieldMapping.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace kendra {
21namespace Model {
22
31 public:
32 AWS_KENDRA_API ConfluenceAttachmentConfiguration() = 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
65 return m_attachmentFieldMappings;
66 }
67 inline bool AttachmentFieldMappingsHasBeenSet() const { return m_attachmentFieldMappingsHasBeenSet; }
68 template <typename AttachmentFieldMappingsT = Aws::Vector<ConfluenceAttachmentToIndexFieldMapping>>
69 void SetAttachmentFieldMappings(AttachmentFieldMappingsT&& value) {
70 m_attachmentFieldMappingsHasBeenSet = true;
71 m_attachmentFieldMappings = std::forward<AttachmentFieldMappingsT>(value);
72 }
73 template <typename AttachmentFieldMappingsT = Aws::Vector<ConfluenceAttachmentToIndexFieldMapping>>
75 SetAttachmentFieldMappings(std::forward<AttachmentFieldMappingsT>(value));
76 return *this;
77 }
78 template <typename AttachmentFieldMappingsT = ConfluenceAttachmentToIndexFieldMapping>
80 m_attachmentFieldMappingsHasBeenSet = true;
81 m_attachmentFieldMappings.emplace_back(std::forward<AttachmentFieldMappingsT>(value));
82 return *this;
83 }
85 private:
86 bool m_crawlAttachments{false};
87
89 bool m_crawlAttachmentsHasBeenSet = false;
90 bool m_attachmentFieldMappingsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace kendra
95} // 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