AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
EventDetailsErrorItem.h
1
6#pragma once
7#include <aws/health/Health_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Health
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_HEALTH_API EventDetailsErrorItem() = default;
39 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
51 inline const Aws::String& GetEventArn() const { return m_eventArn; }
52 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
53 template<typename EventArnT = Aws::String>
54 void SetEventArn(EventArnT&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::forward<EventArnT>(value); }
55 template<typename EventArnT = Aws::String>
56 EventDetailsErrorItem& WithEventArn(EventArnT&& value) { SetEventArn(std::forward<EventArnT>(value)); return *this;}
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) { m_errorNameHasBeenSet = true; m_errorName = std::forward<ErrorNameT>(value); }
67 template<typename ErrorNameT = Aws::String>
68 EventDetailsErrorItem& WithErrorName(ErrorNameT&& value) { SetErrorName(std::forward<ErrorNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
76 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
77 template<typename ErrorMessageT = Aws::String>
78 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
79 template<typename ErrorMessageT = Aws::String>
80 EventDetailsErrorItem& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
82 private:
83
84 Aws::String m_eventArn;
85 bool m_eventArnHasBeenSet = false;
86
87 Aws::String m_errorName;
88 bool m_errorNameHasBeenSet = false;
89
90 Aws::String m_errorMessage;
91 bool m_errorMessageHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Health
96} // 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