AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ErrorInfo.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/IngestionErrorType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QUICKSIGHT_API ErrorInfo() = default;
37 AWS_QUICKSIGHT_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API ErrorInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline IngestionErrorType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(IngestionErrorType value) { m_typeHasBeenSet = true; m_type = value; }
49 inline ErrorInfo& WithType(IngestionErrorType value) { SetType(value); return *this;}
51
53
56 inline const Aws::String& GetMessage() const { return m_message; }
57 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
58 template<typename MessageT = Aws::String>
59 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
60 template<typename MessageT = Aws::String>
61 ErrorInfo& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
63 private:
64
66 bool m_typeHasBeenSet = false;
67
68 Aws::String m_message;
69 bool m_messageHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace QuickSight
74} // namespace Aws
AWS_QUICKSIGHT_API ErrorInfo()=default
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
Definition ErrorInfo.h:56
ErrorInfo & WithMessage(MessageT &&value)
Definition ErrorInfo.h:61
void SetMessage(MessageT &&value)
Definition ErrorInfo.h:59
IngestionErrorType GetType() const
Definition ErrorInfo.h:46
ErrorInfo & WithType(IngestionErrorType value)
Definition ErrorInfo.h:49
AWS_QUICKSIGHT_API ErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(IngestionErrorType value)
Definition ErrorInfo.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue