AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Document.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/model/DocumentContent.h>
11#include <aws/qbusiness/model/ContentType.h>
12#include <aws/qbusiness/model/AccessConfiguration.h>
13#include <aws/qbusiness/model/DocumentEnrichmentConfiguration.h>
14#include <aws/qbusiness/model/MediaExtractionConfiguration.h>
15#include <aws/qbusiness/model/DocumentAttribute.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace QBusiness
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_QBUSINESS_API Document() = default;
44 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetId() const { return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 template<typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
55 template<typename IdT = Aws::String>
56 Document& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
68 template<typename AttributesT = Aws::Vector<DocumentAttribute>>
69 Document& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
70 template<typename AttributesT = DocumentAttribute>
71 Document& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
73
75
78 inline const DocumentContent& GetContent() const { return m_content; }
79 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
80 template<typename ContentT = DocumentContent>
81 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
82 template<typename ContentT = DocumentContent>
83 Document& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
85
87
93 inline ContentType GetContentType() const { return m_contentType; }
94 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
95 inline void SetContentType(ContentType value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
96 inline Document& WithContentType(ContentType value) { SetContentType(value); return *this;}
98
100
103 inline const Aws::String& GetTitle() const { return m_title; }
104 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
105 template<typename TitleT = Aws::String>
106 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
107 template<typename TitleT = Aws::String>
108 Document& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
110
112
115 inline const AccessConfiguration& GetAccessConfiguration() const { return m_accessConfiguration; }
116 inline bool AccessConfigurationHasBeenSet() const { return m_accessConfigurationHasBeenSet; }
117 template<typename AccessConfigurationT = AccessConfiguration>
118 void SetAccessConfiguration(AccessConfigurationT&& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = std::forward<AccessConfigurationT>(value); }
119 template<typename AccessConfigurationT = AccessConfiguration>
120 Document& WithAccessConfiguration(AccessConfigurationT&& value) { SetAccessConfiguration(std::forward<AccessConfigurationT>(value)); return *this;}
122
124
128 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const { return m_documentEnrichmentConfiguration; }
129 inline bool DocumentEnrichmentConfigurationHasBeenSet() const { return m_documentEnrichmentConfigurationHasBeenSet; }
130 template<typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
131 void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT&& value) { m_documentEnrichmentConfigurationHasBeenSet = true; m_documentEnrichmentConfiguration = std::forward<DocumentEnrichmentConfigurationT>(value); }
132 template<typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
133 Document& WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT&& value) { SetDocumentEnrichmentConfiguration(std::forward<DocumentEnrichmentConfigurationT>(value)); return *this;}
135
137
140 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
141 inline bool MediaExtractionConfigurationHasBeenSet() const { return m_mediaExtractionConfigurationHasBeenSet; }
142 template<typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
143 void SetMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) { m_mediaExtractionConfigurationHasBeenSet = true; m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value); }
144 template<typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
145 Document& WithMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) { SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value)); return *this;}
147 private:
148
149 Aws::String m_id;
150 bool m_idHasBeenSet = false;
151
153 bool m_attributesHasBeenSet = false;
154
155 DocumentContent m_content;
156 bool m_contentHasBeenSet = false;
157
158 ContentType m_contentType{ContentType::NOT_SET};
159 bool m_contentTypeHasBeenSet = false;
160
161 Aws::String m_title;
162 bool m_titleHasBeenSet = false;
163
164 AccessConfiguration m_accessConfiguration;
165 bool m_accessConfigurationHasBeenSet = false;
166
167 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
168 bool m_documentEnrichmentConfigurationHasBeenSet = false;
169
170 MediaExtractionConfiguration m_mediaExtractionConfiguration;
171 bool m_mediaExtractionConfigurationHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace QBusiness
176} // namespace Aws
const Aws::String & GetId() const
Definition Document.h:51
Document & WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
Definition Document.h:133
void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
Definition Document.h:131
void SetContentType(ContentType value)
Definition Document.h:95
void SetTitle(TitleT &&value)
Definition Document.h:106
void SetId(IdT &&value)
Definition Document.h:54
Document & WithContentType(ContentType value)
Definition Document.h:96
const Aws::String & GetTitle() const
Definition Document.h:103
Document & WithMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
Definition Document.h:145
const Aws::Vector< DocumentAttribute > & GetAttributes() const
Definition Document.h:64
Document & WithTitle(TitleT &&value)
Definition Document.h:108
const AccessConfiguration & GetAccessConfiguration() const
Definition Document.h:115
const MediaExtractionConfiguration & GetMediaExtractionConfiguration() const
Definition Document.h:140
AWS_QBUSINESS_API Document(Aws::Utils::Json::JsonView jsonValue)
bool ContentTypeHasBeenSet() const
Definition Document.h:94
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:78
Document & AddAttributes(AttributesT &&value)
Definition Document.h:71
void SetMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
Definition Document.h:143
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentEnrichmentConfiguration & GetDocumentEnrichmentConfiguration() const
Definition Document.h:128
Document & WithAccessConfiguration(AccessConfigurationT &&value)
Definition Document.h:120
ContentType GetContentType() const
Definition Document.h:93
Document & WithContent(ContentT &&value)
Definition Document.h:83
AWS_QBUSINESS_API Document()=default
bool DocumentEnrichmentConfigurationHasBeenSet() const
Definition Document.h:129
void SetContent(ContentT &&value)
Definition Document.h:81
bool MediaExtractionConfigurationHasBeenSet() const
Definition Document.h:141
Document & WithId(IdT &&value)
Definition Document.h:56
Document & WithAttributes(AttributesT &&value)
Definition Document.h:69
bool AccessConfigurationHasBeenSet() const
Definition Document.h:116
void SetAccessConfiguration(AccessConfigurationT &&value)
Definition Document.h:118
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