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/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();
36 AWS_QCONNECT_API Document(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QCONNECT_API Document& operator=(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetContentReference(const ContentReference& value) { m_contentReferenceHasBeenSet = true; m_contentReference = value; }
48 inline void SetContentReference(ContentReference&& value) { m_contentReferenceHasBeenSet = true; m_contentReference = std::move(value); }
49 inline Document& WithContentReference(const ContentReference& value) { SetContentReference(value); return *this;}
50 inline Document& WithContentReference(ContentReference&& value) { SetContentReference(std::move(value)); return *this;}
52
54
57 inline const DocumentText& GetExcerpt() const{ return m_excerpt; }
58 inline bool ExcerptHasBeenSet() const { return m_excerptHasBeenSet; }
59 inline void SetExcerpt(const DocumentText& value) { m_excerptHasBeenSet = true; m_excerpt = value; }
60 inline void SetExcerpt(DocumentText&& value) { m_excerptHasBeenSet = true; m_excerpt = std::move(value); }
61 inline Document& WithExcerpt(const DocumentText& value) { SetExcerpt(value); return *this;}
62 inline Document& WithExcerpt(DocumentText&& value) { SetExcerpt(std::move(value)); return *this;}
64
66
69 inline const DocumentText& GetTitle() const{ return m_title; }
70 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
71 inline void SetTitle(const DocumentText& value) { m_titleHasBeenSet = true; m_title = value; }
72 inline void SetTitle(DocumentText&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
73 inline Document& WithTitle(const DocumentText& value) { SetTitle(value); return *this;}
74 inline Document& WithTitle(DocumentText&& value) { SetTitle(std::move(value)); return *this;}
76 private:
77
78 ContentReference m_contentReference;
79 bool m_contentReferenceHasBeenSet = false;
80
81 DocumentText m_excerpt;
82 bool m_excerptHasBeenSet = false;
83
84 DocumentText m_title;
85 bool m_titleHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace QConnect
90} // namespace Aws
AWS_QCONNECT_API Document(Aws::Utils::Json::JsonView jsonValue)
Document & WithContentReference(ContentReference &&value)
Definition Document.h:50
void SetExcerpt(DocumentText &&value)
Definition Document.h:60
Document & WithTitle(DocumentText &&value)
Definition Document.h:74
Document & WithExcerpt(DocumentText &&value)
Definition Document.h:62
Document & WithExcerpt(const DocumentText &value)
Definition Document.h:61
void SetContentReference(ContentReference &&value)
Definition Document.h:48
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentText & GetExcerpt() const
Definition Document.h:57
Document & WithContentReference(const ContentReference &value)
Definition Document.h:49
const ContentReference & GetContentReference() const
Definition Document.h:45
Document & WithTitle(const DocumentText &value)
Definition Document.h:73
void SetTitle(const DocumentText &value)
Definition Document.h:71
void SetContentReference(const ContentReference &value)
Definition Document.h:47
bool ContentReferenceHasBeenSet() const
Definition Document.h:46
void SetTitle(DocumentText &&value)
Definition Document.h:72
const DocumentText & GetTitle() const
Definition Document.h:69
void SetExcerpt(const DocumentText &value)
Definition Document.h:59
AWS_QCONNECT_API Document()
AWS_QCONNECT_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue