AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NodeFailureEvent.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/NodeErrorCode.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 NodeFailureEvent() = default;
39 AWS_BEDROCKAGENTRUNTIME_API NodeFailureEvent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API NodeFailureEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline NodeErrorCode GetErrorCode() const { return m_errorCode; }
50 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
51 inline void SetErrorCode(NodeErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
52 inline NodeFailureEvent& WithErrorCode(NodeErrorCode value) { SetErrorCode(value); return *this;}
54
56
59 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
60 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
61 template<typename ErrorMessageT = Aws::String>
62 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
63 template<typename ErrorMessageT = Aws::String>
64 NodeFailureEvent& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
66
68
71 inline const Aws::String& GetNodeName() const { return m_nodeName; }
72 inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
73 template<typename NodeNameT = Aws::String>
74 void SetNodeName(NodeNameT&& value) { m_nodeNameHasBeenSet = true; m_nodeName = std::forward<NodeNameT>(value); }
75 template<typename NodeNameT = Aws::String>
76 NodeFailureEvent& WithNodeName(NodeNameT&& value) { SetNodeName(std::forward<NodeNameT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
84 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
85 template<typename TimestampT = Aws::Utils::DateTime>
86 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
87 template<typename TimestampT = Aws::Utils::DateTime>
88 NodeFailureEvent& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
90 private:
91
93 bool m_errorCodeHasBeenSet = false;
94
95 Aws::String m_errorMessage;
96 bool m_errorMessageHasBeenSet = false;
97
98 Aws::String m_nodeName;
99 bool m_nodeNameHasBeenSet = false;
100
101 Aws::Utils::DateTime m_timestamp{};
102 bool m_timestampHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace BedrockAgentRuntime
107} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API NodeFailureEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
NodeFailureEvent & WithErrorCode(NodeErrorCode value)
NodeFailureEvent & WithErrorMessage(ErrorMessageT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
NodeFailureEvent & WithTimestamp(TimestampT &&value)
NodeFailureEvent & WithNodeName(NodeNameT &&value)
AWS_BEDROCKAGENTRUNTIME_API NodeFailureEvent()=default
AWS_BEDROCKAGENTRUNTIME_API NodeFailureEvent(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue