AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ErrorInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/tnb/Tnb_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace tnb {
20namespace Model {
21
27class ErrorInfo {
28 public:
29 AWS_TNB_API ErrorInfo() = default;
30 AWS_TNB_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline const Aws::String& GetCause() const { return m_cause; }
39 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
40 template <typename CauseT = Aws::String>
41 void SetCause(CauseT&& value) {
42 m_causeHasBeenSet = true;
43 m_cause = std::forward<CauseT>(value);
44 }
45 template <typename CauseT = Aws::String>
46 ErrorInfo& WithCause(CauseT&& value) {
47 SetCause(std::forward<CauseT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDetails() const { return m_details; }
57 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
58 template <typename DetailsT = Aws::String>
59 void SetDetails(DetailsT&& value) {
60 m_detailsHasBeenSet = true;
61 m_details = std::forward<DetailsT>(value);
62 }
63 template <typename DetailsT = Aws::String>
64 ErrorInfo& WithDetails(DetailsT&& value) {
65 SetDetails(std::forward<DetailsT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_cause;
71
72 Aws::String m_details;
73 bool m_causeHasBeenSet = false;
74 bool m_detailsHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace tnb
79} // namespace Aws
ErrorInfo & WithCause(CauseT &&value)
Definition ErrorInfo.h:46
void SetDetails(DetailsT &&value)
Definition ErrorInfo.h:59
bool DetailsHasBeenSet() const
Definition ErrorInfo.h:57
ErrorInfo & WithDetails(DetailsT &&value)
Definition ErrorInfo.h:64
AWS_TNB_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCause() const
Definition ErrorInfo.h:38
const Aws::String & GetDetails() const
Definition ErrorInfo.h:56
bool CauseHasBeenSet() const
Definition ErrorInfo.h:39
void SetCause(CauseT &&value)
Definition ErrorInfo.h:41
AWS_TNB_API ErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TNB_API ErrorInfo()=default
AWS_TNB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue