AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
Suggestion.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/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/SourceDocument.h>
11#include <aws/kendra/model/SuggestionValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace kendra {
23namespace Model {
24
31 public:
32 AWS_KENDRA_API Suggestion() = default;
33 AWS_KENDRA_API Suggestion(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 Suggestion& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
60 inline const SuggestionValue& GetValue() const { return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 template <typename ValueT = SuggestionValue>
63 void SetValue(ValueT&& value) {
64 m_valueHasBeenSet = true;
65 m_value = std::forward<ValueT>(value);
66 }
67 template <typename ValueT = SuggestionValue>
68 Suggestion& WithValue(ValueT&& value) {
69 SetValue(std::forward<ValueT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::Vector<SourceDocument>& GetSourceDocuments() const { return m_sourceDocuments; }
81 inline bool SourceDocumentsHasBeenSet() const { return m_sourceDocumentsHasBeenSet; }
82 template <typename SourceDocumentsT = Aws::Vector<SourceDocument>>
83 void SetSourceDocuments(SourceDocumentsT&& value) {
84 m_sourceDocumentsHasBeenSet = true;
85 m_sourceDocuments = std::forward<SourceDocumentsT>(value);
86 }
87 template <typename SourceDocumentsT = Aws::Vector<SourceDocument>>
88 Suggestion& WithSourceDocuments(SourceDocumentsT&& value) {
89 SetSourceDocuments(std::forward<SourceDocumentsT>(value));
90 return *this;
91 }
92 template <typename SourceDocumentsT = SourceDocument>
93 Suggestion& AddSourceDocuments(SourceDocumentsT&& value) {
94 m_sourceDocumentsHasBeenSet = true;
95 m_sourceDocuments.emplace_back(std::forward<SourceDocumentsT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_id;
101 bool m_idHasBeenSet = false;
102
103 SuggestionValue m_value;
104 bool m_valueHasBeenSet = false;
105
106 Aws::Vector<SourceDocument> m_sourceDocuments;
107 bool m_sourceDocumentsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace kendra
112} // namespace Aws
void SetSourceDocuments(SourceDocumentsT &&value)
Definition Suggestion.h:83
const SuggestionValue & GetValue() const
Definition Suggestion.h:60
void SetValue(ValueT &&value)
Definition Suggestion.h:63
Suggestion & WithValue(ValueT &&value)
Definition Suggestion.h:68
AWS_KENDRA_API Suggestion(Aws::Utils::Json::JsonView jsonValue)
Suggestion & AddSourceDocuments(SourceDocumentsT &&value)
Definition Suggestion.h:93
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Definition Suggestion.h:41
Suggestion & WithSourceDocuments(SourceDocumentsT &&value)
Definition Suggestion.h:88
AWS_KENDRA_API Suggestion & operator=(Aws::Utils::Json::JsonView jsonValue)
Suggestion & WithId(IdT &&value)
Definition Suggestion.h:49
bool SourceDocumentsHasBeenSet() const
Definition Suggestion.h:81
AWS_KENDRA_API Suggestion()=default
const Aws::Vector< SourceDocument > & GetSourceDocuments() const
Definition Suggestion.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue