AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GenerativeChunkDataDetails.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/model/DataSummary.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QConnect
24{
25namespace Model
26{
27 class DataSummary;
28
35 {
36 public:
37 AWS_QCONNECT_API GenerativeChunkDataDetails() = default;
40 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCompletion() const { return m_completion; }
48 inline bool CompletionHasBeenSet() const { return m_completionHasBeenSet; }
49 template<typename CompletionT = Aws::String>
50 void SetCompletion(CompletionT&& value) { m_completionHasBeenSet = true; m_completion = std::forward<CompletionT>(value); }
51 template<typename CompletionT = Aws::String>
52 GenerativeChunkDataDetails& WithCompletion(CompletionT&& value) { SetCompletion(std::forward<CompletionT>(value)); return *this;}
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) { m_referencesHasBeenSet = true; m_references = std::forward<ReferencesT>(value); }
63 template<typename ReferencesT = Aws::Vector<DataSummary>>
64 GenerativeChunkDataDetails& WithReferences(ReferencesT&& value) { SetReferences(std::forward<ReferencesT>(value)); return *this;}
65 template<typename ReferencesT = DataSummary>
66 GenerativeChunkDataDetails& AddReferences(ReferencesT&& value) { m_referencesHasBeenSet = true; m_references.emplace_back(std::forward<ReferencesT>(value)); return *this; }
68
70
74 inline const Aws::String& GetNextChunkToken() const { return m_nextChunkToken; }
75 inline bool NextChunkTokenHasBeenSet() const { return m_nextChunkTokenHasBeenSet; }
76 template<typename NextChunkTokenT = Aws::String>
77 void SetNextChunkToken(NextChunkTokenT&& value) { m_nextChunkTokenHasBeenSet = true; m_nextChunkToken = std::forward<NextChunkTokenT>(value); }
78 template<typename NextChunkTokenT = Aws::String>
79 GenerativeChunkDataDetails& WithNextChunkToken(NextChunkTokenT&& value) { SetNextChunkToken(std::forward<NextChunkTokenT>(value)); return *this;}
81 private:
82
83 Aws::String m_completion;
84 bool m_completionHasBeenSet = false;
85
86 Aws::Vector<DataSummary> m_references;
87 bool m_referencesHasBeenSet = false;
88
89 Aws::String m_nextChunkToken;
90 bool m_nextChunkTokenHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace QConnect
95} // 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