AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ServiceException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
28 public:
29 AWS_LIGHTSAIL_API ServiceException() = default;
30 AWS_LIGHTSAIL_API ServiceException(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
36 inline const Aws::String& GetCode() const { return m_code; }
37 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
38 template <typename CodeT = Aws::String>
39 void SetCode(CodeT&& value) {
40 m_codeHasBeenSet = true;
41 m_code = std::forward<CodeT>(value);
42 }
43 template <typename CodeT = Aws::String>
44 ServiceException& WithCode(CodeT&& value) {
45 SetCode(std::forward<CodeT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetDocs() const { return m_docs; }
53 inline bool DocsHasBeenSet() const { return m_docsHasBeenSet; }
54 template <typename DocsT = Aws::String>
55 void SetDocs(DocsT&& value) {
56 m_docsHasBeenSet = true;
57 m_docs = std::forward<DocsT>(value);
58 }
59 template <typename DocsT = Aws::String>
60 ServiceException& WithDocs(DocsT&& value) {
61 SetDocs(std::forward<DocsT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetMessage() const { return m_message; }
69 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
70 template <typename MessageT = Aws::String>
71 void SetMessage(MessageT&& value) {
72 m_messageHasBeenSet = true;
73 m_message = std::forward<MessageT>(value);
74 }
75 template <typename MessageT = Aws::String>
76 ServiceException& WithMessage(MessageT&& value) {
77 SetMessage(std::forward<MessageT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetTip() const { return m_tip; }
85 inline bool TipHasBeenSet() const { return m_tipHasBeenSet; }
86 template <typename TipT = Aws::String>
87 void SetTip(TipT&& value) {
88 m_tipHasBeenSet = true;
89 m_tip = std::forward<TipT>(value);
90 }
91 template <typename TipT = Aws::String>
92 ServiceException& WithTip(TipT&& value) {
93 SetTip(std::forward<TipT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_code;
99
100 Aws::String m_docs;
101
102 Aws::String m_message;
103
104 Aws::String m_tip;
105 bool m_codeHasBeenSet = false;
106 bool m_docsHasBeenSet = false;
107 bool m_messageHasBeenSet = false;
108 bool m_tipHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Lightsail
113} // namespace Aws
ServiceException & WithTip(TipT &&value)
AWS_LIGHTSAIL_API ServiceException()=default
ServiceException & WithMessage(MessageT &&value)
AWS_LIGHTSAIL_API ServiceException(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceException & WithDocs(DocsT &&value)
const Aws::String & GetDocs() const
const Aws::String & GetCode() const
AWS_LIGHTSAIL_API ServiceException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
ServiceException & WithCode(CodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue