AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
47 inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
48 inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
49 inline ErrorInfo& WithCause(const Aws::String& value) { SetCause(value); return *this;}
50 inline ErrorInfo& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
51 inline ErrorInfo& WithCause(const char* value) { SetCause(value); return *this;}
53
55
58 inline const Aws::String& GetDetails() const{ return m_details; }
59 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
60 inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
61 inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
62 inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
63 inline ErrorInfo& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
64 inline ErrorInfo& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
65 inline ErrorInfo& WithDetails(const char* value) { SetDetails(value); return *this;}
67 private:
68
69 Aws::String m_cause;
70 bool m_causeHasBeenSet = false;
71
72 Aws::String m_details;
73 bool m_detailsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace tnb
78} // namespace Aws
ErrorInfo & WithDetails(const char *value)
Definition ErrorInfo.h:65
bool DetailsHasBeenSet() const
Definition ErrorInfo.h:59
ErrorInfo & WithDetails(const Aws::String &value)
Definition ErrorInfo.h:63
ErrorInfo & WithCause(Aws::String &&value)
Definition ErrorInfo.h:50
ErrorInfo & WithCause(const char *value)
Definition ErrorInfo.h:51
AWS_TNB_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue)
ErrorInfo & WithDetails(Aws::String &&value)
Definition ErrorInfo.h:64
void SetDetails(const Aws::String &value)
Definition ErrorInfo.h:60
const Aws::String & GetCause() const
Definition ErrorInfo.h:44
void SetCause(Aws::String &&value)
Definition ErrorInfo.h:47
void SetDetails(Aws::String &&value)
Definition ErrorInfo.h:61
const Aws::String & GetDetails() const
Definition ErrorInfo.h:58
bool CauseHasBeenSet() const
Definition ErrorInfo.h:45
void SetCause(const Aws::String &value)
Definition ErrorInfo.h:46
ErrorInfo & WithCause(const Aws::String &value)
Definition ErrorInfo.h:49
AWS_TNB_API ErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TNB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCause(const char *value)
Definition ErrorInfo.h:48
void SetDetails(const char *value)
Definition ErrorInfo.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue