AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CodeInterpreterInvocationOutput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/Metadata.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API CodeInterpreterInvocationOutput() = default;
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetExecutionError() const { return m_executionError; }
42 inline bool ExecutionErrorHasBeenSet() const { return m_executionErrorHasBeenSet; }
43 template <typename ExecutionErrorT = Aws::String>
45 m_executionErrorHasBeenSet = true;
46 m_executionError = std::forward<ExecutionErrorT>(value);
47 }
48 template <typename ExecutionErrorT = Aws::String>
50 SetExecutionError(std::forward<ExecutionErrorT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetExecutionOutput() const { return m_executionOutput; }
60 inline bool ExecutionOutputHasBeenSet() const { return m_executionOutputHasBeenSet; }
61 template <typename ExecutionOutputT = Aws::String>
63 m_executionOutputHasBeenSet = true;
64 m_executionOutput = std::forward<ExecutionOutputT>(value);
65 }
66 template <typename ExecutionOutputT = Aws::String>
68 SetExecutionOutput(std::forward<ExecutionOutputT>(value));
69 return *this;
70 }
72
74
77 inline bool GetExecutionTimeout() const { return m_executionTimeout; }
78 inline bool ExecutionTimeoutHasBeenSet() const { return m_executionTimeoutHasBeenSet; }
79 inline void SetExecutionTimeout(bool value) {
80 m_executionTimeoutHasBeenSet = true;
81 m_executionTimeout = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Aws::String>& GetFiles() const { return m_files; }
94 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
95 template <typename FilesT = Aws::Vector<Aws::String>>
96 void SetFiles(FilesT&& value) {
97 m_filesHasBeenSet = true;
98 m_files = std::forward<FilesT>(value);
99 }
100 template <typename FilesT = Aws::Vector<Aws::String>>
102 SetFiles(std::forward<FilesT>(value));
103 return *this;
104 }
105 template <typename FilesT = Aws::String>
107 m_filesHasBeenSet = true;
108 m_files.emplace_back(std::forward<FilesT>(value));
109 return *this;
110 }
112
114
117 inline const Metadata& GetMetadata() const { return m_metadata; }
118 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
119 template <typename MetadataT = Metadata>
120 void SetMetadata(MetadataT&& value) {
121 m_metadataHasBeenSet = true;
122 m_metadata = std::forward<MetadataT>(value);
123 }
124 template <typename MetadataT = Metadata>
126 SetMetadata(std::forward<MetadataT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_executionError;
132
133 Aws::String m_executionOutput;
134
135 bool m_executionTimeout{false};
136
138
139 Metadata m_metadata;
140 bool m_executionErrorHasBeenSet = false;
141 bool m_executionOutputHasBeenSet = false;
142 bool m_executionTimeoutHasBeenSet = false;
143 bool m_filesHasBeenSet = false;
144 bool m_metadataHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace BedrockAgentRuntime
149} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API CodeInterpreterInvocationOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
CodeInterpreterInvocationOutput & WithExecutionOutput(ExecutionOutputT &&value)
CodeInterpreterInvocationOutput & WithExecutionError(ExecutionErrorT &&value)
AWS_BEDROCKAGENTRUNTIME_API CodeInterpreterInvocationOutput()=default
AWS_BEDROCKAGENTRUNTIME_API CodeInterpreterInvocationOutput & 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