AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/DocumentAttribute.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace QBusiness
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_QBUSINESS_API Document();
41 AWS_QBUSINESS_API Document(Aws::Utils::Json::JsonView jsonValue);
42 AWS_QBUSINESS_API Document& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const{ return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline Document& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline Document& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline Document& WithId(const char* value) { SetId(value); return *this;}
59
61
65 inline const Aws::Vector<DocumentAttribute>& GetAttributes() const{ return m_attributes; }
66 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
67 inline void SetAttributes(const Aws::Vector<DocumentAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
68 inline void SetAttributes(Aws::Vector<DocumentAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
69 inline Document& WithAttributes(const Aws::Vector<DocumentAttribute>& value) { SetAttributes(value); return *this;}
70 inline Document& WithAttributes(Aws::Vector<DocumentAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
71 inline Document& AddAttributes(const DocumentAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
72 inline Document& AddAttributes(DocumentAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
74
76
79 inline const DocumentContent& GetContent() const{ return m_content; }
80 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
81 inline void SetContent(const DocumentContent& value) { m_contentHasBeenSet = true; m_content = value; }
82 inline void SetContent(DocumentContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
83 inline Document& WithContent(const DocumentContent& value) { SetContent(value); return *this;}
84 inline Document& WithContent(DocumentContent&& value) { SetContent(std::move(value)); return *this;}
86
88
94 inline const ContentType& GetContentType() const{ return m_contentType; }
95 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
96 inline void SetContentType(const ContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
97 inline void SetContentType(ContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
98 inline Document& WithContentType(const ContentType& value) { SetContentType(value); return *this;}
99 inline Document& WithContentType(ContentType&& value) { SetContentType(std::move(value)); return *this;}
101
103
106 inline const Aws::String& GetTitle() const{ return m_title; }
107 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
108 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
109 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
110 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
111 inline Document& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
112 inline Document& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
113 inline Document& WithTitle(const char* value) { SetTitle(value); return *this;}
115
117
120 inline const AccessConfiguration& GetAccessConfiguration() const{ return m_accessConfiguration; }
121 inline bool AccessConfigurationHasBeenSet() const { return m_accessConfigurationHasBeenSet; }
122 inline void SetAccessConfiguration(const AccessConfiguration& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = value; }
123 inline void SetAccessConfiguration(AccessConfiguration&& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = std::move(value); }
124 inline Document& WithAccessConfiguration(const AccessConfiguration& value) { SetAccessConfiguration(value); return *this;}
125 inline Document& WithAccessConfiguration(AccessConfiguration&& value) { SetAccessConfiguration(std::move(value)); return *this;}
127
129
133 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const{ return m_documentEnrichmentConfiguration; }
134 inline bool DocumentEnrichmentConfigurationHasBeenSet() const { return m_documentEnrichmentConfigurationHasBeenSet; }
135 inline void SetDocumentEnrichmentConfiguration(const DocumentEnrichmentConfiguration& value) { m_documentEnrichmentConfigurationHasBeenSet = true; m_documentEnrichmentConfiguration = value; }
136 inline void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfiguration&& value) { m_documentEnrichmentConfigurationHasBeenSet = true; m_documentEnrichmentConfiguration = std::move(value); }
140 private:
141
142 Aws::String m_id;
143 bool m_idHasBeenSet = false;
144
146 bool m_attributesHasBeenSet = false;
147
148 DocumentContent m_content;
149 bool m_contentHasBeenSet = false;
150
151 ContentType m_contentType;
152 bool m_contentTypeHasBeenSet = false;
153
154 Aws::String m_title;
155 bool m_titleHasBeenSet = false;
156
157 AccessConfiguration m_accessConfiguration;
158 bool m_accessConfigurationHasBeenSet = false;
159
160 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
161 bool m_documentEnrichmentConfigurationHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace QBusiness
166} // namespace Aws
void SetTitle(Aws::String &&value)
Definition Document.h:109
const Aws::String & GetId() const
Definition Document.h:50
void SetContentType(const ContentType &value)
Definition Document.h:96
Document & WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfiguration &&value)
Definition Document.h:138
void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfiguration &&value)
Definition Document.h:136
Document & WithId(const Aws::String &value)
Definition Document.h:55
Document & WithTitle(const Aws::String &value)
Definition Document.h:111
void SetAccessConfiguration(const AccessConfiguration &value)
Definition Document.h:122
void SetTitle(const Aws::String &value)
Definition Document.h:108
Document & WithId(const char *value)
Definition Document.h:57
void SetAttributes(Aws::Vector< DocumentAttribute > &&value)
Definition Document.h:68
Document & WithAccessConfiguration(AccessConfiguration &&value)
Definition Document.h:125
AWS_QBUSINESS_API Document()
void SetContentType(ContentType &&value)
Definition Document.h:97
Document & WithContent(const DocumentContent &value)
Definition Document.h:83
Document & WithAttributes(Aws::Vector< DocumentAttribute > &&value)
Definition Document.h:70
Document & WithTitle(const char *value)
Definition Document.h:113
Document & WithAttributes(const Aws::Vector< DocumentAttribute > &value)
Definition Document.h:69
Document & WithId(Aws::String &&value)
Definition Document.h:56
const Aws::String & GetTitle() const
Definition Document.h:106
void SetAttributes(const Aws::Vector< DocumentAttribute > &value)
Definition Document.h:67
const Aws::Vector< DocumentAttribute > & GetAttributes() const
Definition Document.h:65
const ContentType & GetContentType() const
Definition Document.h:94
Document & WithAccessConfiguration(const AccessConfiguration &value)
Definition Document.h:124
void SetContent(DocumentContent &&value)
Definition Document.h:82
void SetContent(const DocumentContent &value)
Definition Document.h:81
const AccessConfiguration & GetAccessConfiguration() const
Definition Document.h:120
AWS_QBUSINESS_API Document(Aws::Utils::Json::JsonView jsonValue)
bool ContentTypeHasBeenSet() const
Definition Document.h:95
void SetTitle(const char *value)
Definition Document.h:110
Document & WithDocumentEnrichmentConfiguration(const DocumentEnrichmentConfiguration &value)
Definition Document.h:137
void SetId(Aws::String &&value)
Definition Document.h:53
bool AttributesHasBeenSet() const
Definition Document.h:66
void SetId(const char *value)
Definition Document.h:54
Document & WithContent(DocumentContent &&value)
Definition Document.h:84
AWS_QBUSINESS_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
const DocumentContent & GetContent() const
Definition Document.h:79
Document & AddAttributes(DocumentAttribute &&value)
Definition Document.h:72
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentEnrichmentConfiguration & GetDocumentEnrichmentConfiguration() const
Definition Document.h:133
Document & WithContentType(ContentType &&value)
Definition Document.h:99
void SetDocumentEnrichmentConfiguration(const DocumentEnrichmentConfiguration &value)
Definition Document.h:135
Document & WithContentType(const ContentType &value)
Definition Document.h:98
void SetAccessConfiguration(AccessConfiguration &&value)
Definition Document.h:123
Document & WithTitle(Aws::String &&value)
Definition Document.h:112
bool DocumentEnrichmentConfigurationHasBeenSet() const
Definition Document.h:134
void SetId(const Aws::String &value)
Definition Document.h:52
Document & AddAttributes(const DocumentAttribute &value)
Definition Document.h:71
bool AccessConfigurationHasBeenSet() const
Definition Document.h:121
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue