7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/FieldInputConfig.h>
9#include <aws/amplifyuibuilder/model/FieldPosition.h>
10#include <aws/amplifyuibuilder/model/FieldValidationConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
23namespace AmplifyUIBuilder {
45 template <
typename LabelT = Aws::String>
47 m_labelHasBeenSet =
true;
48 m_label = std::forward<LabelT>(value);
50 template <
typename LabelT = Aws::String>
52 SetLabel(std::forward<LabelT>(value));
63 template <
typename PositionT = FieldPosition>
65 m_positionHasBeenSet =
true;
66 m_position = std::forward<PositionT>(value);
68 template <
typename PositionT = FieldPosition>
82 m_excludedHasBeenSet =
true;
98 template <
typename InputTypeT = FieldInputConfig>
100 m_inputTypeHasBeenSet =
true;
101 m_inputType = std::forward<InputTypeT>(value);
103 template <
typename InputTypeT = FieldInputConfig>
116 template <
typename Val
idationsT = Aws::Vector<FieldVal
idationConfiguration>>
118 m_validationsHasBeenSet =
true;
119 m_validations = std::forward<ValidationsT>(value);
121 template <
typename Val
idationsT = Aws::Vector<FieldVal
idationConfiguration>>
126 template <
typename Val
idationsT = FieldVal
idationConfiguration>
128 m_validationsHasBeenSet =
true;
129 m_validations.emplace_back(std::forward<ValidationsT>(value));
138 bool m_excluded{
false};
140 FieldInputConfig m_inputType;
143 bool m_labelHasBeenSet =
false;
144 bool m_positionHasBeenSet =
false;
145 bool m_excludedHasBeenSet =
false;
146 bool m_inputTypeHasBeenSet =
false;
147 bool m_validationsHasBeenSet =
false;
FieldConfig & WithInputType(InputTypeT &&value)
void SetValidations(ValidationsT &&value)
void SetLabel(LabelT &&value)
bool InputTypeHasBeenSet() const
AWS_AMPLIFYUIBUILDER_API FieldConfig()=default
const Aws::String & GetLabel() const
AWS_AMPLIFYUIBUILDER_API FieldConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldConfig & WithPosition(PositionT &&value)
bool ExcludedHasBeenSet() const
void SetPosition(PositionT &&value)
const FieldPosition & GetPosition() const
FieldConfig & AddValidations(ValidationsT &&value)
void SetExcluded(bool value)
bool PositionHasBeenSet() const
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
bool ValidationsHasBeenSet() const
const FieldInputConfig & GetInputType() const
FieldConfig & WithValidations(ValidationsT &&value)
const Aws::Vector< FieldValidationConfiguration > & GetValidations() const
void SetInputType(InputTypeT &&value)
bool LabelHasBeenSet() const
FieldConfig & WithExcluded(bool value)
AWS_AMPLIFYUIBUILDER_API FieldConfig(Aws::Utils::Json::JsonView jsonValue)
FieldConfig & WithLabel(LabelT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue