AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API CodeInterpreterInvocationOutput();
37 AWS_BEDROCKAGENTRUNTIME_API CodeInterpreterInvocationOutput(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetExecutionError() const{ return m_executionError; }
47 inline bool ExecutionErrorHasBeenSet() const { return m_executionErrorHasBeenSet; }
48 inline void SetExecutionError(const Aws::String& value) { m_executionErrorHasBeenSet = true; m_executionError = value; }
49 inline void SetExecutionError(Aws::String&& value) { m_executionErrorHasBeenSet = true; m_executionError = std::move(value); }
50 inline void SetExecutionError(const char* value) { m_executionErrorHasBeenSet = true; m_executionError.assign(value); }
52 inline CodeInterpreterInvocationOutput& WithExecutionError(Aws::String&& value) { SetExecutionError(std::move(value)); return *this;}
53 inline CodeInterpreterInvocationOutput& WithExecutionError(const char* value) { SetExecutionError(value); return *this;}
55
57
60 inline const Aws::String& GetExecutionOutput() const{ return m_executionOutput; }
61 inline bool ExecutionOutputHasBeenSet() const { return m_executionOutputHasBeenSet; }
62 inline void SetExecutionOutput(const Aws::String& value) { m_executionOutputHasBeenSet = true; m_executionOutput = value; }
63 inline void SetExecutionOutput(Aws::String&& value) { m_executionOutputHasBeenSet = true; m_executionOutput = std::move(value); }
64 inline void SetExecutionOutput(const char* value) { m_executionOutputHasBeenSet = true; m_executionOutput.assign(value); }
66 inline CodeInterpreterInvocationOutput& WithExecutionOutput(Aws::String&& value) { SetExecutionOutput(std::move(value)); return *this;}
67 inline CodeInterpreterInvocationOutput& WithExecutionOutput(const char* value) { SetExecutionOutput(value); return *this;}
69
71
74 inline bool GetExecutionTimeout() const{ return m_executionTimeout; }
75 inline bool ExecutionTimeoutHasBeenSet() const { return m_executionTimeoutHasBeenSet; }
76 inline void SetExecutionTimeout(bool value) { m_executionTimeoutHasBeenSet = true; m_executionTimeout = value; }
79
81
84 inline const Aws::Vector<Aws::String>& GetFiles() const{ return m_files; }
85 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
86 inline void SetFiles(const Aws::Vector<Aws::String>& value) { m_filesHasBeenSet = true; m_files = value; }
87 inline void SetFiles(Aws::Vector<Aws::String>&& value) { m_filesHasBeenSet = true; m_files = std::move(value); }
88 inline CodeInterpreterInvocationOutput& WithFiles(const Aws::Vector<Aws::String>& value) { SetFiles(value); return *this;}
89 inline CodeInterpreterInvocationOutput& WithFiles(Aws::Vector<Aws::String>&& value) { SetFiles(std::move(value)); return *this;}
90 inline CodeInterpreterInvocationOutput& AddFiles(const Aws::String& value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; }
91 inline CodeInterpreterInvocationOutput& AddFiles(Aws::String&& value) { m_filesHasBeenSet = true; m_files.push_back(std::move(value)); return *this; }
92 inline CodeInterpreterInvocationOutput& AddFiles(const char* value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; }
94 private:
95
96 Aws::String m_executionError;
97 bool m_executionErrorHasBeenSet = false;
98
99 Aws::String m_executionOutput;
100 bool m_executionOutputHasBeenSet = false;
101
102 bool m_executionTimeout;
103 bool m_executionTimeoutHasBeenSet = false;
104
106 bool m_filesHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace BedrockAgentRuntime
111} // namespace Aws
CodeInterpreterInvocationOutput & WithExecutionError(Aws::String &&value)
CodeInterpreterInvocationOutput & WithExecutionError(const char *value)
CodeInterpreterInvocationOutput & AddFiles(Aws::String &&value)
CodeInterpreterInvocationOutput & AddFiles(const Aws::String &value)
CodeInterpreterInvocationOutput & WithExecutionOutput(Aws::String &&value)
CodeInterpreterInvocationOutput & WithExecutionOutput(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API CodeInterpreterInvocationOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
CodeInterpreterInvocationOutput & WithExecutionError(const Aws::String &value)
CodeInterpreterInvocationOutput & WithFiles(const Aws::Vector< Aws::String > &value)
CodeInterpreterInvocationOutput & WithFiles(Aws::Vector< Aws::String > &&value)
CodeInterpreterInvocationOutput & WithExecutionOutput(const char *value)
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