AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Document.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/ContentReference.h>
9#include <aws/qconnect/model/DocumentText.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
28class Document {
29 public:
30 AWS_QCONNECT_API Document() = default;
33 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const ContentReference& GetContentReference() const { return m_contentReference; }
40 inline bool ContentReferenceHasBeenSet() const { return m_contentReferenceHasBeenSet; }
41 template <typename ContentReferenceT = ContentReference>
43 m_contentReferenceHasBeenSet = true;
44 m_contentReference = std::forward<ContentReferenceT>(value);
45 }
46 template <typename ContentReferenceT = ContentReference>
48 SetContentReference(std::forward<ContentReferenceT>(value));
49 return *this;
50 }
52
54
57 inline const DocumentText& GetTitle() const { return m_title; }
58 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
59 template <typename TitleT = DocumentText>
60 void SetTitle(TitleT&& value) {
61 m_titleHasBeenSet = true;
62 m_title = std::forward<TitleT>(value);
63 }
64 template <typename TitleT = DocumentText>
66 SetTitle(std::forward<TitleT>(value));
67 return *this;
68 }
70
72
75 inline const DocumentText& GetExcerpt() const { return m_excerpt; }
76 inline bool ExcerptHasBeenSet() const { return m_excerptHasBeenSet; }
77 template <typename ExcerptT = DocumentText>
78 void SetExcerpt(ExcerptT&& value) {
79 m_excerptHasBeenSet = true;
80 m_excerpt = std::forward<ExcerptT>(value);
81 }
82 template <typename ExcerptT = DocumentText>
84 SetExcerpt(std::forward<ExcerptT>(value));
85 return *this;
86 }
88 private:
89 ContentReference m_contentReference;
90
91 DocumentText m_title;
92
93 DocumentText m_excerpt;
94 bool m_contentReferenceHasBeenSet = false;
95 bool m_titleHasBeenSet = false;
96 bool m_excerptHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace QConnect
101} // namespace Aws
AWS_QCONNECT_API Document(Aws::Utils::Json::JsonView jsonValue)
Document & WithExcerpt(ExcerptT &&value)
Definition Document.h:83
void SetExcerpt(ExcerptT &&value)
Definition Document.h:78
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentText & GetExcerpt() const
Definition Document.h:75
const ContentReference & GetContentReference() const
Definition Document.h:39
Document & WithTitle(TitleT &&value)
Definition Document.h:65
bool ContentReferenceHasBeenSet() const
Definition Document.h:40
void SetTitle(TitleT &&value)
Definition Document.h:60
Document & WithContentReference(ContentReferenceT &&value)
Definition Document.h:47
const DocumentText & GetTitle() const
Definition Document.h:57
void SetContentReference(ContentReferenceT &&value)
Definition Document.h:42
AWS_QCONNECT_API Document()=default
AWS_QCONNECT_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue