AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ThemeValues.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSAllocator.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 AmplifyUIBuilder
23{
24namespace Model
25{
26 class ThemeValue;
27
35 {
36 public:
37 AWS_AMPLIFYUIBUILDER_API ThemeValues() = default;
38 AWS_AMPLIFYUIBUILDER_API ThemeValues(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API ThemeValues& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetKey() const { return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 template<typename KeyT = Aws::String>
50 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
51 template<typename KeyT = Aws::String>
52 ThemeValues& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
54
56
59 inline const ThemeValue& GetValue() const{
60 return *m_value;
61 }
62 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
63 template<typename ValueT = ThemeValue>
64 void SetValue(ValueT&& value) {
65 m_valueHasBeenSet = true;
66 m_value = Aws::MakeShared<ThemeValue>("ThemeValues", std::forward<ValueT>(value));
67 }
68 template<typename ValueT = ThemeValue>
69 ThemeValues& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
71 private:
72
73 Aws::String m_key;
74 bool m_keyHasBeenSet = false;
75
76 std::shared_ptr<ThemeValue> m_value;
77 bool m_valueHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace AmplifyUIBuilder
82} // namespace Aws
ThemeValues & WithKey(KeyT &&value)
Definition ThemeValues.h:52
AWS_AMPLIFYUIBUILDER_API ThemeValues(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API ThemeValues & operator=(Aws::Utils::Json::JsonView jsonValue)
ThemeValues & WithValue(ValueT &&value)
Definition ThemeValues.h:69
const ThemeValue & GetValue() const
Definition ThemeValues.h:59
const Aws::String & GetKey() const
Definition ThemeValues.h:47
AWS_AMPLIFYUIBUILDER_API ThemeValues()=default
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue