AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
UpdateError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/grafana/ManagedGrafana_EXPORTS.h>
9#include <aws/grafana/model/UpdateInstruction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ManagedGrafana {
21namespace Model {
22
32 public:
33 AWS_MANAGEDGRAFANA_API UpdateError() = default;
34 AWS_MANAGEDGRAFANA_API UpdateError(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MANAGEDGRAFANA_API UpdateError& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline int GetCode() const { return m_code; }
43 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
44 inline void SetCode(int value) {
45 m_codeHasBeenSet = true;
46 m_code = value;
47 }
48 inline UpdateError& WithCode(int value) {
49 SetCode(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetMessage() const { return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 template <typename MessageT = Aws::String>
61 void SetMessage(MessageT&& value) {
62 m_messageHasBeenSet = true;
63 m_message = std::forward<MessageT>(value);
64 }
65 template <typename MessageT = Aws::String>
66 UpdateError& WithMessage(MessageT&& value) {
67 SetMessage(std::forward<MessageT>(value));
68 return *this;
69 }
71
73
76 inline const UpdateInstruction& GetCausedBy() const { return m_causedBy; }
77 inline bool CausedByHasBeenSet() const { return m_causedByHasBeenSet; }
78 template <typename CausedByT = UpdateInstruction>
79 void SetCausedBy(CausedByT&& value) {
80 m_causedByHasBeenSet = true;
81 m_causedBy = std::forward<CausedByT>(value);
82 }
83 template <typename CausedByT = UpdateInstruction>
84 UpdateError& WithCausedBy(CausedByT&& value) {
85 SetCausedBy(std::forward<CausedByT>(value));
86 return *this;
87 }
89 private:
90 int m_code{0};
91
92 Aws::String m_message;
93
94 UpdateInstruction m_causedBy;
95 bool m_codeHasBeenSet = false;
96 bool m_messageHasBeenSet = false;
97 bool m_causedByHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ManagedGrafana
102} // namespace Aws
UpdateError & WithCausedBy(CausedByT &&value)
Definition UpdateError.h:84
AWS_MANAGEDGRAFANA_API UpdateError()=default
void SetCausedBy(CausedByT &&value)
Definition UpdateError.h:79
UpdateError & WithMessage(MessageT &&value)
Definition UpdateError.h:66
const Aws::String & GetMessage() const
Definition UpdateError.h:58
const UpdateInstruction & GetCausedBy() const
Definition UpdateError.h:76
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:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue