AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GeneratedResponsePart.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/TextResponsePart.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgentRuntime {
20namespace Model {
21
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API GeneratedResponsePart() = default;
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const TextResponsePart& GetTextResponsePart() const { return m_textResponsePart; }
48 inline bool TextResponsePartHasBeenSet() const { return m_textResponsePartHasBeenSet; }
49 template <typename TextResponsePartT = TextResponsePart>
51 m_textResponsePartHasBeenSet = true;
52 m_textResponsePart = std::forward<TextResponsePartT>(value);
53 }
54 template <typename TextResponsePartT = TextResponsePart>
56 SetTextResponsePart(std::forward<TextResponsePartT>(value));
57 return *this;
58 }
60 private:
61 TextResponsePart m_textResponsePart;
62 bool m_textResponsePartHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace BedrockAgentRuntime
67} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API GeneratedResponsePart(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API GeneratedResponsePart & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API GeneratedResponsePart()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GeneratedResponsePart & WithTextResponsePart(TextResponsePartT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue