AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Document.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/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/AccessConfiguration.h>
11#include <aws/qbusiness/model/ContentType.h>
12#include <aws/qbusiness/model/DocumentAttribute.h>
13#include <aws/qbusiness/model/DocumentContent.h>
14#include <aws/qbusiness/model/DocumentEnrichmentConfiguration.h>
15#include <aws/qbusiness/model/MediaExtractionConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QBusiness {
27namespace Model {
28
34class Document {
35 public:
36 AWS_QBUSINESS_API Document() = default;
39 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
53 Document& WithId(IdT&& value) {
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Vector<DocumentAttribute>& GetAttributes() const { return m_attributes; }
65 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
66 template <typename AttributesT = Aws::Vector<DocumentAttribute>>
67 void SetAttributes(AttributesT&& value) {
68 m_attributesHasBeenSet = true;
69 m_attributes = std::forward<AttributesT>(value);
70 }
71 template <typename AttributesT = Aws::Vector<DocumentAttribute>>
73 SetAttributes(std::forward<AttributesT>(value));
74 return *this;
75 }
76 template <typename AttributesT = DocumentAttribute>
78 m_attributesHasBeenSet = true;
79 m_attributes.emplace_back(std::forward<AttributesT>(value));
80 return *this;
81 }
83
85
88 inline const DocumentContent& GetContent() const { return m_content; }
89 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
90 template <typename ContentT = DocumentContent>
91 void SetContent(ContentT&& value) {
92 m_contentHasBeenSet = true;
93 m_content = std::forward<ContentT>(value);
94 }
95 template <typename ContentT = DocumentContent>
97 SetContent(std::forward<ContentT>(value));
98 return *this;
99 }
101
103
109 inline ContentType GetContentType() const { return m_contentType; }
110 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
111 inline void SetContentType(ContentType value) {
112 m_contentTypeHasBeenSet = true;
113 m_contentType = value;
114 }
116 SetContentType(value);
117 return *this;
118 }
120
122
125 inline const Aws::String& GetTitle() const { return m_title; }
126 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
127 template <typename TitleT = Aws::String>
128 void SetTitle(TitleT&& value) {
129 m_titleHasBeenSet = true;
130 m_title = std::forward<TitleT>(value);
131 }
132 template <typename TitleT = Aws::String>
134 SetTitle(std::forward<TitleT>(value));
135 return *this;
136 }
138
140
143 inline const AccessConfiguration& GetAccessConfiguration() const { return m_accessConfiguration; }
144 inline bool AccessConfigurationHasBeenSet() const { return m_accessConfigurationHasBeenSet; }
145 template <typename AccessConfigurationT = AccessConfiguration>
147 m_accessConfigurationHasBeenSet = true;
148 m_accessConfiguration = std::forward<AccessConfigurationT>(value);
149 }
150 template <typename AccessConfigurationT = AccessConfiguration>
152 SetAccessConfiguration(std::forward<AccessConfigurationT>(value));
153 return *this;
154 }
156
158
162 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const { return m_documentEnrichmentConfiguration; }
163 inline bool DocumentEnrichmentConfigurationHasBeenSet() const { return m_documentEnrichmentConfigurationHasBeenSet; }
164 template <typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
166 m_documentEnrichmentConfigurationHasBeenSet = true;
167 m_documentEnrichmentConfiguration = std::forward<DocumentEnrichmentConfigurationT>(value);
168 }
169 template <typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
171 SetDocumentEnrichmentConfiguration(std::forward<DocumentEnrichmentConfigurationT>(value));
172 return *this;
173 }
175
177
180 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
181 inline bool MediaExtractionConfigurationHasBeenSet() const { return m_mediaExtractionConfigurationHasBeenSet; }
182 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
184 m_mediaExtractionConfigurationHasBeenSet = true;
185 m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value);
186 }
187 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
189 SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_id;
195
197
198 DocumentContent m_content;
199
200 ContentType m_contentType{ContentType::NOT_SET};
201
202 Aws::String m_title;
203
204 AccessConfiguration m_accessConfiguration;
205
206 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
207
208 MediaExtractionConfiguration m_mediaExtractionConfiguration;
209 bool m_idHasBeenSet = false;
210 bool m_attributesHasBeenSet = false;
211 bool m_contentHasBeenSet = false;
212 bool m_contentTypeHasBeenSet = false;
213 bool m_titleHasBeenSet = false;
214 bool m_accessConfigurationHasBeenSet = false;
215 bool m_documentEnrichmentConfigurationHasBeenSet = false;
216 bool m_mediaExtractionConfigurationHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace QBusiness
221} // namespace Aws
const Aws::String & GetId() const
Definition Document.h:45
Document & WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
Definition Document.h:170
void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
Definition Document.h:165
void SetContentType(ContentType value)
Definition Document.h:111
void SetTitle(TitleT &&value)
Definition Document.h:128
void SetId(IdT &&value)
Definition Document.h:48
Document & WithContentType(ContentType value)
Definition Document.h:115
const Aws::String & GetTitle() const
Definition Document.h:125
Document & WithMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
Definition Document.h:188
const Aws::Vector< DocumentAttribute > & GetAttributes() const
Definition Document.h:64
Document & WithTitle(TitleT &&value)
Definition Document.h:133
const AccessConfiguration & GetAccessConfiguration() const
Definition Document.h:143
const MediaExtractionConfiguration & GetMediaExtractionConfiguration() const
Definition Document.h:180
AWS_QBUSINESS_API Document(Aws::Utils::Json::JsonView jsonValue)
bool AttributesHasBeenSet() const
Definition Document.h:65
void SetAttributes(AttributesT &&value)
Definition Document.h:67
AWS_QBUSINESS_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
const DocumentContent & GetContent() const
Definition Document.h:88
Document & AddAttributes(AttributesT &&value)
Definition Document.h:77
void SetMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
Definition Document.h:183
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentEnrichmentConfiguration & GetDocumentEnrichmentConfiguration() const
Definition Document.h:162
Document & WithAccessConfiguration(AccessConfigurationT &&value)
Definition Document.h:151
ContentType GetContentType() const
Definition Document.h:109
Document & WithContent(ContentT &&value)
Definition Document.h:96
AWS_QBUSINESS_API Document()=default
bool DocumentEnrichmentConfigurationHasBeenSet() const
Definition Document.h:163
void SetContent(ContentT &&value)
Definition Document.h:91
bool MediaExtractionConfigurationHasBeenSet() const
Definition Document.h:181
Document & WithId(IdT &&value)
Definition Document.h:53
Document & WithAttributes(AttributesT &&value)
Definition Document.h:72
bool AccessConfigurationHasBeenSet() const
Definition Document.h:144
void SetAccessConfiguration(AccessConfigurationT &&value)
Definition Document.h:146
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue