AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FlowExecutionError.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/FlowExecutionErrorType.h>
9#include <aws/core/utils/memory/stl/AWSString.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
35 {
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API FlowExecutionError() = default;
38 AWS_BEDROCKAGENTRUNTIME_API FlowExecutionError(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API FlowExecutionError& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline FlowExecutionErrorType GetError() const { return m_error; }
48 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
49 inline void SetError(FlowExecutionErrorType value) { m_errorHasBeenSet = true; m_error = value; }
50 inline FlowExecutionError& WithError(FlowExecutionErrorType value) { SetError(value); return *this;}
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template<typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
61 template<typename MessageT = Aws::String>
62 FlowExecutionError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
64
66
70 inline const Aws::String& GetNodeName() const { return m_nodeName; }
71 inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
72 template<typename NodeNameT = Aws::String>
73 void SetNodeName(NodeNameT&& value) { m_nodeNameHasBeenSet = true; m_nodeName = std::forward<NodeNameT>(value); }
74 template<typename NodeNameT = Aws::String>
75 FlowExecutionError& WithNodeName(NodeNameT&& value) { SetNodeName(std::forward<NodeNameT>(value)); return *this;}
77 private:
78
80 bool m_errorHasBeenSet = false;
81
82 Aws::String m_message;
83 bool m_messageHasBeenSet = false;
84
85 Aws::String m_nodeName;
86 bool m_nodeNameHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace BedrockAgentRuntime
91} // namespace Aws
FlowExecutionError & WithMessage(MessageT &&value)
FlowExecutionError & WithError(FlowExecutionErrorType value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API FlowExecutionError()=default
AWS_BEDROCKAGENTRUNTIME_API FlowExecutionError(Aws::Utils::Json::JsonView jsonValue)
FlowExecutionError & WithNodeName(NodeNameT &&value)
AWS_BEDROCKAGENTRUNTIME_API FlowExecutionError & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue