AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Suggestion.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/model/SuggestionValue.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kendra/model/SourceDocument.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 kendra
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_KENDRA_API Suggestion() = default;
38 AWS_KENDRA_API Suggestion(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 Suggestion& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
64 template<typename ValueT = SuggestionValue>
65 Suggestion& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
67
69
74 inline const Aws::Vector<SourceDocument>& GetSourceDocuments() const { return m_sourceDocuments; }
75 inline bool SourceDocumentsHasBeenSet() const { return m_sourceDocumentsHasBeenSet; }
76 template<typename SourceDocumentsT = Aws::Vector<SourceDocument>>
77 void SetSourceDocuments(SourceDocumentsT&& value) { m_sourceDocumentsHasBeenSet = true; m_sourceDocuments = std::forward<SourceDocumentsT>(value); }
78 template<typename SourceDocumentsT = Aws::Vector<SourceDocument>>
79 Suggestion& WithSourceDocuments(SourceDocumentsT&& value) { SetSourceDocuments(std::forward<SourceDocumentsT>(value)); return *this;}
80 template<typename SourceDocumentsT = SourceDocument>
81 Suggestion& AddSourceDocuments(SourceDocumentsT&& value) { m_sourceDocumentsHasBeenSet = true; m_sourceDocuments.emplace_back(std::forward<SourceDocumentsT>(value)); return *this; }
83 private:
84
85 Aws::String m_id;
86 bool m_idHasBeenSet = false;
87
88 SuggestionValue m_value;
89 bool m_valueHasBeenSet = false;
90
91 Aws::Vector<SourceDocument> m_sourceDocuments;
92 bool m_sourceDocumentsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace kendra
97} // namespace Aws
void SetSourceDocuments(SourceDocumentsT &&value)
Definition Suggestion.h:77
const SuggestionValue & GetValue() const
Definition Suggestion.h:60
void SetValue(ValueT &&value)
Definition Suggestion.h:63
Suggestion & WithValue(ValueT &&value)
Definition Suggestion.h:65
AWS_KENDRA_API Suggestion(Aws::Utils::Json::JsonView jsonValue)
Suggestion & AddSourceDocuments(SourceDocumentsT &&value)
Definition Suggestion.h:81
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Definition Suggestion.h:47
Suggestion & WithSourceDocuments(SourceDocumentsT &&value)
Definition Suggestion.h:79
AWS_KENDRA_API Suggestion & operator=(Aws::Utils::Json::JsonView jsonValue)
Suggestion & WithId(IdT &&value)
Definition Suggestion.h:52
bool SourceDocumentsHasBeenSet() const
Definition Suggestion.h:75
AWS_KENDRA_API Suggestion()=default
const Aws::Vector< SourceDocument > & GetSourceDocuments() const
Definition Suggestion.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue