AWS SDK for C++

AWS SDK for C++ Version 1.11.861

Loading...
Searching...
No Matches
ToolReference.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockRuntime {
20namespace Model {
21
30 public:
31 AWS_BEDROCKRUNTIME_API ToolReference() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 template <typename TypeT = Aws::String>
43 void SetType(TypeT&& value) {
44 m_typeHasBeenSet = true;
45 m_type = std::forward<TypeT>(value);
46 }
47 template <typename TypeT = Aws::String>
49 SetType(std::forward<TypeT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetServerName() const { return m_serverName; }
79 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
80 template <typename ServerNameT = Aws::String>
81 void SetServerName(ServerNameT&& value) {
82 m_serverNameHasBeenSet = true;
83 m_serverName = std::forward<ServerNameT>(value);
84 }
85 template <typename ServerNameT = Aws::String>
87 SetServerName(std::forward<ServerNameT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_type;
93
94 Aws::String m_name;
95
96 Aws::String m_serverName;
97 bool m_typeHasBeenSet = false;
98 bool m_nameHasBeenSet = false;
99 bool m_serverNameHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace BedrockRuntime
104} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetServerName(ServerNameT &&value)
ToolReference & WithServerName(ServerNameT &&value)
ToolReference & WithName(NameT &&value)
AWS_BEDROCKRUNTIME_API ToolReference()=default
const Aws::String & GetName() const
const Aws::String & GetType() const
AWS_BEDROCKRUNTIME_API ToolReference(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ToolReference & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetServerName() const
ToolReference & 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