AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ThemeValue.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/amplifyuibuilder/model/ThemeValues.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AmplifyUIBuilder
24{
25namespace Model
26{
27 class ThemeValues;
28
36 {
37 public:
38 AWS_AMPLIFYUIBUILDER_API ThemeValue() = default;
39 AWS_AMPLIFYUIBUILDER_API ThemeValue(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API ThemeValue& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetValue() const { return m_value; }
49 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
50 template<typename ValueT = Aws::String>
51 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
52 template<typename ValueT = Aws::String>
53 ThemeValue& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
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) { m_childrenHasBeenSet = true; m_children = std::forward<ChildrenT>(value); }
64 template<typename ChildrenT = Aws::Vector<ThemeValues>>
65 ThemeValue& WithChildren(ChildrenT&& value) { SetChildren(std::forward<ChildrenT>(value)); return *this;}
66 template<typename ChildrenT = ThemeValues>
67 ThemeValue& AddChildren(ChildrenT&& value) { m_childrenHasBeenSet = true; m_children.emplace_back(std::forward<ChildrenT>(value)); return *this; }
69 private:
70
71 Aws::String m_value;
72 bool m_valueHasBeenSet = false;
73
74 Aws::Vector<ThemeValues> m_children;
75 bool m_childrenHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace AmplifyUIBuilder
80} // namespace Aws
ThemeValue & AddChildren(ChildrenT &&value)
Definition ThemeValue.h:67
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:65
AWS_AMPLIFYUIBUILDER_API ThemeValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
Definition ThemeValue.h:48
ThemeValue & WithValue(ValueT &&value)
Definition ThemeValue.h:53
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