AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ThemeValue.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/ThemeValues.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyUIBuilder {
22namespace Model {
23class ThemeValues;
24
32 public:
33 AWS_AMPLIFYUIBUILDER_API ThemeValue() = default;
34 AWS_AMPLIFYUIBUILDER_API ThemeValue(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYUIBUILDER_API ThemeValue& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetValue() const { return m_value; }
43 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
44 template <typename ValueT = Aws::String>
45 void SetValue(ValueT&& value) {
46 m_valueHasBeenSet = true;
47 m_value = std::forward<ValueT>(value);
48 }
49 template <typename ValueT = Aws::String>
50 ThemeValue& WithValue(ValueT&& value) {
51 SetValue(std::forward<ValueT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<ThemeValues>& GetChildren() const { return m_children; }
61 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
62 template <typename ChildrenT = Aws::Vector<ThemeValues>>
63 void SetChildren(ChildrenT&& value) {
64 m_childrenHasBeenSet = true;
65 m_children = std::forward<ChildrenT>(value);
66 }
67 template <typename ChildrenT = Aws::Vector<ThemeValues>>
68 ThemeValue& WithChildren(ChildrenT&& value) {
69 SetChildren(std::forward<ChildrenT>(value));
70 return *this;
71 }
72 template <typename ChildrenT = ThemeValues>
73 ThemeValue& AddChildren(ChildrenT&& value) {
74 m_childrenHasBeenSet = true;
75 m_children.emplace_back(std::forward<ChildrenT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_value;
81
82 Aws::Vector<ThemeValues> m_children;
83 bool m_valueHasBeenSet = false;
84 bool m_childrenHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace AmplifyUIBuilder
89} // namespace Aws
ThemeValue & AddChildren(ChildrenT &&value)
Definition ThemeValue.h:73
AWS_AMPLIFYUIBUILDER_API ThemeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ThemeValues > & GetChildren() const
Definition ThemeValue.h:60
AWS_AMPLIFYUIBUILDER_API ThemeValue()=default
ThemeValue & WithChildren(ChildrenT &&value)
Definition ThemeValue.h:68
AWS_AMPLIFYUIBUILDER_API ThemeValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
Definition ThemeValue.h:42
ThemeValue & WithValue(ValueT &&value)
Definition ThemeValue.h:50
void SetChildren(ChildrenT &&value)
Definition ThemeValue.h:63
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue