AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ThemeError.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/ThemeErrorType.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
33 {
34 public:
35 AWS_QUICKSIGHT_API ThemeError() = default;
36 AWS_QUICKSIGHT_API ThemeError(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API ThemeError& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline ThemeErrorType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(ThemeErrorType value) { m_typeHasBeenSet = true; m_type = value; }
48 inline ThemeError& WithType(ThemeErrorType value) { SetType(value); return *this;}
50
52
55 inline const Aws::String& GetMessage() const { return m_message; }
56 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
57 template<typename MessageT = Aws::String>
58 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
59 template<typename MessageT = Aws::String>
60 ThemeError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
62 private:
63
65 bool m_typeHasBeenSet = false;
66
67 Aws::String m_message;
68 bool m_messageHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace QuickSight
73} // namespace Aws
AWS_QUICKSIGHT_API ThemeError(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
Definition ThemeError.h:55
AWS_QUICKSIGHT_API ThemeError & operator=(Aws::Utils::Json::JsonView jsonValue)
ThemeError & WithMessage(MessageT &&value)
Definition ThemeError.h:60
void SetType(ThemeErrorType value)
Definition ThemeError.h:47
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
ThemeError & WithType(ThemeErrorType value)
Definition ThemeError.h:48
void SetMessage(MessageT &&value)
Definition ThemeError.h:58
AWS_QUICKSIGHT_API ThemeError()=default
ThemeErrorType GetType() const
Definition ThemeError.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue