AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
TextData.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/DocumentText.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QConnect {
20namespace Model {
21
27class TextData {
28 public:
29 AWS_QCONNECT_API TextData() = default;
32 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
36 inline const DocumentText& GetTitle() const { return m_title; }
37 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
38 template <typename TitleT = DocumentText>
39 void SetTitle(TitleT&& value) {
40 m_titleHasBeenSet = true;
41 m_title = std::forward<TitleT>(value);
42 }
43 template <typename TitleT = DocumentText>
45 SetTitle(std::forward<TitleT>(value));
46 return *this;
47 }
49
51
52 inline const DocumentText& GetExcerpt() const { return m_excerpt; }
53 inline bool ExcerptHasBeenSet() const { return m_excerptHasBeenSet; }
54 template <typename ExcerptT = DocumentText>
55 void SetExcerpt(ExcerptT&& value) {
56 m_excerptHasBeenSet = true;
57 m_excerpt = std::forward<ExcerptT>(value);
58 }
59 template <typename ExcerptT = DocumentText>
61 SetExcerpt(std::forward<ExcerptT>(value));
62 return *this;
63 }
65 private:
66 DocumentText m_title;
67
68 DocumentText m_excerpt;
69 bool m_titleHasBeenSet = false;
70 bool m_excerptHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace QConnect
75} // namespace Aws
const DocumentText & GetTitle() const
Definition TextData.h:36
void SetExcerpt(ExcerptT &&value)
Definition TextData.h:55
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TextData & WithTitle(TitleT &&value)
Definition TextData.h:44
void SetTitle(TitleT &&value)
Definition TextData.h:39
AWS_QCONNECT_API TextData()=default
const DocumentText & GetExcerpt() const
Definition TextData.h:52
AWS_QCONNECT_API TextData(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API TextData & operator=(Aws::Utils::Json::JsonView jsonValue)
TextData & WithExcerpt(ExcerptT &&value)
Definition TextData.h:60
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue