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/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();
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 const IngestionErrorType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const IngestionErrorType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(IngestionErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline ErrorInfo& WithType(const IngestionErrorType& value) { SetType(value); return *this;}
51 inline ErrorInfo& WithType(IngestionErrorType&& value) { SetType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetMessage() const{ return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
61 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
62 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
63 inline ErrorInfo& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
64 inline ErrorInfo& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
65 inline ErrorInfo& WithMessage(const char* value) { SetMessage(value); return *this;}
67 private:
68
69 IngestionErrorType m_type;
70 bool m_typeHasBeenSet = false;
71
72 Aws::String m_message;
73 bool m_messageHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace QuickSight
78} // namespace Aws
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorInfo & WithMessage(Aws::String &&value)
Definition ErrorInfo.h:64
AWS_QUICKSIGHT_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
Definition ErrorInfo.h:58
void SetMessage(const Aws::String &value)
Definition ErrorInfo.h:60
ErrorInfo & WithMessage(const char *value)
Definition ErrorInfo.h:65
void SetType(const IngestionErrorType &value)
Definition ErrorInfo.h:48
void SetMessage(Aws::String &&value)
Definition ErrorInfo.h:61
void SetMessage(const char *value)
Definition ErrorInfo.h:62
AWS_QUICKSIGHT_API ErrorInfo()
void SetType(IngestionErrorType &&value)
Definition ErrorInfo.h:49
const IngestionErrorType & GetType() const
Definition ErrorInfo.h:46
ErrorInfo & WithType(IngestionErrorType &&value)
Definition ErrorInfo.h:51
ErrorInfo & WithMessage(const Aws::String &value)
Definition ErrorInfo.h:63
ErrorInfo & WithType(const IngestionErrorType &value)
Definition ErrorInfo.h:50
AWS_QUICKSIGHT_API ErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue