7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/Kendra_EXPORTS.h>
11#include <aws/kendra/model/ContentType.h>
12#include <aws/kendra/model/DocumentAttribute.h>
13#include <aws/kendra/model/HierarchicalPrincipal.h>
14#include <aws/kendra/model/Principal.h>
15#include <aws/kendra/model/S3Path.h>
52 template <
typename IdT = Aws::String>
54 m_idHasBeenSet =
true;
55 m_id = std::forward<IdT>(value);
57 template <
typename IdT = Aws::String>
59 SetId(std::forward<IdT>(value));
70 template <
typename TitleT = Aws::String>
72 m_titleHasBeenSet =
true;
73 m_title = std::forward<TitleT>(value);
75 template <
typename TitleT = Aws::String>
77 SetTitle(std::forward<TitleT>(value));
92 template <
typename BlobT = Aws::Utils::ByteBuffer>
94 m_blobHasBeenSet =
true;
95 m_blob = std::forward<BlobT>(value);
97 template <
typename BlobT = Aws::Utils::ByteBuffer>
99 SetBlob(std::forward<BlobT>(value));
108 template <
typename S3PathT = S3Path>
110 m_s3PathHasBeenSet =
true;
111 m_s3Path = std::forward<S3PathT>(value);
113 template <
typename S3PathT = S3Path>
132 template <
typename AttributesT = Aws::Vector<DocumentAttribute>>
134 m_attributesHasBeenSet =
true;
135 m_attributes = std::forward<AttributesT>(value);
137 template <
typename AttributesT = Aws::Vector<DocumentAttribute>>
142 template <
typename AttributesT = DocumentAttribute>
144 m_attributesHasBeenSet =
true;
145 m_attributes.emplace_back(std::forward<AttributesT>(value));
158 template <
typename AccessControlListT = Aws::Vector<Principal>>
160 m_accessControlListHasBeenSet =
true;
161 m_accessControlList = std::forward<AccessControlListT>(value);
163 template <
typename AccessControlListT = Aws::Vector<Principal>>
168 template <
typename AccessControlListT = Principal>
170 m_accessControlListHasBeenSet =
true;
171 m_accessControlList.emplace_back(std::forward<AccessControlListT>(value));
185 template <
typename HierarchicalAccessControlListT = Aws::Vector<HierarchicalPrincipal>>
187 m_hierarchicalAccessControlListHasBeenSet =
true;
188 m_hierarchicalAccessControlList = std::forward<HierarchicalAccessControlListT>(value);
190 template <
typename HierarchicalAccessControlListT = Aws::Vector<HierarchicalPrincipal>>
195 template <
typename HierarchicalAccessControlListT = HierarchicalPrincipal>
197 m_hierarchicalAccessControlListHasBeenSet =
true;
198 m_hierarchicalAccessControlList.emplace_back(std::forward<HierarchicalAccessControlListT>(value));
213 m_contentTypeHasBeenSet =
true;
214 m_contentType = value;
229 template <
typename AccessControlConfigurationIdT = Aws::String>
231 m_accessControlConfigurationIdHasBeenSet =
true;
232 m_accessControlConfigurationId = std::forward<AccessControlConfigurationIdT>(value);
234 template <
typename AccessControlConfigurationIdT = Aws::String>
258 bool m_idHasBeenSet =
false;
259 bool m_titleHasBeenSet =
false;
260 bool m_blobHasBeenSet =
false;
261 bool m_s3PathHasBeenSet =
false;
262 bool m_attributesHasBeenSet =
false;
263 bool m_accessControlListHasBeenSet =
false;
264 bool m_hierarchicalAccessControlListHasBeenSet =
false;
265 bool m_contentTypeHasBeenSet =
false;
266 bool m_accessControlConfigurationIdHasBeenSet =
false;
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
bool TitleHasBeenSet() const
Document & WithId(IdT &&value)
bool BlobHasBeenSet() const
Document & WithAttributes(AttributesT &&value)
void SetAccessControlList(AccessControlListT &&value)
Document & AddAccessControlList(AccessControlListT &&value)
void SetAttributes(AttributesT &&value)
Document & WithBlob(BlobT &&value)
bool S3PathHasBeenSet() const
Document & WithS3Path(S3PathT &&value)
Document & AddHierarchicalAccessControlList(HierarchicalAccessControlListT &&value)
Document & WithContentType(ContentType value)
const Aws::String & GetTitle() const
const Aws::String & GetAccessControlConfigurationId() const
ContentType GetContentType() const
bool AccessControlConfigurationIdHasBeenSet() const
const Aws::Vector< DocumentAttribute > & GetAttributes() const
void SetBlob(BlobT &&value)
bool IdHasBeenSet() const
Document & WithAccessControlConfigurationId(AccessControlConfigurationIdT &&value)
bool ContentTypeHasBeenSet() const
bool HierarchicalAccessControlListHasBeenSet() const
void SetHierarchicalAccessControlList(HierarchicalAccessControlListT &&value)
bool AttributesHasBeenSet() const
void SetAccessControlConfigurationId(AccessControlConfigurationIdT &&value)
Document & WithAccessControlList(AccessControlListT &&value)
Document & AddAttributes(AttributesT &&value)
void SetS3Path(S3PathT &&value)
const Aws::Vector< Principal > & GetAccessControlList() const
const Aws::String & GetId() const
Document & WithHierarchicalAccessControlList(HierarchicalAccessControlListT &&value)
AWS_KENDRA_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Document(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< HierarchicalPrincipal > & GetHierarchicalAccessControlList() const
Document & WithTitle(TitleT &&value)
AWS_KENDRA_API Document()=default
const Aws::Utils::ByteBuffer & GetBlob() const
void SetTitle(TitleT &&value)
bool AccessControlListHasBeenSet() const
void SetContentType(ContentType value)
const S3Path & GetS3Path() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue