AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceException.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_LIGHTSAIL_API ServiceException() = default;
35 AWS_LIGHTSAIL_API ServiceException(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
42 inline const Aws::String& GetCode() const { return m_code; }
43 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
44 template<typename CodeT = Aws::String>
45 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
46 template<typename CodeT = Aws::String>
47 ServiceException& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
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) { m_docsHasBeenSet = true; m_docs = std::forward<DocsT>(value); }
56 template<typename DocsT = Aws::String>
57 ServiceException& WithDocs(DocsT&& value) { SetDocs(std::forward<DocsT>(value)); return *this;}
59
61
62 inline const Aws::String& GetMessage() const { return m_message; }
63 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
64 template<typename MessageT = Aws::String>
65 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
66 template<typename MessageT = Aws::String>
67 ServiceException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
69
71
72 inline const Aws::String& GetTip() const { return m_tip; }
73 inline bool TipHasBeenSet() const { return m_tipHasBeenSet; }
74 template<typename TipT = Aws::String>
75 void SetTip(TipT&& value) { m_tipHasBeenSet = true; m_tip = std::forward<TipT>(value); }
76 template<typename TipT = Aws::String>
77 ServiceException& WithTip(TipT&& value) { SetTip(std::forward<TipT>(value)); return *this;}
79 private:
80
81 Aws::String m_code;
82 bool m_codeHasBeenSet = false;
83
84 Aws::String m_docs;
85 bool m_docsHasBeenSet = false;
86
87 Aws::String m_message;
88 bool m_messageHasBeenSet = false;
89
90 Aws::String m_tip;
91 bool m_tipHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Lightsail
96} // 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