AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ThemeError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/ThemeErrorType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
29 public:
30 AWS_QUICKSIGHT_API ThemeError() = default;
31 AWS_QUICKSIGHT_API ThemeError(Aws::Utils::Json::JsonView jsonValue);
32 AWS_QUICKSIGHT_API ThemeError& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline ThemeErrorType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(ThemeErrorType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
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) {
59 m_messageHasBeenSet = true;
60 m_message = std::forward<MessageT>(value);
61 }
62 template <typename MessageT = Aws::String>
63 ThemeError& WithMessage(MessageT&& value) {
64 SetMessage(std::forward<MessageT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_message;
72 bool m_typeHasBeenSet = false;
73 bool m_messageHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace QuickSight
78} // 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:63
void SetType(ThemeErrorType value)
Definition ThemeError.h:41
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
ThemeError & WithType(ThemeErrorType value)
Definition ThemeError.h:45
void SetMessage(MessageT &&value)
Definition ThemeError.h:58
AWS_QUICKSIGHT_API ThemeError()=default
ThemeErrorType GetType() const
Definition ThemeError.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue