AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GenerativeChunkDataDetails.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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QConnect {
22namespace Model {
23class DataSummary;
24
31 public:
32 AWS_QCONNECT_API GenerativeChunkDataDetails() = default;
35 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetCompletion() const { return m_completion; }
42 inline bool CompletionHasBeenSet() const { return m_completionHasBeenSet; }
43 template <typename CompletionT = Aws::String>
44 void SetCompletion(CompletionT&& value) {
45 m_completionHasBeenSet = true;
46 m_completion = std::forward<CompletionT>(value);
47 }
48 template <typename CompletionT = Aws::String>
50 SetCompletion(std::forward<CompletionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<DataSummary>& GetReferences() const { return m_references; }
60 inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; }
61 template <typename ReferencesT = Aws::Vector<DataSummary>>
62 void SetReferences(ReferencesT&& value) {
63 m_referencesHasBeenSet = true;
64 m_references = std::forward<ReferencesT>(value);
65 }
66 template <typename ReferencesT = Aws::Vector<DataSummary>>
68 SetReferences(std::forward<ReferencesT>(value));
69 return *this;
70 }
71 template <typename ReferencesT = DataSummary>
73 m_referencesHasBeenSet = true;
74 m_references.emplace_back(std::forward<ReferencesT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetNextChunkToken() const { return m_nextChunkToken; }
85 inline bool NextChunkTokenHasBeenSet() const { return m_nextChunkTokenHasBeenSet; }
86 template <typename NextChunkTokenT = Aws::String>
88 m_nextChunkTokenHasBeenSet = true;
89 m_nextChunkToken = std::forward<NextChunkTokenT>(value);
90 }
91 template <typename NextChunkTokenT = Aws::String>
93 SetNextChunkToken(std::forward<NextChunkTokenT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_completion;
99
100 Aws::Vector<DataSummary> m_references;
101
102 Aws::String m_nextChunkToken;
103 bool m_completionHasBeenSet = false;
104 bool m_referencesHasBeenSet = false;
105 bool m_nextChunkTokenHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace QConnect
110} // namespace Aws
GenerativeChunkDataDetails & AddReferences(ReferencesT &&value)
AWS_QCONNECT_API GenerativeChunkDataDetails()=default
AWS_QCONNECT_API GenerativeChunkDataDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QCONNECT_API GenerativeChunkDataDetails(Aws::Utils::Json::JsonView jsonValue)
GenerativeChunkDataDetails & WithReferences(ReferencesT &&value)
const Aws::Vector< DataSummary > & GetReferences() const
GenerativeChunkDataDetails & WithNextChunkToken(NextChunkTokenT &&value)
GenerativeChunkDataDetails & WithCompletion(CompletionT &&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