AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
ToolResultBlockStart.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ToolResultStatus.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 BedrockRuntime {
21namespace Model {
22
32 public:
33 AWS_BEDROCKRUNTIME_API ToolResultBlockStart() = default;
36 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetToolUseId() const { return m_toolUseId; }
43 inline bool ToolUseIdHasBeenSet() const { return m_toolUseIdHasBeenSet; }
44 template <typename ToolUseIdT = Aws::String>
45 void SetToolUseId(ToolUseIdT&& value) {
46 m_toolUseIdHasBeenSet = true;
47 m_toolUseId = std::forward<ToolUseIdT>(value);
48 }
49 template <typename ToolUseIdT = Aws::String>
51 SetToolUseId(std::forward<ToolUseIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template <typename TypeT = Aws::String>
63 void SetType(TypeT&& value) {
64 m_typeHasBeenSet = true;
65 m_type = std::forward<TypeT>(value);
66 }
67 template <typename TypeT = Aws::String>
69 SetType(std::forward<TypeT>(value));
70 return *this;
71 }
73
75
78 inline ToolResultStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(ToolResultStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89 private:
90 Aws::String m_toolUseId;
91
92 Aws::String m_type;
93
95 bool m_toolUseIdHasBeenSet = false;
96 bool m_typeHasBeenSet = false;
97 bool m_statusHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockRuntime
102} // namespace Aws
ToolResultBlockStart & WithToolUseId(ToolUseIdT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API ToolResultBlockStart()=default
AWS_BEDROCKRUNTIME_API ToolResultBlockStart & operator=(Aws::Utils::Json::JsonView jsonValue)
ToolResultBlockStart & WithStatus(ToolResultStatus value)
AWS_BEDROCKRUNTIME_API ToolResultBlockStart(Aws::Utils::Json::JsonView jsonValue)
ToolResultBlockStart & WithType(TypeT &&value)
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