AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API FlowExecutionError() = default;
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline FlowExecutionErrorType GetError() const { return m_error; }
42 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
43 inline void SetError(FlowExecutionErrorType value) {
44 m_errorHasBeenSet = true;
45 m_error = value;
46 }
48 SetError(value);
49 return *this;
50 }
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) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetNodeName() const { return m_nodeName; }
77 inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
78 template <typename NodeNameT = Aws::String>
79 void SetNodeName(NodeNameT&& value) {
80 m_nodeNameHasBeenSet = true;
81 m_nodeName = std::forward<NodeNameT>(value);
82 }
83 template <typename NodeNameT = Aws::String>
85 SetNodeName(std::forward<NodeNameT>(value));
86 return *this;
87 }
89 private:
91
92 Aws::String m_message;
93
94 Aws::String m_nodeName;
95 bool m_errorHasBeenSet = false;
96 bool m_messageHasBeenSet = false;
97 bool m_nodeNameHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockAgentRuntime
102} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue