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/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/ContentReference.h>
9#include <aws/qconnect/model/DocumentText.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QConnect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_QCONNECT_API Document() = default;
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const ContentReference& GetContentReference() const { return m_contentReference; }
46 inline bool ContentReferenceHasBeenSet() const { return m_contentReferenceHasBeenSet; }
47 template<typename ContentReferenceT = ContentReference>
48 void SetContentReference(ContentReferenceT&& value) { m_contentReferenceHasBeenSet = true; m_contentReference = std::forward<ContentReferenceT>(value); }
49 template<typename ContentReferenceT = ContentReference>
50 Document& WithContentReference(ContentReferenceT&& value) { SetContentReference(std::forward<ContentReferenceT>(value)); return *this;}
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) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
61 template<typename TitleT = DocumentText>
62 Document& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
64
66
69 inline const DocumentText& GetExcerpt() const { return m_excerpt; }
70 inline bool ExcerptHasBeenSet() const { return m_excerptHasBeenSet; }
71 template<typename ExcerptT = DocumentText>
72 void SetExcerpt(ExcerptT&& value) { m_excerptHasBeenSet = true; m_excerpt = std::forward<ExcerptT>(value); }
73 template<typename ExcerptT = DocumentText>
74 Document& WithExcerpt(ExcerptT&& value) { SetExcerpt(std::forward<ExcerptT>(value)); return *this;}
76 private:
77
78 ContentReference m_contentReference;
79 bool m_contentReferenceHasBeenSet = false;
80
81 DocumentText m_title;
82 bool m_titleHasBeenSet = false;
83
84 DocumentText m_excerpt;
85 bool m_excerptHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace QConnect
90} // namespace Aws
AWS_QCONNECT_API Document(Aws::Utils::Json::JsonView jsonValue)
Document & WithExcerpt(ExcerptT &&value)
Definition Document.h:74
void SetExcerpt(ExcerptT &&value)
Definition Document.h:72
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentText & GetExcerpt() const
Definition Document.h:69
const ContentReference & GetContentReference() const
Definition Document.h:45
Document & WithTitle(TitleT &&value)
Definition Document.h:62
bool ContentReferenceHasBeenSet() const
Definition Document.h:46
void SetTitle(TitleT &&value)
Definition Document.h:60
Document & WithContentReference(ContentReferenceT &&value)
Definition Document.h:50
const DocumentText & GetTitle() const
Definition Document.h:57
void SetContentReference(ContentReferenceT &&value)
Definition Document.h:48
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