/** * 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 component property to a binding property. This enables exposed * properties on the top level component to propagate data to the component's * property values.

See Also:

AWS * API Reference

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

The component property to bind to the data field.

*/ inline const Aws::String& GetProperty() const{ return m_property; } /** *

The component property to bind to the data field.

*/ inline bool PropertyHasBeenSet() const { return m_propertyHasBeenSet; } /** *

The component property to bind to the data field.

*/ inline void SetProperty(const Aws::String& value) { m_propertyHasBeenSet = true; m_property = value; } /** *

The component property to bind to the data field.

*/ inline void SetProperty(Aws::String&& value) { m_propertyHasBeenSet = true; m_property = std::move(value); } /** *

The component property to bind to the data field.

*/ inline void SetProperty(const char* value) { m_propertyHasBeenSet = true; m_property.assign(value); } /** *

The component property to bind to the data field.

*/ inline ComponentPropertyBindingProperties& WithProperty(const Aws::String& value) { SetProperty(value); return *this;} /** *

The component property to bind to the data field.

*/ inline ComponentPropertyBindingProperties& WithProperty(Aws::String&& value) { SetProperty(std::move(value)); return *this;} /** *

The component property to bind to the data field.

*/ inline ComponentPropertyBindingProperties& WithProperty(const char* value) { SetProperty(value); return *this;} /** *

The data field to bind the property to.

*/ inline const Aws::String& GetField() const{ return m_field; } /** *

The data field to bind the property to.

*/ inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; } /** *

The data field to bind the property to.

*/ inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; } /** *

The data field to bind the property to.

*/ inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); } /** *

The data field to bind the property to.

*/ inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); } /** *

The data field to bind the property to.

*/ inline ComponentPropertyBindingProperties& WithField(const Aws::String& value) { SetField(value); return *this;} /** *

The data field to bind the property to.

*/ inline ComponentPropertyBindingProperties& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;} /** *

The data field to bind the property to.

*/ inline ComponentPropertyBindingProperties& WithField(const char* value) { SetField(value); return *this;} private: Aws::String m_property; bool m_propertyHasBeenSet = false; Aws::String m_field; bool m_fieldHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws