AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ErrorInfo.h
1
6#pragma once
7#include <aws/tnb/Tnb_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 tnb
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_TNB_API ErrorInfo() = default;
35 AWS_TNB_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue);
38
39
41
44 inline const Aws::String& GetCause() const { return m_cause; }
45 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
46 template<typename CauseT = Aws::String>
47 void SetCause(CauseT&& value) { m_causeHasBeenSet = true; m_cause = std::forward<CauseT>(value); }
48 template<typename CauseT = Aws::String>
49 ErrorInfo& WithCause(CauseT&& value) { SetCause(std::forward<CauseT>(value)); return *this;}
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) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
60 template<typename DetailsT = Aws::String>
61 ErrorInfo& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
63 private:
64
65 Aws::String m_cause;
66 bool m_causeHasBeenSet = false;
67
68 Aws::String m_details;
69 bool m_detailsHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace tnb
74} // namespace Aws
ErrorInfo & WithCause(CauseT &&value)
Definition ErrorInfo.h:49
void SetDetails(DetailsT &&value)
Definition ErrorInfo.h:59
bool DetailsHasBeenSet() const
Definition ErrorInfo.h:57
ErrorInfo & WithDetails(DetailsT &&value)
Definition ErrorInfo.h:61
AWS_TNB_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCause() const
Definition ErrorInfo.h:44
const Aws::String & GetDetails() const
Definition ErrorInfo.h:56
bool CauseHasBeenSet() const
Definition ErrorInfo.h:45
void SetCause(CauseT &&value)
Definition ErrorInfo.h:47
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