AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
RelevantContent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/DocumentAttribute.h>
11#include <aws/qbusiness/model/ScoreAttributes.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness {
23namespace Model {
24
32 public:
33 AWS_QBUSINESS_API RelevantContent() = default;
36 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetContent() const { return m_content; }
43 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
44 template <typename ContentT = Aws::String>
45 void SetContent(ContentT&& value) {
46 m_contentHasBeenSet = true;
47 m_content = std::forward<ContentT>(value);
48 }
49 template <typename ContentT = Aws::String>
51 SetContent(std::forward<ContentT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDocumentId() const { return m_documentId; }
61 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
62 template <typename DocumentIdT = Aws::String>
63 void SetDocumentId(DocumentIdT&& value) {
64 m_documentIdHasBeenSet = true;
65 m_documentId = std::forward<DocumentIdT>(value);
66 }
67 template <typename DocumentIdT = Aws::String>
69 SetDocumentId(std::forward<DocumentIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDocumentTitle() const { return m_documentTitle; }
79 inline bool DocumentTitleHasBeenSet() const { return m_documentTitleHasBeenSet; }
80 template <typename DocumentTitleT = Aws::String>
82 m_documentTitleHasBeenSet = true;
83 m_documentTitle = std::forward<DocumentTitleT>(value);
84 }
85 template <typename DocumentTitleT = Aws::String>
87 SetDocumentTitle(std::forward<DocumentTitleT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDocumentUri() const { return m_documentUri; }
97 inline bool DocumentUriHasBeenSet() const { return m_documentUriHasBeenSet; }
98 template <typename DocumentUriT = Aws::String>
100 m_documentUriHasBeenSet = true;
101 m_documentUri = std::forward<DocumentUriT>(value);
102 }
103 template <typename DocumentUriT = Aws::String>
105 SetDocumentUri(std::forward<DocumentUriT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<DocumentAttribute>& GetDocumentAttributes() const { return m_documentAttributes; }
115 inline bool DocumentAttributesHasBeenSet() const { return m_documentAttributesHasBeenSet; }
116 template <typename DocumentAttributesT = Aws::Vector<DocumentAttribute>>
118 m_documentAttributesHasBeenSet = true;
119 m_documentAttributes = std::forward<DocumentAttributesT>(value);
120 }
121 template <typename DocumentAttributesT = Aws::Vector<DocumentAttribute>>
123 SetDocumentAttributes(std::forward<DocumentAttributesT>(value));
124 return *this;
125 }
126 template <typename DocumentAttributesT = DocumentAttribute>
128 m_documentAttributesHasBeenSet = true;
129 m_documentAttributes.emplace_back(std::forward<DocumentAttributesT>(value));
130 return *this;
131 }
133
135
138 inline const ScoreAttributes& GetScoreAttributes() const { return m_scoreAttributes; }
139 inline bool ScoreAttributesHasBeenSet() const { return m_scoreAttributesHasBeenSet; }
140 template <typename ScoreAttributesT = ScoreAttributes>
142 m_scoreAttributesHasBeenSet = true;
143 m_scoreAttributes = std::forward<ScoreAttributesT>(value);
144 }
145 template <typename ScoreAttributesT = ScoreAttributes>
147 SetScoreAttributes(std::forward<ScoreAttributesT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_content;
153
154 Aws::String m_documentId;
155
156 Aws::String m_documentTitle;
157
158 Aws::String m_documentUri;
159
160 Aws::Vector<DocumentAttribute> m_documentAttributes;
161
162 ScoreAttributes m_scoreAttributes;
163 bool m_contentHasBeenSet = false;
164 bool m_documentIdHasBeenSet = false;
165 bool m_documentTitleHasBeenSet = false;
166 bool m_documentUriHasBeenSet = false;
167 bool m_documentAttributesHasBeenSet = false;
168 bool m_scoreAttributesHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace QBusiness
173} // namespace Aws
RelevantContent & WithDocumentTitle(DocumentTitleT &&value)
const Aws::String & GetContent() const
AWS_QBUSINESS_API RelevantContent()=default
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API RelevantContent(Aws::Utils::Json::JsonView jsonValue)
RelevantContent & WithContent(ContentT &&value)
RelevantContent & WithDocumentAttributes(DocumentAttributesT &&value)
void SetDocumentAttributes(DocumentAttributesT &&value)
const Aws::String & GetDocumentId() const
const ScoreAttributes & GetScoreAttributes() const
const Aws::String & GetDocumentUri() const
RelevantContent & WithScoreAttributes(ScoreAttributesT &&value)
const Aws::Vector< DocumentAttribute > & GetDocumentAttributes() const
const Aws::String & GetDocumentTitle() const
void SetDocumentUri(DocumentUriT &&value)
void SetDocumentTitle(DocumentTitleT &&value)
void SetScoreAttributes(ScoreAttributesT &&value)
RelevantContent & AddDocumentAttributes(DocumentAttributesT &&value)
AWS_QBUSINESS_API RelevantContent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDocumentId(DocumentIdT &&value)
RelevantContent & WithDocumentId(DocumentIdT &&value)
RelevantContent & WithDocumentUri(DocumentUriT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue