AWS SDK for C++

AWS SDK for C++ Version 1.11.691

Loading...
Searching...
No Matches
ConfluenceSpaceConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/ConfluenceSpaceToIndexFieldMapping.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace kendra {
22namespace Model {
23
31 public:
32 AWS_KENDRA_API ConfluenceSpaceConfiguration() = default;
35 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
46 inline bool GetCrawlPersonalSpaces() const { return m_crawlPersonalSpaces; }
47 inline bool CrawlPersonalSpacesHasBeenSet() const { return m_crawlPersonalSpacesHasBeenSet; }
48 inline void SetCrawlPersonalSpaces(bool value) {
49 m_crawlPersonalSpacesHasBeenSet = true;
50 m_crawlPersonalSpaces = value;
51 }
54 return *this;
55 }
57
59
62 inline bool GetCrawlArchivedSpaces() const { return m_crawlArchivedSpaces; }
63 inline bool CrawlArchivedSpacesHasBeenSet() const { return m_crawlArchivedSpacesHasBeenSet; }
64 inline void SetCrawlArchivedSpaces(bool value) {
65 m_crawlArchivedSpacesHasBeenSet = true;
66 m_crawlArchivedSpaces = value;
67 }
70 return *this;
71 }
73
75
83 inline const Aws::Vector<Aws::String>& GetIncludeSpaces() const { return m_includeSpaces; }
84 inline bool IncludeSpacesHasBeenSet() const { return m_includeSpacesHasBeenSet; }
85 template <typename IncludeSpacesT = Aws::Vector<Aws::String>>
86 void SetIncludeSpaces(IncludeSpacesT&& value) {
87 m_includeSpacesHasBeenSet = true;
88 m_includeSpaces = std::forward<IncludeSpacesT>(value);
89 }
90 template <typename IncludeSpacesT = Aws::Vector<Aws::String>>
92 SetIncludeSpaces(std::forward<IncludeSpacesT>(value));
93 return *this;
94 }
95 template <typename IncludeSpacesT = Aws::String>
97 m_includeSpacesHasBeenSet = true;
98 m_includeSpaces.emplace_back(std::forward<IncludeSpacesT>(value));
99 return *this;
100 }
102
104
110 inline const Aws::Vector<Aws::String>& GetExcludeSpaces() const { return m_excludeSpaces; }
111 inline bool ExcludeSpacesHasBeenSet() const { return m_excludeSpacesHasBeenSet; }
112 template <typename ExcludeSpacesT = Aws::Vector<Aws::String>>
113 void SetExcludeSpaces(ExcludeSpacesT&& value) {
114 m_excludeSpacesHasBeenSet = true;
115 m_excludeSpaces = std::forward<ExcludeSpacesT>(value);
116 }
117 template <typename ExcludeSpacesT = Aws::Vector<Aws::String>>
119 SetExcludeSpaces(std::forward<ExcludeSpacesT>(value));
120 return *this;
121 }
122 template <typename ExcludeSpacesT = Aws::String>
124 m_excludeSpacesHasBeenSet = true;
125 m_excludeSpaces.emplace_back(std::forward<ExcludeSpacesT>(value));
126 return *this;
127 }
129
131
141 inline const Aws::Vector<ConfluenceSpaceToIndexFieldMapping>& GetSpaceFieldMappings() const { return m_spaceFieldMappings; }
142 inline bool SpaceFieldMappingsHasBeenSet() const { return m_spaceFieldMappingsHasBeenSet; }
143 template <typename SpaceFieldMappingsT = Aws::Vector<ConfluenceSpaceToIndexFieldMapping>>
144 void SetSpaceFieldMappings(SpaceFieldMappingsT&& value) {
145 m_spaceFieldMappingsHasBeenSet = true;
146 m_spaceFieldMappings = std::forward<SpaceFieldMappingsT>(value);
147 }
148 template <typename SpaceFieldMappingsT = Aws::Vector<ConfluenceSpaceToIndexFieldMapping>>
150 SetSpaceFieldMappings(std::forward<SpaceFieldMappingsT>(value));
151 return *this;
152 }
153 template <typename SpaceFieldMappingsT = ConfluenceSpaceToIndexFieldMapping>
155 m_spaceFieldMappingsHasBeenSet = true;
156 m_spaceFieldMappings.emplace_back(std::forward<SpaceFieldMappingsT>(value));
157 return *this;
158 }
160 private:
161 bool m_crawlPersonalSpaces{false};
162 bool m_crawlPersonalSpacesHasBeenSet = false;
163
164 bool m_crawlArchivedSpaces{false};
165 bool m_crawlArchivedSpacesHasBeenSet = false;
166
167 Aws::Vector<Aws::String> m_includeSpaces;
168 bool m_includeSpacesHasBeenSet = false;
169
170 Aws::Vector<Aws::String> m_excludeSpaces;
171 bool m_excludeSpacesHasBeenSet = false;
172
174 bool m_spaceFieldMappingsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace kendra
179} // namespace Aws
ConfluenceSpaceConfiguration & WithCrawlPersonalSpaces(bool value)
const Aws::Vector< ConfluenceSpaceToIndexFieldMapping > & GetSpaceFieldMappings() const
const Aws::Vector< Aws::String > & GetExcludeSpaces() const
ConfluenceSpaceConfiguration & AddExcludeSpaces(ExcludeSpacesT &&value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KENDRA_API ConfluenceSpaceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API ConfluenceSpaceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API ConfluenceSpaceConfiguration()=default
ConfluenceSpaceConfiguration & WithSpaceFieldMappings(SpaceFieldMappingsT &&value)
ConfluenceSpaceConfiguration & AddIncludeSpaces(IncludeSpacesT &&value)
ConfluenceSpaceConfiguration & AddSpaceFieldMappings(SpaceFieldMappingsT &&value)
const Aws::Vector< Aws::String > & GetIncludeSpaces() const
ConfluenceSpaceConfiguration & WithExcludeSpaces(ExcludeSpacesT &&value)
ConfluenceSpaceConfiguration & WithIncludeSpaces(IncludeSpacesT &&value)
ConfluenceSpaceConfiguration & WithCrawlArchivedSpaces(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue