AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.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
36 {
37 public:
38 AWS_BEDROCKAGENTRUNTIME_API FlowFailureEvent() = default;
39 AWS_BEDROCKAGENTRUNTIME_API FlowFailureEvent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API FlowFailureEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline FlowErrorCode GetErrorCode() const { return m_errorCode; }
49 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
50 inline void SetErrorCode(FlowErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
51 inline FlowFailureEvent& WithErrorCode(FlowErrorCode value) { SetErrorCode(value); return *this;}
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>
61 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
62 template<typename ErrorMessageT = Aws::String>
63 FlowFailureEvent& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
71 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
72 template<typename TimestampT = Aws::Utils::DateTime>
73 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
74 template<typename TimestampT = Aws::Utils::DateTime>
75 FlowFailureEvent& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
77 private:
78
80 bool m_errorCodeHasBeenSet = false;
81
82 Aws::String m_errorMessage;
83 bool m_errorMessageHasBeenSet = false;
84
85 Aws::Utils::DateTime m_timestamp{};
86 bool m_timestampHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace BedrockAgentRuntime
91} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue