AWS SDK for C++  1.8.126
AWS SDK for C++
TemplateError.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace QuickSight
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const TemplateErrorType& GetType() const{ return m_type; }
46 
50  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 
55  inline void SetType(const TemplateErrorType& value) { m_typeHasBeenSet = true; m_type = value; }
56 
60  inline void SetType(TemplateErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
61 
65  inline TemplateError& WithType(const TemplateErrorType& value) { SetType(value); return *this;}
66 
70  inline TemplateError& WithType(TemplateErrorType&& value) { SetType(std::move(value)); return *this;}
71 
72 
76  inline const Aws::String& GetMessage() const{ return m_message; }
77 
81  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 
86  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
87 
91  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
92 
96  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
97 
101  inline TemplateError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
102 
106  inline TemplateError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
107 
111  inline TemplateError& WithMessage(const char* value) { SetMessage(value); return *this;}
112 
113  private:
114 
115  TemplateErrorType m_type;
116  bool m_typeHasBeenSet;
117 
118  Aws::String m_message;
119  bool m_messageHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace QuickSight
124 } // namespace Aws
QuickSight_EXPORTS.h
Aws::QuickSight::Model::TemplateError::SetMessage
void SetMessage(Aws::String &&value)
Definition: TemplateError.h:91
Aws::QuickSight::Model::TemplateError::TemplateError
TemplateError(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::TemplateError
Definition: TemplateError.h:34
Aws::QuickSight::Model::TemplateError::WithMessage
TemplateError & WithMessage(const Aws::String &value)
Definition: TemplateError.h:101
Aws::QuickSight::Model::TemplateError::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: TemplateError.h:50
Aws::QuickSight::Model::TemplateError::WithMessage
TemplateError & WithMessage(const char *value)
Definition: TemplateError.h:111
Aws::QuickSight::Model::TemplateError::SetType
void SetType(const TemplateErrorType &value)
Definition: TemplateError.h:55
TemplateErrorType.h
Aws::QuickSight::Model::TemplateError::SetMessage
void SetMessage(const char *value)
Definition: TemplateError.h:96
Aws::QuickSight::Model::TemplateError::GetType
const TemplateErrorType & GetType() const
Definition: TemplateError.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::QuickSight::Model::TemplateError::SetMessage
void SetMessage(const Aws::String &value)
Definition: TemplateError.h:86
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::TemplateError::GetMessage
const Aws::String & GetMessage() const
Definition: TemplateError.h:76
Aws::QuickSight::Model::TemplateError::WithType
TemplateError & WithType(TemplateErrorType &&value)
Definition: TemplateError.h:70
Aws::QuickSight::Model::TemplateErrorType
TemplateErrorType
Definition: TemplateErrorType.h:17
Aws::QuickSight::Model::TemplateError::TemplateError
TemplateError()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::TemplateError::operator=
TemplateError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::TemplateError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: TemplateError.h:81
Aws::QuickSight::Model::TemplateError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::QuickSight::Model::TemplateError::SetType
void SetType(TemplateErrorType &&value)
Definition: TemplateError.h:60
Aws::QuickSight::Model::TemplateError::WithMessage
TemplateError & WithMessage(Aws::String &&value)
Definition: TemplateError.h:106
Aws::QuickSight::Model::TemplateError::WithType
TemplateError & WithType(const TemplateErrorType &value)
Definition: TemplateError.h:65