AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TextResponsePart.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/Span.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_BEDROCKAGENTRUNTIME_API TextResponsePart() = default;
43 AWS_BEDROCKAGENTRUNTIME_API TextResponsePart(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENTRUNTIME_API TextResponsePart& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Span& GetSpan() const { return m_span; }
54 inline bool SpanHasBeenSet() const { return m_spanHasBeenSet; }
55 template<typename SpanT = Span>
56 void SetSpan(SpanT&& value) { m_spanHasBeenSet = true; m_span = std::forward<SpanT>(value); }
57 template<typename SpanT = Span>
58 TextResponsePart& WithSpan(SpanT&& value) { SetSpan(std::forward<SpanT>(value)); return *this;}
60
62
65 inline const Aws::String& GetText() const { return m_text; }
66 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
67 template<typename TextT = Aws::String>
68 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
69 template<typename TextT = Aws::String>
70 TextResponsePart& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
72 private:
73
74 Span m_span;
75 bool m_spanHasBeenSet = false;
76
77 Aws::String m_text;
78 bool m_textHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace BedrockAgentRuntime
83} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API TextResponsePart(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API TextResponsePart()=default
AWS_BEDROCKAGENTRUNTIME_API TextResponsePart & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue