AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CodeInterpreterInvocationOutput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock-agent-runtime/model/Metadata.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API CodeInterpreterInvocationOutput() = default;
38 AWS_BEDROCKAGENTRUNTIME_API CodeInterpreterInvocationOutput(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetExecutionError() const { return m_executionError; }
48 inline bool ExecutionErrorHasBeenSet() const { return m_executionErrorHasBeenSet; }
49 template<typename ExecutionErrorT = Aws::String>
50 void SetExecutionError(ExecutionErrorT&& value) { m_executionErrorHasBeenSet = true; m_executionError = std::forward<ExecutionErrorT>(value); }
51 template<typename ExecutionErrorT = Aws::String>
52 CodeInterpreterInvocationOutput& WithExecutionError(ExecutionErrorT&& value) { SetExecutionError(std::forward<ExecutionErrorT>(value)); return *this;}
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>
62 void SetExecutionOutput(ExecutionOutputT&& value) { m_executionOutputHasBeenSet = true; m_executionOutput = std::forward<ExecutionOutputT>(value); }
63 template<typename ExecutionOutputT = Aws::String>
64 CodeInterpreterInvocationOutput& WithExecutionOutput(ExecutionOutputT&& value) { SetExecutionOutput(std::forward<ExecutionOutputT>(value)); return *this;}
66
68
71 inline bool GetExecutionTimeout() const { return m_executionTimeout; }
72 inline bool ExecutionTimeoutHasBeenSet() const { return m_executionTimeoutHasBeenSet; }
73 inline void SetExecutionTimeout(bool value) { m_executionTimeoutHasBeenSet = true; m_executionTimeout = value; }
76
78
81 inline const Aws::Vector<Aws::String>& GetFiles() const { return m_files; }
82 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
83 template<typename FilesT = Aws::Vector<Aws::String>>
84 void SetFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files = std::forward<FilesT>(value); }
85 template<typename FilesT = Aws::Vector<Aws::String>>
86 CodeInterpreterInvocationOutput& WithFiles(FilesT&& value) { SetFiles(std::forward<FilesT>(value)); return *this;}
87 template<typename FilesT = Aws::String>
88 CodeInterpreterInvocationOutput& AddFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files.emplace_back(std::forward<FilesT>(value)); return *this; }
90
92
95 inline const Metadata& GetMetadata() const { return m_metadata; }
96 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
97 template<typename MetadataT = Metadata>
98 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
99 template<typename MetadataT = Metadata>
100 CodeInterpreterInvocationOutput& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
102 private:
103
104 Aws::String m_executionError;
105 bool m_executionErrorHasBeenSet = false;
106
107 Aws::String m_executionOutput;
108 bool m_executionOutputHasBeenSet = false;
109
110 bool m_executionTimeout{false};
111 bool m_executionTimeoutHasBeenSet = false;
112
114 bool m_filesHasBeenSet = false;
115
116 Metadata m_metadata;
117 bool m_metadataHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace BedrockAgentRuntime
122} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue