AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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