AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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 const UpdateInstruction& GetCausedBy() const { return m_causedBy; }
43 inline bool CausedByHasBeenSet() const { return m_causedByHasBeenSet; }
44 template <typename CausedByT = UpdateInstruction>
45 void SetCausedBy(CausedByT&& value) {
46 m_causedByHasBeenSet = true;
47 m_causedBy = std::forward<CausedByT>(value);
48 }
49 template <typename CausedByT = UpdateInstruction>
50 UpdateError& WithCausedBy(CausedByT&& value) {
51 SetCausedBy(std::forward<CausedByT>(value));
52 return *this;
53 }
55
57
60 inline int GetCode() const { return m_code; }
61 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
62 inline void SetCode(int value) {
63 m_codeHasBeenSet = true;
64 m_code = value;
65 }
66 inline UpdateError& WithCode(int value) {
67 SetCode(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetMessage() const { return m_message; }
77 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
78 template <typename MessageT = Aws::String>
79 void SetMessage(MessageT&& value) {
80 m_messageHasBeenSet = true;
81 m_message = std::forward<MessageT>(value);
82 }
83 template <typename MessageT = Aws::String>
84 UpdateError& WithMessage(MessageT&& value) {
85 SetMessage(std::forward<MessageT>(value));
86 return *this;
87 }
89 private:
90 UpdateInstruction m_causedBy;
91
92 int m_code{0};
93
94 Aws::String m_message;
95 bool m_causedByHasBeenSet = false;
96 bool m_codeHasBeenSet = false;
97 bool m_messageHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ManagedGrafana
102} // namespace Aws
UpdateError & WithCausedBy(CausedByT &&value)
Definition UpdateError.h:50
AWS_MANAGEDGRAFANA_API UpdateError()=default
void SetCausedBy(CausedByT &&value)
Definition UpdateError.h:45
UpdateError & WithMessage(MessageT &&value)
Definition UpdateError.h:84
const Aws::String & GetMessage() const
Definition UpdateError.h:76
const UpdateInstruction & GetCausedBy() const
Definition UpdateError.h:42
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:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue