AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CitationsContentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/Citation.h>
9#include <aws/bedrock-runtime/model/CitationGeneratedContent.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime {
22namespace Model {
23
33 public:
34 AWS_BEDROCKRUNTIME_API CitationsContentBlock() = default;
37 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<CitationGeneratedContent>& GetContent() const { return m_content; }
44 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
45 template <typename ContentT = Aws::Vector<CitationGeneratedContent>>
46 void SetContent(ContentT&& value) {
47 m_contentHasBeenSet = true;
48 m_content = std::forward<ContentT>(value);
49 }
50 template <typename ContentT = Aws::Vector<CitationGeneratedContent>>
52 SetContent(std::forward<ContentT>(value));
53 return *this;
54 }
55 template <typename ContentT = CitationGeneratedContent>
57 m_contentHasBeenSet = true;
58 m_content.emplace_back(std::forward<ContentT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Vector<Citation>& GetCitations() const { return m_citations; }
69 inline bool CitationsHasBeenSet() const { return m_citationsHasBeenSet; }
70 template <typename CitationsT = Aws::Vector<Citation>>
71 void SetCitations(CitationsT&& value) {
72 m_citationsHasBeenSet = true;
73 m_citations = std::forward<CitationsT>(value);
74 }
75 template <typename CitationsT = Aws::Vector<Citation>>
77 SetCitations(std::forward<CitationsT>(value));
78 return *this;
79 }
80 template <typename CitationsT = Citation>
82 m_citationsHasBeenSet = true;
83 m_citations.emplace_back(std::forward<CitationsT>(value));
84 return *this;
85 }
87 private:
89
90 Aws::Vector<Citation> m_citations;
91 bool m_contentHasBeenSet = false;
92 bool m_citationsHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace BedrockRuntime
97} // namespace Aws
CitationsContentBlock & WithContent(ContentT &&value)
AWS_BEDROCKRUNTIME_API CitationsContentBlock(Aws::Utils::Json::JsonView jsonValue)
CitationsContentBlock & WithCitations(CitationsT &&value)
const Aws::Vector< Citation > & GetCitations() const
CitationsContentBlock & AddContent(ContentT &&value)
const Aws::Vector< CitationGeneratedContent > & GetContent() const
AWS_BEDROCKRUNTIME_API CitationsContentBlock()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
CitationsContentBlock & AddCitations(CitationsT &&value)
AWS_BEDROCKRUNTIME_API CitationsContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue