AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Citation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/CitationSpan.h>
10#include <aws/qconnect/model/ReferenceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QConnect {
22namespace Model {
23
29class Citation {
30 public:
31 AWS_QCONNECT_API Citation() = default;
32 AWS_QCONNECT_API Citation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QCONNECT_API Citation& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetContentId() const { return m_contentId; }
41 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
42 template <typename ContentIdT = Aws::String>
43 void SetContentId(ContentIdT&& value) {
44 m_contentIdHasBeenSet = true;
45 m_contentId = std::forward<ContentIdT>(value);
46 }
47 template <typename ContentIdT = Aws::String>
48 Citation& WithContentId(ContentIdT&& value) {
49 SetContentId(std::forward<ContentIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTitle() const { return m_title; }
59 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
60 template <typename TitleT = Aws::String>
61 void SetTitle(TitleT&& value) {
62 m_titleHasBeenSet = true;
63 m_title = std::forward<TitleT>(value);
64 }
65 template <typename TitleT = Aws::String>
66 Citation& WithTitle(TitleT&& value) {
67 SetTitle(std::forward<TitleT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
77 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
78 template <typename KnowledgeBaseIdT = Aws::String>
79 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
80 m_knowledgeBaseIdHasBeenSet = true;
81 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
82 }
83 template <typename KnowledgeBaseIdT = Aws::String>
84 Citation& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
85 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
86 return *this;
87 }
89
91
92 inline const CitationSpan& GetCitationSpan() const { return m_citationSpan; }
93 inline bool CitationSpanHasBeenSet() const { return m_citationSpanHasBeenSet; }
94 template <typename CitationSpanT = CitationSpan>
95 void SetCitationSpan(CitationSpanT&& value) {
96 m_citationSpanHasBeenSet = true;
97 m_citationSpan = std::forward<CitationSpanT>(value);
98 }
99 template <typename CitationSpanT = CitationSpan>
100 Citation& WithCitationSpan(CitationSpanT&& value) {
101 SetCitationSpan(std::forward<CitationSpanT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetSourceURL() const { return m_sourceURL; }
111 inline bool SourceURLHasBeenSet() const { return m_sourceURLHasBeenSet; }
112 template <typename SourceURLT = Aws::String>
113 void SetSourceURL(SourceURLT&& value) {
114 m_sourceURLHasBeenSet = true;
115 m_sourceURL = std::forward<SourceURLT>(value);
116 }
117 template <typename SourceURLT = Aws::String>
118 Citation& WithSourceURL(SourceURLT&& value) {
119 SetSourceURL(std::forward<SourceURLT>(value));
120 return *this;
121 }
123
125
128 inline ReferenceType GetReferenceType() const { return m_referenceType; }
129 inline bool ReferenceTypeHasBeenSet() const { return m_referenceTypeHasBeenSet; }
130 inline void SetReferenceType(ReferenceType value) {
131 m_referenceTypeHasBeenSet = true;
132 m_referenceType = value;
133 }
135 SetReferenceType(value);
136 return *this;
137 }
139 private:
140 Aws::String m_contentId;
141
142 Aws::String m_title;
143
144 Aws::String m_knowledgeBaseId;
145
146 CitationSpan m_citationSpan;
147
148 Aws::String m_sourceURL;
149
150 ReferenceType m_referenceType{ReferenceType::NOT_SET};
151 bool m_contentIdHasBeenSet = false;
152 bool m_titleHasBeenSet = false;
153 bool m_knowledgeBaseIdHasBeenSet = false;
154 bool m_citationSpanHasBeenSet = false;
155 bool m_sourceURLHasBeenSet = false;
156 bool m_referenceTypeHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace QConnect
161} // namespace Aws
AWS_QCONNECT_API Citation(Aws::Utils::Json::JsonView jsonValue)
const CitationSpan & GetCitationSpan() const
Definition Citation.h:92
AWS_QCONNECT_API Citation()=default
void SetTitle(TitleT &&value)
Definition Citation.h:61
const Aws::String & GetKnowledgeBaseId() const
Definition Citation.h:76
bool CitationSpanHasBeenSet() const
Definition Citation.h:93
bool KnowledgeBaseIdHasBeenSet() const
Definition Citation.h:77
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
Definition Citation.h:79
Citation & WithCitationSpan(CitationSpanT &&value)
Definition Citation.h:100
Citation & WithContentId(ContentIdT &&value)
Definition Citation.h:48
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSourceURL() const
Definition Citation.h:110
const Aws::String & GetTitle() const
Definition Citation.h:58
Citation & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
Definition Citation.h:84
void SetReferenceType(ReferenceType value)
Definition Citation.h:130
ReferenceType GetReferenceType() const
Definition Citation.h:128
bool ContentIdHasBeenSet() const
Definition Citation.h:41
bool ReferenceTypeHasBeenSet() const
Definition Citation.h:129
void SetCitationSpan(CitationSpanT &&value)
Definition Citation.h:95
Citation & WithTitle(TitleT &&value)
Definition Citation.h:66
void SetSourceURL(SourceURLT &&value)
Definition Citation.h:113
void SetContentId(ContentIdT &&value)
Definition Citation.h:43
Citation & WithReferenceType(ReferenceType value)
Definition Citation.h:134
Citation & WithSourceURL(SourceURLT &&value)
Definition Citation.h:118
const Aws::String & GetContentId() const
Definition Citation.h:40
AWS_QCONNECT_API Citation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue