AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateError.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/grafana/model/UpdateInstruction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ManagedGrafana
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_MANAGEDGRAFANA_API UpdateError() = default;
39 AWS_MANAGEDGRAFANA_API UpdateError(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MANAGEDGRAFANA_API UpdateError& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const UpdateInstruction& GetCausedBy() const { return m_causedBy; }
49 inline bool CausedByHasBeenSet() const { return m_causedByHasBeenSet; }
50 template<typename CausedByT = UpdateInstruction>
51 void SetCausedBy(CausedByT&& value) { m_causedByHasBeenSet = true; m_causedBy = std::forward<CausedByT>(value); }
52 template<typename CausedByT = UpdateInstruction>
53 UpdateError& WithCausedBy(CausedByT&& value) { SetCausedBy(std::forward<CausedByT>(value)); return *this;}
55
57
60 inline int GetCode() const { return m_code; }
61 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
62 inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; }
63 inline UpdateError& WithCode(int value) { SetCode(value); return *this;}
65
67
70 inline const Aws::String& GetMessage() const { return m_message; }
71 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
72 template<typename MessageT = Aws::String>
73 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
74 template<typename MessageT = Aws::String>
75 UpdateError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
77 private:
78
79 UpdateInstruction m_causedBy;
80 bool m_causedByHasBeenSet = false;
81
82 int m_code{0};
83 bool m_codeHasBeenSet = false;
84
85 Aws::String m_message;
86 bool m_messageHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ManagedGrafana
91} // namespace Aws
UpdateError & WithCausedBy(CausedByT &&value)
Definition UpdateError.h:53
AWS_MANAGEDGRAFANA_API UpdateError()=default
void SetCausedBy(CausedByT &&value)
Definition UpdateError.h:51
UpdateError & WithMessage(MessageT &&value)
Definition UpdateError.h:75
const Aws::String & GetMessage() const
Definition UpdateError.h:70
const UpdateInstruction & GetCausedBy() const
Definition UpdateError.h:48
AWS_MANAGEDGRAFANA_API UpdateError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API UpdateError(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateError & WithCode(int value)
Definition UpdateError.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue