AWS SDK for C++  1.9.104
AWS SDK for C++
ServiceException.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
40 
41  inline const Aws::String& GetCode() const{ return m_code; }
42 
43 
44  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
45 
46 
47  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
48 
49 
50  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
51 
52 
53  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
54 
55 
56  inline ServiceException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
57 
58 
59  inline ServiceException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
60 
61 
62  inline ServiceException& WithCode(const char* value) { SetCode(value); return *this;}
63 
64 
65 
66  inline const Aws::String& GetDocs() const{ return m_docs; }
67 
68 
69  inline bool DocsHasBeenSet() const { return m_docsHasBeenSet; }
70 
71 
72  inline void SetDocs(const Aws::String& value) { m_docsHasBeenSet = true; m_docs = value; }
73 
74 
75  inline void SetDocs(Aws::String&& value) { m_docsHasBeenSet = true; m_docs = std::move(value); }
76 
77 
78  inline void SetDocs(const char* value) { m_docsHasBeenSet = true; m_docs.assign(value); }
79 
80 
81  inline ServiceException& WithDocs(const Aws::String& value) { SetDocs(value); return *this;}
82 
83 
84  inline ServiceException& WithDocs(Aws::String&& value) { SetDocs(std::move(value)); return *this;}
85 
86 
87  inline ServiceException& WithDocs(const char* value) { SetDocs(value); return *this;}
88 
89 
90 
91  inline const Aws::String& GetMessage() const{ return m_message; }
92 
93 
94  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
95 
96 
97  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
98 
99 
100  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
101 
102 
103  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
104 
105 
106  inline ServiceException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
107 
108 
109  inline ServiceException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
110 
111 
112  inline ServiceException& WithMessage(const char* value) { SetMessage(value); return *this;}
113 
114 
115 
116  inline const Aws::String& GetTip() const{ return m_tip; }
117 
118 
119  inline bool TipHasBeenSet() const { return m_tipHasBeenSet; }
120 
121 
122  inline void SetTip(const Aws::String& value) { m_tipHasBeenSet = true; m_tip = value; }
123 
124 
125  inline void SetTip(Aws::String&& value) { m_tipHasBeenSet = true; m_tip = std::move(value); }
126 
127 
128  inline void SetTip(const char* value) { m_tipHasBeenSet = true; m_tip.assign(value); }
129 
130 
131  inline ServiceException& WithTip(const Aws::String& value) { SetTip(value); return *this;}
132 
133 
134  inline ServiceException& WithTip(Aws::String&& value) { SetTip(std::move(value)); return *this;}
135 
136 
137  inline ServiceException& WithTip(const char* value) { SetTip(value); return *this;}
138 
139  private:
140 
141  Aws::String m_code;
142  bool m_codeHasBeenSet;
143 
144  Aws::String m_docs;
145  bool m_docsHasBeenSet;
146 
147  Aws::String m_message;
148  bool m_messageHasBeenSet;
149 
150  Aws::String m_tip;
151  bool m_tipHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace Lightsail
156 } // namespace Aws
Aws::Lightsail::Model::ServiceException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ServiceException::TipHasBeenSet
bool TipHasBeenSet() const
Definition: ServiceException.h:119
Aws::Lightsail::Model::ServiceException::GetCode
const Aws::String & GetCode() const
Definition: ServiceException.h:41
Aws::Lightsail::Model::ServiceException::GetMessage
const Aws::String & GetMessage() const
Definition: ServiceException.h:91
Aws::Lightsail::Model::ServiceException::GetDocs
const Aws::String & GetDocs() const
Definition: ServiceException.h:66
Aws::Lightsail::Model::ServiceException::SetTip
void SetTip(const Aws::String &value)
Definition: ServiceException.h:122
Aws::Lightsail::Model::ServiceException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ServiceException.h:100
Aws::Lightsail::Model::ServiceException::operator=
ServiceException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ServiceException::WithMessage
ServiceException & WithMessage(Aws::String &&value)
Definition: ServiceException.h:109
Aws::Lightsail::Model::ServiceException::SetMessage
void SetMessage(const char *value)
Definition: ServiceException.h:103
Aws::Lightsail::Model::ServiceException::GetTip
const Aws::String & GetTip() const
Definition: ServiceException.h:116
Aws::Lightsail::Model::ServiceException::SetDocs
void SetDocs(Aws::String &&value)
Definition: ServiceException.h:75
Aws::Lightsail::Model::ServiceException::SetDocs
void SetDocs(const Aws::String &value)
Definition: ServiceException.h:72
Aws::Lightsail::Model::ServiceException::WithMessage
ServiceException & WithMessage(const Aws::String &value)
Definition: ServiceException.h:106
Aws::Lightsail::Model::ServiceException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ServiceException.h:97
Aws::Lightsail::Model::ServiceException::SetCode
void SetCode(Aws::String &&value)
Definition: ServiceException.h:50
Aws::Lightsail::Model::ServiceException::SetDocs
void SetDocs(const char *value)
Definition: ServiceException.h:78
Aws::Lightsail::Model::ServiceException::WithDocs
ServiceException & WithDocs(const Aws::String &value)
Definition: ServiceException.h:81
Aws::Lightsail::Model::ServiceException::WithCode
ServiceException & WithCode(const Aws::String &value)
Definition: ServiceException.h:56
Aws::Lightsail::Model::ServiceException::WithMessage
ServiceException & WithMessage(const char *value)
Definition: ServiceException.h:112
Aws::Lightsail::Model::ServiceException::SetCode
void SetCode(const Aws::String &value)
Definition: ServiceException.h:47
Aws::Lightsail::Model::ServiceException::SetTip
void SetTip(Aws::String &&value)
Definition: ServiceException.h:125
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Lightsail::Model::ServiceException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ServiceException.h:94
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::ServiceException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ServiceException.h:44
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ServiceException::ServiceException
ServiceException()
Aws::Lightsail::Model::ServiceException::DocsHasBeenSet
bool DocsHasBeenSet() const
Definition: ServiceException.h:69
Aws::Lightsail::Model::ServiceException::ServiceException
ServiceException(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ServiceException::WithDocs
ServiceException & WithDocs(const char *value)
Definition: ServiceException.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ServiceException::SetCode
void SetCode(const char *value)
Definition: ServiceException.h:53
Aws::Lightsail::Model::ServiceException::WithTip
ServiceException & WithTip(const Aws::String &value)
Definition: ServiceException.h:131
Aws::Lightsail::Model::ServiceException::WithCode
ServiceException & WithCode(Aws::String &&value)
Definition: ServiceException.h:59
Aws::Lightsail::Model::ServiceException::WithDocs
ServiceException & WithDocs(Aws::String &&value)
Definition: ServiceException.h:84
Aws::Lightsail::Model::ServiceException::WithTip
ServiceException & WithTip(Aws::String &&value)
Definition: ServiceException.h:134
Aws::Lightsail::Model::ServiceException::WithCode
ServiceException & WithCode(const char *value)
Definition: ServiceException.h:62
Aws::Lightsail::Model::ServiceException
Definition: ServiceException.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ServiceException::WithTip
ServiceException & WithTip(const char *value)
Definition: ServiceException.h:137
Aws::Lightsail::Model::ServiceException::SetTip
void SetTip(const char *value)
Definition: ServiceException.h:128