AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComponentVariant.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.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
34 {
35 public:
36 AWS_AMPLIFYUIBUILDER_API ComponentVariant();
37 AWS_AMPLIFYUIBUILDER_API ComponentVariant(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFYUIBUILDER_API ComponentVariant& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Map<Aws::String, Aws::String>& GetVariantValues() const{ return m_variantValues; }
48 inline bool VariantValuesHasBeenSet() const { return m_variantValuesHasBeenSet; }
49 inline void SetVariantValues(const Aws::Map<Aws::String, Aws::String>& value) { m_variantValuesHasBeenSet = true; m_variantValues = value; }
50 inline void SetVariantValues(Aws::Map<Aws::String, Aws::String>&& value) { m_variantValuesHasBeenSet = true; m_variantValues = std::move(value); }
53 inline ComponentVariant& AddVariantValues(const Aws::String& key, const Aws::String& value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(key, value); return *this; }
54 inline ComponentVariant& AddVariantValues(Aws::String&& key, const Aws::String& value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(std::move(key), value); return *this; }
55 inline ComponentVariant& AddVariantValues(const Aws::String& key, Aws::String&& value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(key, std::move(value)); return *this; }
56 inline ComponentVariant& AddVariantValues(Aws::String&& key, Aws::String&& value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(std::move(key), std::move(value)); return *this; }
57 inline ComponentVariant& AddVariantValues(const char* key, Aws::String&& value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(key, std::move(value)); return *this; }
58 inline ComponentVariant& AddVariantValues(Aws::String&& key, const char* value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(std::move(key), value); return *this; }
59 inline ComponentVariant& AddVariantValues(const char* key, const char* value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(key, value); return *this; }
61
63
68 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& GetOverrides() const{ return m_overrides; }
69 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
70 inline void SetOverrides(const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& value) { m_overridesHasBeenSet = true; m_overrides = value; }
71 inline void SetOverrides(Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
74 inline ComponentVariant& AddOverrides(const Aws::String& key, const Aws::Map<Aws::String, Aws::String>& value) { m_overridesHasBeenSet = true; m_overrides.emplace(key, value); return *this; }
75 inline ComponentVariant& AddOverrides(Aws::String&& key, const Aws::Map<Aws::String, Aws::String>& value) { m_overridesHasBeenSet = true; m_overrides.emplace(std::move(key), value); return *this; }
76 inline ComponentVariant& AddOverrides(const Aws::String& key, Aws::Map<Aws::String, Aws::String>&& value) { m_overridesHasBeenSet = true; m_overrides.emplace(key, std::move(value)); return *this; }
77 inline ComponentVariant& AddOverrides(Aws::String&& key, Aws::Map<Aws::String, Aws::String>&& value) { m_overridesHasBeenSet = true; m_overrides.emplace(std::move(key), std::move(value)); return *this; }
78 inline ComponentVariant& AddOverrides(const char* key, Aws::Map<Aws::String, Aws::String>&& value) { m_overridesHasBeenSet = true; m_overrides.emplace(key, std::move(value)); return *this; }
79 inline ComponentVariant& AddOverrides(const char* key, const Aws::Map<Aws::String, Aws::String>& value) { m_overridesHasBeenSet = true; m_overrides.emplace(key, value); return *this; }
81 private:
82
84 bool m_variantValuesHasBeenSet = false;
85
87 bool m_overridesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace AmplifyUIBuilder
92} // namespace Aws
AWS_AMPLIFYUIBUILDER_API ComponentVariant()
ComponentVariant & AddOverrides(Aws::String &&key, const Aws::Map< Aws::String, Aws::String > &value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentVariant & AddVariantValues(const Aws::String &key, Aws::String &&value)
ComponentVariant & WithOverrides(const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > &value)
ComponentVariant & AddOverrides(Aws::String &&key, Aws::Map< Aws::String, Aws::String > &&value)
void SetVariantValues(const Aws::Map< Aws::String, Aws::String > &value)
ComponentVariant & AddVariantValues(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetVariantValues() const
AWS_AMPLIFYUIBUILDER_API ComponentVariant(Aws::Utils::Json::JsonView jsonValue)
ComponentVariant & AddOverrides(const char *key, const Aws::Map< Aws::String, Aws::String > &value)
ComponentVariant & AddVariantValues(Aws::String &&key, Aws::String &&value)
ComponentVariant & AddVariantValues(const char *key, Aws::String &&value)
ComponentVariant & AddVariantValues(Aws::String &&key, const char *value)
ComponentVariant & AddVariantValues(Aws::String &&key, const Aws::String &value)
void SetOverrides(Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > &&value)
ComponentVariant & AddVariantValues(const char *key, const char *value)
ComponentVariant & AddOverrides(const char *key, Aws::Map< Aws::String, Aws::String > &&value)
ComponentVariant & AddOverrides(const Aws::String &key, Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > & GetOverrides() const
ComponentVariant & WithVariantValues(const Aws::Map< Aws::String, Aws::String > &value)
ComponentVariant & AddOverrides(const Aws::String &key, const Aws::Map< Aws::String, Aws::String > &value)
ComponentVariant & WithVariantValues(Aws::Map< Aws::String, Aws::String > &&value)
AWS_AMPLIFYUIBUILDER_API ComponentVariant & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentVariant & WithOverrides(Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > &&value)
void SetVariantValues(Aws::Map< Aws::String, Aws::String > &&value)
void SetOverrides(const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue