7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/amplifyuibuilder/model/FieldPosition.h>
10#include <aws/amplifyuibuilder/model/FieldInputConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/amplifyuibuilder/model/FieldValidationConfiguration.h>
25namespace AmplifyUIBuilder
51 template<
typename LabelT = Aws::String>
52 void SetLabel(LabelT&& value) { m_labelHasBeenSet =
true; m_label = std::forward<LabelT>(value); }
53 template<
typename LabelT = Aws::String>
63 template<
typename PositionT = FieldPosition>
64 void SetPosition(PositionT&& value) { m_positionHasBeenSet =
true; m_position = std::forward<PositionT>(value); }
65 template<
typename PositionT = FieldPosition>
75 inline void SetExcluded(
bool value) { m_excludedHasBeenSet =
true; m_excluded = value; }
86 template<
typename InputTypeT = FieldInputConfig>
87 void SetInputType(InputTypeT&& value) { m_inputTypeHasBeenSet =
true; m_inputType = std::forward<InputTypeT>(value); }
88 template<
typename InputTypeT = FieldInputConfig>
98 template<
typename Val
idationsT = Aws::Vector<FieldVal
idationConfiguration>>
99 void SetValidations(ValidationsT&& value) { m_validationsHasBeenSet =
true; m_validations = std::forward<ValidationsT>(value); }
100 template<
typename Val
idationsT = Aws::Vector<FieldVal
idationConfiguration>>
102 template<
typename Val
idationsT = FieldVal
idationConfiguration>
103 FieldConfig&
AddValidations(ValidationsT&& value) { m_validationsHasBeenSet =
true; m_validations.emplace_back(std::forward<ValidationsT>(value));
return *
this; }
108 bool m_labelHasBeenSet =
false;
111 bool m_positionHasBeenSet =
false;
113 bool m_excluded{
false};
114 bool m_excludedHasBeenSet =
false;
116 FieldInputConfig m_inputType;
117 bool m_inputTypeHasBeenSet =
false;
120 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