AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSpan(const Span& value) { m_spanHasBeenSet = true; m_span = value; }
56 inline void SetSpan(Span&& value) { m_spanHasBeenSet = true; m_span = std::move(value); }
57 inline TextResponsePart& WithSpan(const Span& value) { SetSpan(value); return *this;}
58 inline TextResponsePart& WithSpan(Span&& value) { SetSpan(std::move(value)); return *this;}
60
62
65 inline const Aws::String& GetText() const{ return m_text; }
66 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
67 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
68 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
69 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
70 inline TextResponsePart& WithText(const Aws::String& value) { SetText(value); return *this;}
71 inline TextResponsePart& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
72 inline TextResponsePart& WithText(const char* value) { SetText(value); return *this;}
74 private:
75
76 Span m_span;
77 bool m_spanHasBeenSet = false;
78
79 Aws::String m_text;
80 bool m_textHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace BedrockAgentRuntime
85} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API TextResponsePart()
AWS_BEDROCKAGENTRUNTIME_API TextResponsePart(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API TextResponsePart & operator=(Aws::Utils::Json::JsonView jsonValue)
TextResponsePart & WithText(Aws::String &&value)
TextResponsePart & WithText(const char *value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
TextResponsePart & WithText(const Aws::String &value)
TextResponsePart & WithSpan(const Span &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue