AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCausedBy(const UpdateInstruction& value) { m_causedByHasBeenSet = true; m_causedBy = value; }
51 inline void SetCausedBy(UpdateInstruction&& value) { m_causedByHasBeenSet = true; m_causedBy = std::move(value); }
52 inline UpdateError& WithCausedBy(const UpdateInstruction& value) { SetCausedBy(value); return *this;}
53 inline UpdateError& WithCausedBy(UpdateInstruction&& value) { SetCausedBy(std::move(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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
73 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
74 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
75 inline UpdateError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
76 inline UpdateError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
77 inline UpdateError& WithMessage(const char* value) { SetMessage(value); return *this;}
79 private:
80
81 UpdateInstruction m_causedBy;
82 bool m_causedByHasBeenSet = false;
83
84 int m_code;
85 bool m_codeHasBeenSet = false;
86
87 Aws::String m_message;
88 bool m_messageHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ManagedGrafana
93} // namespace Aws
AWS_MANAGEDGRAFANA_API UpdateError()
void SetCausedBy(UpdateInstruction &&value)
Definition UpdateError.h:51
void SetMessage(const Aws::String &value)
Definition UpdateError.h:72
void SetMessage(const char *value)
Definition UpdateError.h:74
const Aws::String & GetMessage() const
Definition UpdateError.h:70
UpdateError & WithCausedBy(UpdateInstruction &&value)
Definition UpdateError.h:53
const UpdateInstruction & GetCausedBy() const
Definition UpdateError.h:48
void SetCausedBy(const UpdateInstruction &value)
Definition UpdateError.h:50
UpdateError & WithCausedBy(const UpdateInstruction &value)
Definition UpdateError.h:52
void SetMessage(Aws::String &&value)
Definition UpdateError.h:73
AWS_MANAGEDGRAFANA_API UpdateError & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdateError & WithMessage(const Aws::String &value)
Definition UpdateError.h:75
UpdateError & WithMessage(Aws::String &&value)
Definition UpdateError.h:76
AWS_MANAGEDGRAFANA_API UpdateError(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateError & WithMessage(const char *value)
Definition UpdateError.h:77
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