AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ContentBlockDelta.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/model/ToolUseBlockDelta.h>
10#include <aws/bedrock-runtime/model/ReasoningContentBlockDelta.h>
11#include <aws/bedrock-runtime/model/CitationsDelta.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockRuntime
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_BEDROCKRUNTIME_API ContentBlockDelta() = default;
38 AWS_BEDROCKRUNTIME_API ContentBlockDelta(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKRUNTIME_API ContentBlockDelta& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetText() const { return m_text; }
48 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
49 template<typename TextT = Aws::String>
50 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
51 template<typename TextT = Aws::String>
52 ContentBlockDelta& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
54
56
59 inline const ToolUseBlockDelta& GetToolUse() const { return m_toolUse; }
60 inline bool ToolUseHasBeenSet() const { return m_toolUseHasBeenSet; }
61 template<typename ToolUseT = ToolUseBlockDelta>
62 void SetToolUse(ToolUseT&& value) { m_toolUseHasBeenSet = true; m_toolUse = std::forward<ToolUseT>(value); }
63 template<typename ToolUseT = ToolUseBlockDelta>
64 ContentBlockDelta& WithToolUse(ToolUseT&& value) { SetToolUse(std::forward<ToolUseT>(value)); return *this;}
66
68
73 inline const ReasoningContentBlockDelta& GetReasoningContent() const { return m_reasoningContent; }
74 inline bool ReasoningContentHasBeenSet() const { return m_reasoningContentHasBeenSet; }
75 template<typename ReasoningContentT = ReasoningContentBlockDelta>
76 void SetReasoningContent(ReasoningContentT&& value) { m_reasoningContentHasBeenSet = true; m_reasoningContent = std::forward<ReasoningContentT>(value); }
77 template<typename ReasoningContentT = ReasoningContentBlockDelta>
78 ContentBlockDelta& WithReasoningContent(ReasoningContentT&& value) { SetReasoningContent(std::forward<ReasoningContentT>(value)); return *this;}
80
82
86 inline const CitationsDelta& GetCitation() const { return m_citation; }
87 inline bool CitationHasBeenSet() const { return m_citationHasBeenSet; }
88 template<typename CitationT = CitationsDelta>
89 void SetCitation(CitationT&& value) { m_citationHasBeenSet = true; m_citation = std::forward<CitationT>(value); }
90 template<typename CitationT = CitationsDelta>
91 ContentBlockDelta& WithCitation(CitationT&& value) { SetCitation(std::forward<CitationT>(value)); return *this;}
93 private:
94
95 Aws::String m_text;
96 bool m_textHasBeenSet = false;
97
98 ToolUseBlockDelta m_toolUse;
99 bool m_toolUseHasBeenSet = false;
100
101 ReasoningContentBlockDelta m_reasoningContent;
102 bool m_reasoningContentHasBeenSet = false;
103
104 CitationsDelta m_citation;
105 bool m_citationHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace BedrockRuntime
110} // namespace Aws
ContentBlockDelta & WithReasoningContent(ReasoningContentT &&value)
ContentBlockDelta & WithCitation(CitationT &&value)
ContentBlockDelta & WithToolUse(ToolUseT &&value)
AWS_BEDROCKRUNTIME_API ContentBlockDelta & operator=(Aws::Utils::Json::JsonView jsonValue)
const ReasoningContentBlockDelta & GetReasoningContent() const
AWS_BEDROCKRUNTIME_API ContentBlockDelta()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ContentBlockDelta & WithText(TextT &&value)
void SetReasoningContent(ReasoningContentT &&value)
AWS_BEDROCKRUNTIME_API ContentBlockDelta(Aws::Utils::Json::JsonView jsonValue)
const ToolUseBlockDelta & GetToolUse() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue