AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RelevantContent.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/model/ScoreAttributes.h>
11#include <aws/qbusiness/model/DocumentAttribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QBusiness
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QBUSINESS_API RelevantContent() = default;
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetContent() const { return m_content; }
49 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
50 template<typename ContentT = Aws::String>
51 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
52 template<typename ContentT = Aws::String>
53 RelevantContent& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
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) { m_documentIdHasBeenSet = true; m_documentId = std::forward<DocumentIdT>(value); }
64 template<typename DocumentIdT = Aws::String>
65 RelevantContent& WithDocumentId(DocumentIdT&& value) { SetDocumentId(std::forward<DocumentIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDocumentTitle() const { return m_documentTitle; }
73 inline bool DocumentTitleHasBeenSet() const { return m_documentTitleHasBeenSet; }
74 template<typename DocumentTitleT = Aws::String>
75 void SetDocumentTitle(DocumentTitleT&& value) { m_documentTitleHasBeenSet = true; m_documentTitle = std::forward<DocumentTitleT>(value); }
76 template<typename DocumentTitleT = Aws::String>
77 RelevantContent& WithDocumentTitle(DocumentTitleT&& value) { SetDocumentTitle(std::forward<DocumentTitleT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDocumentUri() const { return m_documentUri; }
85 inline bool DocumentUriHasBeenSet() const { return m_documentUriHasBeenSet; }
86 template<typename DocumentUriT = Aws::String>
87 void SetDocumentUri(DocumentUriT&& value) { m_documentUriHasBeenSet = true; m_documentUri = std::forward<DocumentUriT>(value); }
88 template<typename DocumentUriT = Aws::String>
89 RelevantContent& WithDocumentUri(DocumentUriT&& value) { SetDocumentUri(std::forward<DocumentUriT>(value)); return *this;}
91
93
96 inline const Aws::Vector<DocumentAttribute>& GetDocumentAttributes() const { return m_documentAttributes; }
97 inline bool DocumentAttributesHasBeenSet() const { return m_documentAttributesHasBeenSet; }
98 template<typename DocumentAttributesT = Aws::Vector<DocumentAttribute>>
99 void SetDocumentAttributes(DocumentAttributesT&& value) { m_documentAttributesHasBeenSet = true; m_documentAttributes = std::forward<DocumentAttributesT>(value); }
100 template<typename DocumentAttributesT = Aws::Vector<DocumentAttribute>>
101 RelevantContent& WithDocumentAttributes(DocumentAttributesT&& value) { SetDocumentAttributes(std::forward<DocumentAttributesT>(value)); return *this;}
102 template<typename DocumentAttributesT = DocumentAttribute>
103 RelevantContent& AddDocumentAttributes(DocumentAttributesT&& value) { m_documentAttributesHasBeenSet = true; m_documentAttributes.emplace_back(std::forward<DocumentAttributesT>(value)); return *this; }
105
107
110 inline const ScoreAttributes& GetScoreAttributes() const { return m_scoreAttributes; }
111 inline bool ScoreAttributesHasBeenSet() const { return m_scoreAttributesHasBeenSet; }
112 template<typename ScoreAttributesT = ScoreAttributes>
113 void SetScoreAttributes(ScoreAttributesT&& value) { m_scoreAttributesHasBeenSet = true; m_scoreAttributes = std::forward<ScoreAttributesT>(value); }
114 template<typename ScoreAttributesT = ScoreAttributes>
115 RelevantContent& WithScoreAttributes(ScoreAttributesT&& value) { SetScoreAttributes(std::forward<ScoreAttributesT>(value)); return *this;}
117 private:
118
119 Aws::String m_content;
120 bool m_contentHasBeenSet = false;
121
122 Aws::String m_documentId;
123 bool m_documentIdHasBeenSet = false;
124
125 Aws::String m_documentTitle;
126 bool m_documentTitleHasBeenSet = false;
127
128 Aws::String m_documentUri;
129 bool m_documentUriHasBeenSet = false;
130
131 Aws::Vector<DocumentAttribute> m_documentAttributes;
132 bool m_documentAttributesHasBeenSet = false;
133
134 ScoreAttributes m_scoreAttributes;
135 bool m_scoreAttributesHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace QBusiness
140} // 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