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

Describes the configuration for an input field on a form. Use * FormInputValueProperty to specify the values to render or bind by * default.

See Also:

AWS * API Reference

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

The value to assign to the input field.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value to assign to the input field.

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

The value to assign to the input field.

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

The value to assign to the input field.

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

The value to assign to the input field.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value to assign to the input field.

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

The value to assign to the input field.

*/ inline FormInputValueProperty& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value to assign to the input field.

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

The information to bind fields to data at runtime.

*/ inline const FormInputValuePropertyBindingProperties& GetBindingProperties() const{ return m_bindingProperties; } /** *

The information to bind fields to data at runtime.

*/ inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; } /** *

The information to bind fields to data at runtime.

*/ inline void SetBindingProperties(const FormInputValuePropertyBindingProperties& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties = value; } /** *

The information to bind fields to data at runtime.

*/ inline void SetBindingProperties(FormInputValuePropertyBindingProperties&& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties = std::move(value); } /** *

The information to bind fields to data at runtime.

*/ inline FormInputValueProperty& WithBindingProperties(const FormInputValuePropertyBindingProperties& value) { SetBindingProperties(value); return *this;} /** *

The information to bind fields to data at runtime.

*/ inline FormInputValueProperty& WithBindingProperties(FormInputValuePropertyBindingProperties&& value) { SetBindingProperties(std::move(value)); return *this;} /** *

A list of form properties to concatenate to create the value to assign to * this field property.

*/ inline const Aws::Vector& GetConcat() const{ return m_concat; } /** *

A list of form properties to concatenate to create the value to assign to * this field property.

*/ inline bool ConcatHasBeenSet() const { return m_concatHasBeenSet; } /** *

A list of form properties to concatenate to create the value to assign to * this field property.

*/ inline void SetConcat(const Aws::Vector& value) { m_concatHasBeenSet = true; m_concat = value; } /** *

A list of form properties to concatenate to create the value to assign to * this field property.

*/ inline void SetConcat(Aws::Vector&& value) { m_concatHasBeenSet = true; m_concat = std::move(value); } /** *

A list of form properties to concatenate to create the value to assign to * this field property.

*/ inline FormInputValueProperty& WithConcat(const Aws::Vector& value) { SetConcat(value); return *this;} /** *

A list of form properties to concatenate to create the value to assign to * this field property.

*/ inline FormInputValueProperty& WithConcat(Aws::Vector&& value) { SetConcat(std::move(value)); return *this;} /** *

A list of form properties to concatenate to create the value to assign to * this field property.

*/ inline FormInputValueProperty& AddConcat(const FormInputValueProperty& value) { m_concatHasBeenSet = true; m_concat.push_back(value); return *this; } /** *

A list of form properties to concatenate to create the value to assign to * this field property.

*/ inline FormInputValueProperty& AddConcat(FormInputValueProperty&& value) { m_concatHasBeenSet = true; m_concat.push_back(std::move(value)); return *this; } private: Aws::String m_value; bool m_valueHasBeenSet = false; FormInputValuePropertyBindingProperties m_bindingProperties; bool m_bindingPropertiesHasBeenSet = false; Aws::Vector m_concat; bool m_concatHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws