/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AmplifyUIBuilder { namespace Model { /** *

Represents all of the information that is required to create a * theme.

See Also:

AWS * API Reference

*/ class CreateThemeData { public: AWS_AMPLIFYUIBUILDER_API CreateThemeData(); AWS_AMPLIFYUIBUILDER_API CreateThemeData(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYUIBUILDER_API CreateThemeData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the theme.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the theme.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the theme.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the theme.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the theme.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the theme.

*/ inline CreateThemeData& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the theme.

*/ inline CreateThemeData& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the theme.

*/ inline CreateThemeData& WithName(const char* value) { SetName(value); return *this;} /** *

A list of key-value pairs that defines the properties of the theme.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

A list of key-value pairs that defines the properties of the theme.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

A list of key-value pairs that defines the properties of the theme.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

A list of key-value pairs that defines the properties of the theme.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

A list of key-value pairs that defines the properties of the theme.

*/ inline CreateThemeData& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

A list of key-value pairs that defines the properties of the theme.

*/ inline CreateThemeData& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

A list of key-value pairs that defines the properties of the theme.

*/ inline CreateThemeData& AddValues(const ThemeValues& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

A list of key-value pairs that defines the properties of the theme.

*/ inline CreateThemeData& AddValues(ThemeValues&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *

Describes the properties that can be overriden to customize an instance of * the theme.

*/ inline const Aws::Vector& GetOverrides() const{ return m_overrides; } /** *

Describes the properties that can be overriden to customize an instance of * the theme.

*/ inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; } /** *

Describes the properties that can be overriden to customize an instance of * the theme.

*/ inline void SetOverrides(const Aws::Vector& value) { m_overridesHasBeenSet = true; m_overrides = value; } /** *

Describes the properties that can be overriden to customize an instance of * the theme.

*/ inline void SetOverrides(Aws::Vector&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); } /** *

Describes the properties that can be overriden to customize an instance of * the theme.

*/ inline CreateThemeData& WithOverrides(const Aws::Vector& value) { SetOverrides(value); return *this;} /** *

Describes the properties that can be overriden to customize an instance of * the theme.

*/ inline CreateThemeData& WithOverrides(Aws::Vector&& value) { SetOverrides(std::move(value)); return *this;} /** *

Describes the properties that can be overriden to customize an instance of * the theme.

*/ inline CreateThemeData& AddOverrides(const ThemeValues& value) { m_overridesHasBeenSet = true; m_overrides.push_back(value); return *this; } /** *

Describes the properties that can be overriden to customize an instance of * the theme.

*/ inline CreateThemeData& AddOverrides(ThemeValues&& value) { m_overridesHasBeenSet = true; m_overrides.push_back(std::move(value)); return *this; } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline CreateThemeData& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline CreateThemeData& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline CreateThemeData& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline CreateThemeData& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline CreateThemeData& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline CreateThemeData& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline CreateThemeData& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline CreateThemeData& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

One or more key-value pairs to use when tagging the theme data.

*/ inline CreateThemeData& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_values; bool m_valuesHasBeenSet = false; Aws::Vector m_overrides; bool m_overridesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws