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/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/model/ContentReference.h>
9#include <aws/wisdom/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 ConnectWisdomService
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECTWISDOMSERVICE_API Document() = default;
36 AWS_CONNECTWISDOMSERVICE_API Document(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTWISDOMSERVICE_API Document& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTWISDOMSERVICE_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& GetExcerpt() const { return m_excerpt; }
58 inline bool ExcerptHasBeenSet() const { return m_excerptHasBeenSet; }
59 template<typename ExcerptT = DocumentText>
60 void SetExcerpt(ExcerptT&& value) { m_excerptHasBeenSet = true; m_excerpt = std::forward<ExcerptT>(value); }
61 template<typename ExcerptT = DocumentText>
62 Document& WithExcerpt(ExcerptT&& value) { SetExcerpt(std::forward<ExcerptT>(value)); return *this;}
64
66
69 inline const DocumentText& GetTitle() const { return m_title; }
70 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
71 template<typename TitleT = DocumentText>
72 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
73 template<typename TitleT = DocumentText>
74 Document& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(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 ConnectWisdomService
90} // namespace Aws
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentText & GetTitle() const
Definition Document.h:69
AWS_CONNECTWISDOMSERVICE_API Document(Aws::Utils::Json::JsonView jsonValue)
const DocumentText & GetExcerpt() const
Definition Document.h:57
const ContentReference & GetContentReference() const
Definition Document.h:45
AWS_CONNECTWISDOMSERVICE_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentReference(ContentReferenceT &&value)
Definition Document.h:48
AWS_CONNECTWISDOMSERVICE_API Document()=default
Document & WithExcerpt(ExcerptT &&value)
Definition Document.h:62
Document & WithTitle(TitleT &&value)
Definition Document.h:74
Document & WithContentReference(ContentReferenceT &&value)
Definition Document.h:50
Aws::Utils::Json::JsonValue JsonValue