AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
AssistantMessageBlock.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsAgent {
21namespace Model {
22
29 public:
30 AWS_DEVOPSAGENT_API AssistantMessageBlock() = default;
31 AWS_DEVOPSAGENT_API AssistantMessageBlock(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetText() const { return m_text; }
40 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
41 template <typename TextT = Aws::String>
42 void SetText(TextT&& value) {
43 m_textHasBeenSet = true;
44 m_text = std::forward<TextT>(value);
45 }
46 template <typename TextT = Aws::String>
48 SetText(std::forward<TextT>(value));
49 return *this;
50 }
52
54
57 inline Aws::Utils::DocumentView GetToolUse() const { return m_toolUse; }
58 inline bool ToolUseHasBeenSet() const { return m_toolUseHasBeenSet; }
59 template <typename ToolUseT = Aws::Utils::Document>
60 void SetToolUse(ToolUseT&& value) {
61 m_toolUseHasBeenSet = true;
62 m_toolUse = std::forward<ToolUseT>(value);
63 }
64 template <typename ToolUseT = Aws::Utils::Document>
66 SetToolUse(std::forward<ToolUseT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_text;
72
73 Aws::Utils::Document m_toolUse;
74 bool m_textHasBeenSet = false;
75 bool m_toolUseHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DevOpsAgent
80} // namespace Aws
AssistantMessageBlock & WithToolUse(ToolUseT &&value)
AWS_DEVOPSAGENT_API AssistantMessageBlock()=default
AssistantMessageBlock & WithText(TextT &&value)
AWS_DEVOPSAGENT_API AssistantMessageBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API AssistantMessageBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue