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

Associates a complex object with a display value. Use * ValueMapping to store how to represent complex objects when they * are displayed.

See Also:

AWS * API Reference

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

The value to display for the complex object.

*/ inline const FormInputValueProperty& GetDisplayValue() const{ return m_displayValue; } /** *

The value to display for the complex object.

*/ inline bool DisplayValueHasBeenSet() const { return m_displayValueHasBeenSet; } /** *

The value to display for the complex object.

*/ inline void SetDisplayValue(const FormInputValueProperty& value) { m_displayValueHasBeenSet = true; m_displayValue = value; } /** *

The value to display for the complex object.

*/ inline void SetDisplayValue(FormInputValueProperty&& value) { m_displayValueHasBeenSet = true; m_displayValue = std::move(value); } /** *

The value to display for the complex object.

*/ inline ValueMapping& WithDisplayValue(const FormInputValueProperty& value) { SetDisplayValue(value); return *this;} /** *

The value to display for the complex object.

*/ inline ValueMapping& WithDisplayValue(FormInputValueProperty&& value) { SetDisplayValue(std::move(value)); return *this;} /** *

The complex object.

*/ inline const FormInputValueProperty& GetValue() const{ return m_value; } /** *

The complex object.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The complex object.

*/ inline void SetValue(const FormInputValueProperty& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The complex object.

*/ inline void SetValue(FormInputValueProperty&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The complex object.

*/ inline ValueMapping& WithValue(const FormInputValueProperty& value) { SetValue(value); return *this;} /** *

The complex object.

*/ inline ValueMapping& WithValue(FormInputValueProperty&& value) { SetValue(std::move(value)); return *this;} private: FormInputValueProperty m_displayValue; bool m_displayValueHasBeenSet = false; FormInputValueProperty m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws