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

Describes the style configuration of a unique variation of a main * component.

See Also:

AWS * API Reference

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

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline const Aws::Map& GetVariantValues() const{ return m_variantValues; } /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline bool VariantValuesHasBeenSet() const { return m_variantValuesHasBeenSet; } /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline void SetVariantValues(const Aws::Map& value) { m_variantValuesHasBeenSet = true; m_variantValues = value; } /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline void SetVariantValues(Aws::Map&& value) { m_variantValuesHasBeenSet = true; m_variantValues = std::move(value); } /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline ComponentVariant& WithVariantValues(const Aws::Map& value) { SetVariantValues(value); return *this;} /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline ComponentVariant& WithVariantValues(Aws::Map&& value) { SetVariantValues(std::move(value)); return *this;} /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline ComponentVariant& AddVariantValues(const Aws::String& key, const Aws::String& value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(key, value); return *this; } /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline ComponentVariant& AddVariantValues(Aws::String&& key, const Aws::String& value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(std::move(key), value); return *this; } /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline ComponentVariant& AddVariantValues(const Aws::String& key, Aws::String&& value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(key, std::move(value)); return *this; } /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline ComponentVariant& AddVariantValues(Aws::String&& key, Aws::String&& value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(std::move(key), std::move(value)); return *this; } /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline ComponentVariant& AddVariantValues(const char* key, Aws::String&& value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(key, std::move(value)); return *this; } /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline ComponentVariant& AddVariantValues(Aws::String&& key, const char* value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(std::move(key), value); return *this; } /** *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ inline ComponentVariant& AddVariantValues(const char* key, const char* value) { m_variantValuesHasBeenSet = true; m_variantValues.emplace(key, value); return *this; } /** *

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

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

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

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

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

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

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

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

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

*/ inline ComponentVariant& WithOverrides(const Aws::Map>& value) { SetOverrides(value); return *this;} /** *

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

*/ inline ComponentVariant& WithOverrides(Aws::Map>&& value) { SetOverrides(std::move(value)); return *this;} /** *

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

*/ inline ComponentVariant& AddOverrides(const Aws::String& key, const Aws::Map& value) { m_overridesHasBeenSet = true; m_overrides.emplace(key, value); return *this; } /** *

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

*/ inline ComponentVariant& AddOverrides(Aws::String&& key, const Aws::Map& value) { m_overridesHasBeenSet = true; m_overrides.emplace(std::move(key), value); return *this; } /** *

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

*/ inline ComponentVariant& AddOverrides(const Aws::String& key, Aws::Map&& value) { m_overridesHasBeenSet = true; m_overrides.emplace(key, std::move(value)); return *this; } /** *

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

*/ inline ComponentVariant& AddOverrides(Aws::String&& key, Aws::Map&& value) { m_overridesHasBeenSet = true; m_overrides.emplace(std::move(key), std::move(value)); return *this; } /** *

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

*/ inline ComponentVariant& AddOverrides(const char* key, Aws::Map&& value) { m_overridesHasBeenSet = true; m_overrides.emplace(key, std::move(value)); return *this; } /** *

The properties of the component variant that can be overriden when * customizing an instance of the component. You can't specify tags as * a valid property for overrides.

*/ inline ComponentVariant& AddOverrides(const char* key, const Aws::Map& value) { m_overridesHasBeenSet = true; m_overrides.emplace(key, value); return *this; } private: Aws::Map m_variantValues; bool m_variantValuesHasBeenSet = false; Aws::Map> m_overrides; bool m_overridesHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws