AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectWisdomService {
21namespace Model {
22
28class Document {
29 public:
30 AWS_CONNECTWISDOMSERVICE_API Document() = default;
31 AWS_CONNECTWISDOMSERVICE_API Document(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTWISDOMSERVICE_API Document& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTWISDOMSERVICE_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>
42 void SetContentReference(ContentReferenceT&& value) {
43 m_contentReferenceHasBeenSet = true;
44 m_contentReference = std::forward<ContentReferenceT>(value);
45 }
46 template <typename ContentReferenceT = ContentReference>
47 Document& WithContentReference(ContentReferenceT&& value) {
48 SetContentReference(std::forward<ContentReferenceT>(value));
49 return *this;
50 }
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) {
61 m_excerptHasBeenSet = true;
62 m_excerpt = std::forward<ExcerptT>(value);
63 }
64 template <typename ExcerptT = DocumentText>
65 Document& WithExcerpt(ExcerptT&& value) {
66 SetExcerpt(std::forward<ExcerptT>(value));
67 return *this;
68 }
70
72
75 inline const DocumentText& GetTitle() const { return m_title; }
76 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
77 template <typename TitleT = DocumentText>
78 void SetTitle(TitleT&& value) {
79 m_titleHasBeenSet = true;
80 m_title = std::forward<TitleT>(value);
81 }
82 template <typename TitleT = DocumentText>
83 Document& WithTitle(TitleT&& value) {
84 SetTitle(std::forward<TitleT>(value));
85 return *this;
86 }
88 private:
89 ContentReference m_contentReference;
90
91 DocumentText m_excerpt;
92
93 DocumentText m_title;
94 bool m_contentReferenceHasBeenSet = false;
95 bool m_excerptHasBeenSet = false;
96 bool m_titleHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace ConnectWisdomService
101} // namespace Aws
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentText & GetTitle() const
Definition Document.h:75
AWS_CONNECTWISDOMSERVICE_API Document(Aws::Utils::Json::JsonView jsonValue)
const DocumentText & GetExcerpt() const
Definition Document.h:57
const ContentReference & GetContentReference() const
Definition Document.h:39
AWS_CONNECTWISDOMSERVICE_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentReference(ContentReferenceT &&value)
Definition Document.h:42
AWS_CONNECTWISDOMSERVICE_API Document()=default
Document & WithExcerpt(ExcerptT &&value)
Definition Document.h:65
Document & WithTitle(TitleT &&value)
Definition Document.h:83
Document & WithContentReference(ContentReferenceT &&value)
Definition Document.h:47
Aws::Utils::Json::JsonValue JsonValue