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>
20namespace BedrockAgentRuntime {
49 template <
typename SpanT = Span>
51 m_spanHasBeenSet =
true;
52 m_span = std::forward<SpanT>(value);
54 template <
typename SpanT = Span>
56 SetSpan(std::forward<SpanT>(value));
67 template <
typename TextT = Aws::String>
69 m_textHasBeenSet =
true;
70 m_text = std::forward<TextT>(value);
72 template <
typename TextT = Aws::String>
74 SetText(std::forward<TextT>(value));
82 bool m_spanHasBeenSet =
false;
83 bool m_textHasBeenSet =
false;
TextResponsePart & WithText(TextT &&value)
TextResponsePart & WithSpan(SpanT &&value)
void SetSpan(SpanT &&value)
AWS_BEDROCKAGENTRUNTIME_API TextResponsePart(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API TextResponsePart()=default
const Span & GetSpan() const
AWS_BEDROCKAGENTRUNTIME_API TextResponsePart & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SpanHasBeenSet() const
void SetText(TextT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetText() const
bool TextHasBeenSet() 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