AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
GoogleDriveConfiguration.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/DataSourceToIndexFieldMapping.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 GoogleDriveConfiguration() = default;
35 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
45 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
46 template <typename SecretArnT = Aws::String>
47 void SetSecretArn(SecretArnT&& value) {
48 m_secretArnHasBeenSet = true;
49 m_secretArn = std::forward<SecretArnT>(value);
50 }
51 template <typename SecretArnT = Aws::String>
53 SetSecretArn(std::forward<SecretArnT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::Vector<Aws::String>& GetInclusionPatterns() const { return m_inclusionPatterns; }
68 inline bool InclusionPatternsHasBeenSet() const { return m_inclusionPatternsHasBeenSet; }
69 template <typename InclusionPatternsT = Aws::Vector<Aws::String>>
70 void SetInclusionPatterns(InclusionPatternsT&& value) {
71 m_inclusionPatternsHasBeenSet = true;
72 m_inclusionPatterns = std::forward<InclusionPatternsT>(value);
73 }
74 template <typename InclusionPatternsT = Aws::Vector<Aws::String>>
75 GoogleDriveConfiguration& WithInclusionPatterns(InclusionPatternsT&& value) {
76 SetInclusionPatterns(std::forward<InclusionPatternsT>(value));
77 return *this;
78 }
79 template <typename InclusionPatternsT = Aws::String>
80 GoogleDriveConfiguration& AddInclusionPatterns(InclusionPatternsT&& value) {
81 m_inclusionPatternsHasBeenSet = true;
82 m_inclusionPatterns.emplace_back(std::forward<InclusionPatternsT>(value));
83 return *this;
84 }
86
88
96 inline const Aws::Vector<Aws::String>& GetExclusionPatterns() const { return m_exclusionPatterns; }
97 inline bool ExclusionPatternsHasBeenSet() const { return m_exclusionPatternsHasBeenSet; }
98 template <typename ExclusionPatternsT = Aws::Vector<Aws::String>>
99 void SetExclusionPatterns(ExclusionPatternsT&& value) {
100 m_exclusionPatternsHasBeenSet = true;
101 m_exclusionPatterns = std::forward<ExclusionPatternsT>(value);
102 }
103 template <typename ExclusionPatternsT = Aws::Vector<Aws::String>>
104 GoogleDriveConfiguration& WithExclusionPatterns(ExclusionPatternsT&& value) {
105 SetExclusionPatterns(std::forward<ExclusionPatternsT>(value));
106 return *this;
107 }
108 template <typename ExclusionPatternsT = Aws::String>
109 GoogleDriveConfiguration& AddExclusionPatterns(ExclusionPatternsT&& value) {
110 m_exclusionPatternsHasBeenSet = true;
111 m_exclusionPatterns.emplace_back(std::forward<ExclusionPatternsT>(value));
112 return *this;
113 }
115
117
125 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetFieldMappings() const { return m_fieldMappings; }
126 inline bool FieldMappingsHasBeenSet() const { return m_fieldMappingsHasBeenSet; }
127 template <typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
128 void SetFieldMappings(FieldMappingsT&& value) {
129 m_fieldMappingsHasBeenSet = true;
130 m_fieldMappings = std::forward<FieldMappingsT>(value);
131 }
132 template <typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
134 SetFieldMappings(std::forward<FieldMappingsT>(value));
135 return *this;
136 }
137 template <typename FieldMappingsT = DataSourceToIndexFieldMapping>
139 m_fieldMappingsHasBeenSet = true;
140 m_fieldMappings.emplace_back(std::forward<FieldMappingsT>(value));
141 return *this;
142 }
144
146
152 inline const Aws::Vector<Aws::String>& GetExcludeMimeTypes() const { return m_excludeMimeTypes; }
153 inline bool ExcludeMimeTypesHasBeenSet() const { return m_excludeMimeTypesHasBeenSet; }
154 template <typename ExcludeMimeTypesT = Aws::Vector<Aws::String>>
155 void SetExcludeMimeTypes(ExcludeMimeTypesT&& value) {
156 m_excludeMimeTypesHasBeenSet = true;
157 m_excludeMimeTypes = std::forward<ExcludeMimeTypesT>(value);
158 }
159 template <typename ExcludeMimeTypesT = Aws::Vector<Aws::String>>
160 GoogleDriveConfiguration& WithExcludeMimeTypes(ExcludeMimeTypesT&& value) {
161 SetExcludeMimeTypes(std::forward<ExcludeMimeTypesT>(value));
162 return *this;
163 }
164 template <typename ExcludeMimeTypesT = Aws::String>
165 GoogleDriveConfiguration& AddExcludeMimeTypes(ExcludeMimeTypesT&& value) {
166 m_excludeMimeTypesHasBeenSet = true;
167 m_excludeMimeTypes.emplace_back(std::forward<ExcludeMimeTypesT>(value));
168 return *this;
169 }
171
173
178 inline const Aws::Vector<Aws::String>& GetExcludeUserAccounts() const { return m_excludeUserAccounts; }
179 inline bool ExcludeUserAccountsHasBeenSet() const { return m_excludeUserAccountsHasBeenSet; }
180 template <typename ExcludeUserAccountsT = Aws::Vector<Aws::String>>
181 void SetExcludeUserAccounts(ExcludeUserAccountsT&& value) {
182 m_excludeUserAccountsHasBeenSet = true;
183 m_excludeUserAccounts = std::forward<ExcludeUserAccountsT>(value);
184 }
185 template <typename ExcludeUserAccountsT = Aws::Vector<Aws::String>>
186 GoogleDriveConfiguration& WithExcludeUserAccounts(ExcludeUserAccountsT&& value) {
187 SetExcludeUserAccounts(std::forward<ExcludeUserAccountsT>(value));
188 return *this;
189 }
190 template <typename ExcludeUserAccountsT = Aws::String>
191 GoogleDriveConfiguration& AddExcludeUserAccounts(ExcludeUserAccountsT&& value) {
192 m_excludeUserAccountsHasBeenSet = true;
193 m_excludeUserAccounts.emplace_back(std::forward<ExcludeUserAccountsT>(value));
194 return *this;
195 }
197
199
203 inline const Aws::Vector<Aws::String>& GetExcludeSharedDrives() const { return m_excludeSharedDrives; }
204 inline bool ExcludeSharedDrivesHasBeenSet() const { return m_excludeSharedDrivesHasBeenSet; }
205 template <typename ExcludeSharedDrivesT = Aws::Vector<Aws::String>>
206 void SetExcludeSharedDrives(ExcludeSharedDrivesT&& value) {
207 m_excludeSharedDrivesHasBeenSet = true;
208 m_excludeSharedDrives = std::forward<ExcludeSharedDrivesT>(value);
209 }
210 template <typename ExcludeSharedDrivesT = Aws::Vector<Aws::String>>
211 GoogleDriveConfiguration& WithExcludeSharedDrives(ExcludeSharedDrivesT&& value) {
212 SetExcludeSharedDrives(std::forward<ExcludeSharedDrivesT>(value));
213 return *this;
214 }
215 template <typename ExcludeSharedDrivesT = Aws::String>
216 GoogleDriveConfiguration& AddExcludeSharedDrives(ExcludeSharedDrivesT&& value) {
217 m_excludeSharedDrivesHasBeenSet = true;
218 m_excludeSharedDrives.emplace_back(std::forward<ExcludeSharedDrivesT>(value));
219 return *this;
220 }
222 private:
223 Aws::String m_secretArn;
224
225 Aws::Vector<Aws::String> m_inclusionPatterns;
226
227 Aws::Vector<Aws::String> m_exclusionPatterns;
228
230
231 Aws::Vector<Aws::String> m_excludeMimeTypes;
232
233 Aws::Vector<Aws::String> m_excludeUserAccounts;
234
235 Aws::Vector<Aws::String> m_excludeSharedDrives;
236 bool m_secretArnHasBeenSet = false;
237 bool m_inclusionPatternsHasBeenSet = false;
238 bool m_exclusionPatternsHasBeenSet = false;
239 bool m_fieldMappingsHasBeenSet = false;
240 bool m_excludeMimeTypesHasBeenSet = false;
241 bool m_excludeUserAccountsHasBeenSet = false;
242 bool m_excludeSharedDrivesHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace kendra
247} // namespace Aws
AWS_KENDRA_API GoogleDriveConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
GoogleDriveConfiguration & WithExcludeUserAccounts(ExcludeUserAccountsT &&value)
GoogleDriveConfiguration & AddExcludeSharedDrives(ExcludeSharedDrivesT &&value)
const Aws::Vector< Aws::String > & GetExcludeSharedDrives() const
void SetExclusionPatterns(ExclusionPatternsT &&value)
void SetInclusionPatterns(InclusionPatternsT &&value)
GoogleDriveConfiguration & WithExcludeMimeTypes(ExcludeMimeTypesT &&value)
GoogleDriveConfiguration & AddExcludeUserAccounts(ExcludeUserAccountsT &&value)
const Aws::Vector< Aws::String > & GetInclusionPatterns() const
void SetExcludeUserAccounts(ExcludeUserAccountsT &&value)
AWS_KENDRA_API GoogleDriveConfiguration()=default
GoogleDriveConfiguration & WithSecretArn(SecretArnT &&value)
void SetExcludeSharedDrives(ExcludeSharedDrivesT &&value)
const Aws::Vector< Aws::String > & GetExcludeMimeTypes() const
GoogleDriveConfiguration & AddExclusionPatterns(ExclusionPatternsT &&value)
GoogleDriveConfiguration & WithExclusionPatterns(ExclusionPatternsT &&value)
const Aws::Vector< DataSourceToIndexFieldMapping > & GetFieldMappings() const
GoogleDriveConfiguration & AddFieldMappings(FieldMappingsT &&value)
GoogleDriveConfiguration & AddInclusionPatterns(InclusionPatternsT &&value)
GoogleDriveConfiguration & WithFieldMappings(FieldMappingsT &&value)
const Aws::Vector< Aws::String > & GetExcludeUserAccounts() const
const Aws::Vector< Aws::String > & GetExclusionPatterns() const
GoogleDriveConfiguration & AddExcludeMimeTypes(ExcludeMimeTypesT &&value)
GoogleDriveConfiguration & WithInclusionPatterns(InclusionPatternsT &&value)
GoogleDriveConfiguration & WithExcludeSharedDrives(ExcludeSharedDrivesT &&value)
AWS_KENDRA_API GoogleDriveConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue