AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ToolUseBlockStart.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ToolUseType.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 ToolUseBlockStart() = 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& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline ToolUseType GetType() const { return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(ToolUseType value) {
81 m_typeHasBeenSet = true;
82 m_type = value;
83 }
85 SetType(value);
86 return *this;
87 }
89 private:
90 Aws::String m_toolUseId;
91
92 Aws::String m_name;
93
95 bool m_toolUseIdHasBeenSet = false;
96 bool m_nameHasBeenSet = false;
97 bool m_typeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockRuntime
102} // namespace Aws
ToolUseBlockStart & WithName(NameT &&value)
AWS_BEDROCKRUNTIME_API ToolUseBlockStart(Aws::Utils::Json::JsonView jsonValue)
ToolUseBlockStart & WithToolUseId(ToolUseIdT &&value)
AWS_BEDROCKRUNTIME_API ToolUseBlockStart & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ToolUseBlockStart()=default
ToolUseBlockStart & WithType(ToolUseType value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() 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