/** * 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 { /** *

Describes how to bind a component property to form data.

See * Also:

AWS * API Reference

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

The name of the component to retrieve a value from.

*/ inline const Aws::String& GetElement() const{ return m_element; } /** *

The name of the component to retrieve a value from.

*/ inline bool ElementHasBeenSet() const { return m_elementHasBeenSet; } /** *

The name of the component to retrieve a value from.

*/ inline void SetElement(const Aws::String& value) { m_elementHasBeenSet = true; m_element = value; } /** *

The name of the component to retrieve a value from.

*/ inline void SetElement(Aws::String&& value) { m_elementHasBeenSet = true; m_element = std::move(value); } /** *

The name of the component to retrieve a value from.

*/ inline void SetElement(const char* value) { m_elementHasBeenSet = true; m_element.assign(value); } /** *

The name of the component to retrieve a value from.

*/ inline FormBindingElement& WithElement(const Aws::String& value) { SetElement(value); return *this;} /** *

The name of the component to retrieve a value from.

*/ inline FormBindingElement& WithElement(Aws::String&& value) { SetElement(std::move(value)); return *this;} /** *

The name of the component to retrieve a value from.

*/ inline FormBindingElement& WithElement(const char* value) { SetElement(value); return *this;} /** *

The property to retrieve a value from.

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

The property to retrieve a value from.

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

The property to retrieve a value from.

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

The property to retrieve a value from.

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

The property to retrieve a value from.

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

The property to retrieve a value from.

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

The property to retrieve a value from.

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

The property to retrieve a value from.

*/ inline FormBindingElement& WithProperty(const char* value) { SetProperty(value); return *this;} private: Aws::String m_element; bool m_elementHasBeenSet = false; Aws::String m_property; bool m_propertyHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws