AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ConfluenceSpaceConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kendra/model/ConfluenceSpaceToIndexFieldMapping.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace kendra
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_KENDRA_API ConfluenceSpaceConfiguration() = default;
40 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
52 inline bool GetCrawlPersonalSpaces() const { return m_crawlPersonalSpaces; }
53 inline bool CrawlPersonalSpacesHasBeenSet() const { return m_crawlPersonalSpacesHasBeenSet; }
54 inline void SetCrawlPersonalSpaces(bool value) { m_crawlPersonalSpacesHasBeenSet = true; m_crawlPersonalSpaces = value; }
57
59
62 inline bool GetCrawlArchivedSpaces() const { return m_crawlArchivedSpaces; }
63 inline bool CrawlArchivedSpacesHasBeenSet() const { return m_crawlArchivedSpacesHasBeenSet; }
64 inline void SetCrawlArchivedSpaces(bool value) { m_crawlArchivedSpacesHasBeenSet = true; m_crawlArchivedSpaces = value; }
67
69
77 inline const Aws::Vector<Aws::String>& GetIncludeSpaces() const { return m_includeSpaces; }
78 inline bool IncludeSpacesHasBeenSet() const { return m_includeSpacesHasBeenSet; }
79 template<typename IncludeSpacesT = Aws::Vector<Aws::String>>
80 void SetIncludeSpaces(IncludeSpacesT&& value) { m_includeSpacesHasBeenSet = true; m_includeSpaces = std::forward<IncludeSpacesT>(value); }
81 template<typename IncludeSpacesT = Aws::Vector<Aws::String>>
82 ConfluenceSpaceConfiguration& WithIncludeSpaces(IncludeSpacesT&& value) { SetIncludeSpaces(std::forward<IncludeSpacesT>(value)); return *this;}
83 template<typename IncludeSpacesT = Aws::String>
84 ConfluenceSpaceConfiguration& AddIncludeSpaces(IncludeSpacesT&& value) { m_includeSpacesHasBeenSet = true; m_includeSpaces.emplace_back(std::forward<IncludeSpacesT>(value)); return *this; }
86
88
94 inline const Aws::Vector<Aws::String>& GetExcludeSpaces() const { return m_excludeSpaces; }
95 inline bool ExcludeSpacesHasBeenSet() const { return m_excludeSpacesHasBeenSet; }
96 template<typename ExcludeSpacesT = Aws::Vector<Aws::String>>
97 void SetExcludeSpaces(ExcludeSpacesT&& value) { m_excludeSpacesHasBeenSet = true; m_excludeSpaces = std::forward<ExcludeSpacesT>(value); }
98 template<typename ExcludeSpacesT = Aws::Vector<Aws::String>>
99 ConfluenceSpaceConfiguration& WithExcludeSpaces(ExcludeSpacesT&& value) { SetExcludeSpaces(std::forward<ExcludeSpacesT>(value)); return *this;}
100 template<typename ExcludeSpacesT = Aws::String>
101 ConfluenceSpaceConfiguration& AddExcludeSpaces(ExcludeSpacesT&& value) { m_excludeSpacesHasBeenSet = true; m_excludeSpaces.emplace_back(std::forward<ExcludeSpacesT>(value)); return *this; }
103
105
115 inline const Aws::Vector<ConfluenceSpaceToIndexFieldMapping>& GetSpaceFieldMappings() const { return m_spaceFieldMappings; }
116 inline bool SpaceFieldMappingsHasBeenSet() const { return m_spaceFieldMappingsHasBeenSet; }
117 template<typename SpaceFieldMappingsT = Aws::Vector<ConfluenceSpaceToIndexFieldMapping>>
118 void SetSpaceFieldMappings(SpaceFieldMappingsT&& value) { m_spaceFieldMappingsHasBeenSet = true; m_spaceFieldMappings = std::forward<SpaceFieldMappingsT>(value); }
119 template<typename SpaceFieldMappingsT = Aws::Vector<ConfluenceSpaceToIndexFieldMapping>>
120 ConfluenceSpaceConfiguration& WithSpaceFieldMappings(SpaceFieldMappingsT&& value) { SetSpaceFieldMappings(std::forward<SpaceFieldMappingsT>(value)); return *this;}
121 template<typename SpaceFieldMappingsT = ConfluenceSpaceToIndexFieldMapping>
122 ConfluenceSpaceConfiguration& AddSpaceFieldMappings(SpaceFieldMappingsT&& value) { m_spaceFieldMappingsHasBeenSet = true; m_spaceFieldMappings.emplace_back(std::forward<SpaceFieldMappingsT>(value)); return *this; }
124 private:
125
126 bool m_crawlPersonalSpaces{false};
127 bool m_crawlPersonalSpacesHasBeenSet = false;
128
129 bool m_crawlArchivedSpaces{false};
130 bool m_crawlArchivedSpacesHasBeenSet = false;
131
132 Aws::Vector<Aws::String> m_includeSpaces;
133 bool m_includeSpacesHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_excludeSpaces;
136 bool m_excludeSpacesHasBeenSet = false;
137
139 bool m_spaceFieldMappingsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace kendra
144} // 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