AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
FlowFailureEvent.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/FlowErrorCode.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.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
32 public:
33 AWS_BEDROCKAGENTRUNTIME_API FlowFailureEvent() = default;
36 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline FlowErrorCode GetErrorCode() const { return m_errorCode; }
43 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
44 inline void SetErrorCode(FlowErrorCode value) {
45 m_errorCodeHasBeenSet = true;
46 m_errorCode = value;
47 }
49 SetErrorCode(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
59 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
60 template <typename ErrorMessageT = Aws::String>
62 m_errorMessageHasBeenSet = true;
63 m_errorMessage = std::forward<ErrorMessageT>(value);
64 }
65 template <typename ErrorMessageT = Aws::String>
67 SetErrorMessage(std::forward<ErrorMessageT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
77 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
78 template <typename TimestampT = Aws::Utils::DateTime>
79 void SetTimestamp(TimestampT&& value) {
80 m_timestampHasBeenSet = true;
81 m_timestamp = std::forward<TimestampT>(value);
82 }
83 template <typename TimestampT = Aws::Utils::DateTime>
85 SetTimestamp(std::forward<TimestampT>(value));
86 return *this;
87 }
89 private:
91
92 Aws::String m_errorMessage;
93
94 Aws::Utils::DateTime m_timestamp{};
95 bool m_errorCodeHasBeenSet = false;
96 bool m_errorMessageHasBeenSet = false;
97 bool m_timestampHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockAgentRuntime
102} // namespace Aws
const Aws::Utils::DateTime & GetTimestamp() const
FlowFailureEvent & WithErrorCode(FlowErrorCode value)
FlowFailureEvent & WithErrorMessage(ErrorMessageT &&value)
FlowFailureEvent & WithTimestamp(TimestampT &&value)
AWS_BEDROCKAGENTRUNTIME_API FlowFailureEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API FlowFailureEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API FlowFailureEvent()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
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