AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CitationsContentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-runtime/model/CitationGeneratedContent.h>
10#include <aws/bedrock-runtime/model/Citation.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 BedrockRuntime
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_BEDROCKRUNTIME_API CitationsContentBlock() = default;
40 AWS_BEDROCKRUNTIME_API CitationsContentBlock(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<CitationGeneratedContent>& GetContent() const { return m_content; }
50 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
51 template<typename ContentT = Aws::Vector<CitationGeneratedContent>>
52 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
53 template<typename ContentT = Aws::Vector<CitationGeneratedContent>>
54 CitationsContentBlock& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
55 template<typename ContentT = CitationGeneratedContent>
56 CitationsContentBlock& AddContent(ContentT&& value) { m_contentHasBeenSet = true; m_content.emplace_back(std::forward<ContentT>(value)); return *this; }
58
60
64 inline const Aws::Vector<Citation>& GetCitations() const { return m_citations; }
65 inline bool CitationsHasBeenSet() const { return m_citationsHasBeenSet; }
66 template<typename CitationsT = Aws::Vector<Citation>>
67 void SetCitations(CitationsT&& value) { m_citationsHasBeenSet = true; m_citations = std::forward<CitationsT>(value); }
68 template<typename CitationsT = Aws::Vector<Citation>>
69 CitationsContentBlock& WithCitations(CitationsT&& value) { SetCitations(std::forward<CitationsT>(value)); return *this;}
70 template<typename CitationsT = Citation>
71 CitationsContentBlock& AddCitations(CitationsT&& value) { m_citationsHasBeenSet = true; m_citations.emplace_back(std::forward<CitationsT>(value)); return *this; }
73 private:
74
76 bool m_contentHasBeenSet = false;
77
78 Aws::Vector<Citation> m_citations;
79 bool m_citationsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace BedrockRuntime
84} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue