AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GenerativeDataDetails.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/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/DataSummary.h>
11#include <aws/qconnect/model/RankingData.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QConnect {
23namespace Model {
24class DataSummary;
25
32 public:
33 AWS_QCONNECT_API GenerativeDataDetails() = default;
36 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCompletion() const { return m_completion; }
43 inline bool CompletionHasBeenSet() const { return m_completionHasBeenSet; }
44 template <typename CompletionT = Aws::String>
45 void SetCompletion(CompletionT&& value) {
46 m_completionHasBeenSet = true;
47 m_completion = std::forward<CompletionT>(value);
48 }
49 template <typename CompletionT = Aws::String>
51 SetCompletion(std::forward<CompletionT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<DataSummary>& GetReferences() const { return m_references; }
61 inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; }
62 template <typename ReferencesT = Aws::Vector<DataSummary>>
63 void SetReferences(ReferencesT&& value) {
64 m_referencesHasBeenSet = true;
65 m_references = std::forward<ReferencesT>(value);
66 }
67 template <typename ReferencesT = Aws::Vector<DataSummary>>
69 SetReferences(std::forward<ReferencesT>(value));
70 return *this;
71 }
72 template <typename ReferencesT = DataSummary>
74 m_referencesHasBeenSet = true;
75 m_references.emplace_back(std::forward<ReferencesT>(value));
76 return *this;
77 }
79
81
84 inline const RankingData& GetRankingData() const { return m_rankingData; }
85 inline bool RankingDataHasBeenSet() const { return m_rankingDataHasBeenSet; }
86 template <typename RankingDataT = RankingData>
88 m_rankingDataHasBeenSet = true;
89 m_rankingData = std::forward<RankingDataT>(value);
90 }
91 template <typename RankingDataT = RankingData>
93 SetRankingData(std::forward<RankingDataT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_completion;
99
100 Aws::Vector<DataSummary> m_references;
101
102 RankingData m_rankingData;
103 bool m_completionHasBeenSet = false;
104 bool m_referencesHasBeenSet = false;
105 bool m_rankingDataHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace QConnect
110} // namespace Aws
GenerativeDataDetails & WithRankingData(RankingDataT &&value)
GenerativeDataDetails & WithCompletion(CompletionT &&value)
AWS_QCONNECT_API GenerativeDataDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
GenerativeDataDetails & WithReferences(ReferencesT &&value)
const Aws::Vector< DataSummary > & GetReferences() const
GenerativeDataDetails & AddReferences(ReferencesT &&value)
AWS_QCONNECT_API GenerativeDataDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API GenerativeDataDetails()=default
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