AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SpanToolResultValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/SpanMessageValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QConnect {
22namespace Model {
23class SpanMessageValue;
24
31 public:
32 AWS_QCONNECT_API SpanToolResultValue() = default;
35 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetToolUseId() const { return m_toolUseId; }
42 inline bool ToolUseIdHasBeenSet() const { return m_toolUseIdHasBeenSet; }
43 template <typename ToolUseIdT = Aws::String>
44 void SetToolUseId(ToolUseIdT&& value) {
45 m_toolUseIdHasBeenSet = true;
46 m_toolUseId = std::forward<ToolUseIdT>(value);
47 }
48 template <typename ToolUseIdT = Aws::String>
50 SetToolUseId(std::forward<ToolUseIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<SpanMessageValue>& GetValues() const { return m_values; }
60 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
61 template <typename ValuesT = Aws::Vector<SpanMessageValue>>
62 void SetValues(ValuesT&& value) {
63 m_valuesHasBeenSet = true;
64 m_values = std::forward<ValuesT>(value);
65 }
66 template <typename ValuesT = Aws::Vector<SpanMessageValue>>
68 SetValues(std::forward<ValuesT>(value));
69 return *this;
70 }
71 template <typename ValuesT = SpanMessageValue>
73 m_valuesHasBeenSet = true;
74 m_values.emplace_back(std::forward<ValuesT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetError() const { return m_error; }
84 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
85 template <typename ErrorT = Aws::String>
86 void SetError(ErrorT&& value) {
87 m_errorHasBeenSet = true;
88 m_error = std::forward<ErrorT>(value);
89 }
90 template <typename ErrorT = Aws::String>
92 SetError(std::forward<ErrorT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_toolUseId;
98
100
101 Aws::String m_error;
102 bool m_toolUseIdHasBeenSet = false;
103 bool m_valuesHasBeenSet = false;
104 bool m_errorHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace QConnect
109} // namespace Aws
SpanToolResultValue & WithValues(ValuesT &&value)
AWS_QCONNECT_API SpanToolResultValue()=default
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SpanToolResultValue & AddValues(ValuesT &&value)
SpanToolResultValue & WithToolUseId(ToolUseIdT &&value)
const Aws::Vector< SpanMessageValue > & GetValues() const
AWS_QCONNECT_API SpanToolResultValue(Aws::Utils::Json::JsonView jsonValue)
SpanToolResultValue & WithError(ErrorT &&value)
AWS_QCONNECT_API SpanToolResultValue & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue