AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
HarnessTool.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/HarnessToolConfiguration.h>
9#include <aws/bedrock-agentcore/model/HarnessToolType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentCore {
22namespace Model {
23
30 public:
31 AWS_BEDROCKAGENTCORE_API HarnessTool() = default;
32 AWS_BEDROCKAGENTCORE_API HarnessTool(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API HarnessTool& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline HarnessToolType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(HarnessToolType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 HarnessTool& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const HarnessToolConfiguration& GetConfig() const { return m_config; }
76 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
77 template <typename ConfigT = HarnessToolConfiguration>
78 void SetConfig(ConfigT&& value) {
79 m_configHasBeenSet = true;
80 m_config = std::forward<ConfigT>(value);
81 }
82 template <typename ConfigT = HarnessToolConfiguration>
83 HarnessTool& WithConfig(ConfigT&& value) {
84 SetConfig(std::forward<ConfigT>(value));
85 return *this;
86 }
88 private:
90
91 Aws::String m_name;
92
93 HarnessToolConfiguration m_config;
94 bool m_typeHasBeenSet = false;
95 bool m_nameHasBeenSet = false;
96 bool m_configHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace BedrockAgentCore
101} // namespace Aws
AWS_BEDROCKAGENTCORE_API HarnessTool & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
HarnessTool & WithType(HarnessToolType value)
Definition HarnessTool.h:46
AWS_BEDROCKAGENTCORE_API HarnessTool(Aws::Utils::Json::JsonView jsonValue)
HarnessTool & WithName(NameT &&value)
Definition HarnessTool.h:65
const HarnessToolConfiguration & GetConfig() const
Definition HarnessTool.h:75
void SetType(HarnessToolType value)
Definition HarnessTool.h:42
HarnessTool & WithConfig(ConfigT &&value)
Definition HarnessTool.h:83
const Aws::String & GetName() const
Definition HarnessTool.h:57
AWS_BEDROCKAGENTCORE_API HarnessTool()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue