AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
EventDetailsErrorItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/health/Health_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Health {
20namespace Model {
21
30 public:
31 AWS_HEALTH_API EventDetailsErrorItem() = default;
34 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
45 inline const Aws::String& GetEventArn() const { return m_eventArn; }
46 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
47 template <typename EventArnT = Aws::String>
48 void SetEventArn(EventArnT&& value) {
49 m_eventArnHasBeenSet = true;
50 m_eventArn = std::forward<EventArnT>(value);
51 }
52 template <typename EventArnT = Aws::String>
53 EventDetailsErrorItem& WithEventArn(EventArnT&& value) {
54 SetEventArn(std::forward<EventArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetErrorName() const { return m_errorName; }
64 inline bool ErrorNameHasBeenSet() const { return m_errorNameHasBeenSet; }
65 template <typename ErrorNameT = Aws::String>
66 void SetErrorName(ErrorNameT&& value) {
67 m_errorNameHasBeenSet = true;
68 m_errorName = std::forward<ErrorNameT>(value);
69 }
70 template <typename ErrorNameT = Aws::String>
71 EventDetailsErrorItem& WithErrorName(ErrorNameT&& value) {
72 SetErrorName(std::forward<ErrorNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
82 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
83 template <typename ErrorMessageT = Aws::String>
84 void SetErrorMessage(ErrorMessageT&& value) {
85 m_errorMessageHasBeenSet = true;
86 m_errorMessage = std::forward<ErrorMessageT>(value);
87 }
88 template <typename ErrorMessageT = Aws::String>
89 EventDetailsErrorItem& WithErrorMessage(ErrorMessageT&& value) {
90 SetErrorMessage(std::forward<ErrorMessageT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_eventArn;
96
97 Aws::String m_errorName;
98
99 Aws::String m_errorMessage;
100 bool m_eventArnHasBeenSet = false;
101 bool m_errorNameHasBeenSet = false;
102 bool m_errorMessageHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Health
107} // namespace Aws
AWS_HEALTH_API EventDetailsErrorItem(Aws::Utils::Json::JsonView jsonValue)
EventDetailsErrorItem & WithErrorMessage(ErrorMessageT &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_HEALTH_API EventDetailsErrorItem()=default
EventDetailsErrorItem & WithErrorName(ErrorNameT &&value)
EventDetailsErrorItem & WithEventArn(EventArnT &&value)
AWS_HEALTH_API EventDetailsErrorItem & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue