AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ThemeValues.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSAllocator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyUIBuilder {
21namespace Model {
22class ThemeValue;
23
31 public:
32 AWS_AMPLIFYUIBUILDER_API ThemeValues() = default;
33 AWS_AMPLIFYUIBUILDER_API ThemeValues(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYUIBUILDER_API ThemeValues& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = Aws::String>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = std::forward<KeyT>(value);
47 }
48 template <typename KeyT = Aws::String>
49 ThemeValues& WithKey(KeyT&& value) {
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
59 inline const ThemeValue& GetValue() const { return *m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = ThemeValue>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = Aws::MakeShared<ThemeValue>("ThemeValues", std::forward<ValueT>(value));
65 }
66 template <typename ValueT = ThemeValue>
67 ThemeValues& WithValue(ValueT&& value) {
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_key;
74
75 std::shared_ptr<ThemeValue> m_value;
76 bool m_keyHasBeenSet = false;
77 bool m_valueHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace AmplifyUIBuilder
82} // namespace Aws
ThemeValues & WithKey(KeyT &&value)
Definition ThemeValues.h:49
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:67
const ThemeValue & GetValue() const
Definition ThemeValues.h:59
const Aws::String & GetKey() const
Definition ThemeValues.h:41
AWS_AMPLIFYUIBUILDER_API ThemeValues()=default
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue