AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API TextResponsePart() = default;
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Span& GetSpan() const { return m_span; }
48 inline bool SpanHasBeenSet() const { return m_spanHasBeenSet; }
49 template <typename SpanT = Span>
50 void SetSpan(SpanT&& value) {
51 m_spanHasBeenSet = true;
52 m_span = std::forward<SpanT>(value);
53 }
54 template <typename SpanT = Span>
56 SetSpan(std::forward<SpanT>(value));
57 return *this;
58 }
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) {
69 m_textHasBeenSet = true;
70 m_text = std::forward<TextT>(value);
71 }
72 template <typename TextT = Aws::String>
74 SetText(std::forward<TextT>(value));
75 return *this;
76 }
78 private:
79 Span m_span;
80
81 Aws::String m_text;
82 bool m_spanHasBeenSet = false;
83 bool m_textHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace BedrockAgentRuntime
88} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue