7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/CodegenGenericDataFieldDataType.h>
9#include <aws/amplifyuibuilder/model/CodegenGenericDataRelationshipType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
21namespace AmplifyUIBuilder {
43 m_dataTypeHasBeenSet =
true;
58 template <
typename DataTypeValueT = Aws::String>
60 m_dataTypeValueHasBeenSet =
true;
61 m_dataTypeValue = std::forward<DataTypeValueT>(value);
63 template <
typename DataTypeValueT = Aws::String>
77 m_requiredHasBeenSet =
true;
93 m_readOnlyHasBeenSet =
true;
109 m_isArrayHasBeenSet =
true;
124 template <
typename RelationshipT = CodegenGenericDataRelationshipType>
126 m_relationshipHasBeenSet =
true;
127 m_relationship = std::forward<RelationshipT>(value);
129 template <
typename RelationshipT = CodegenGenericDataRelationshipType>
140 bool m_required{
false};
142 bool m_readOnly{
false};
144 bool m_isArray{
false};
146 CodegenGenericDataRelationshipType m_relationship;
147 bool m_dataTypeHasBeenSet =
false;
148 bool m_dataTypeValueHasBeenSet =
false;
149 bool m_requiredHasBeenSet =
false;
150 bool m_readOnlyHasBeenSet =
false;
151 bool m_isArrayHasBeenSet =
false;
152 bool m_relationshipHasBeenSet =
false;
CodegenGenericDataField & WithReadOnly(bool value)
bool RequiredHasBeenSet() const
void SetRequired(bool value)
const Aws::String & GetDataTypeValue() const
void SetRelationship(RelationshipT &&value)
CodegenGenericDataField & WithRelationship(RelationshipT &&value)
bool IsArrayHasBeenSet() const
void SetDataType(CodegenGenericDataFieldDataType value)
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField(Aws::Utils::Json::JsonView jsonValue)
bool RelationshipHasBeenSet() const
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField()=default
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataField & operator=(Aws::Utils::Json::JsonView jsonValue)
CodegenGenericDataField & WithDataTypeValue(DataTypeValueT &&value)
CodegenGenericDataField & WithRequired(bool value)
CodegenGenericDataFieldDataType GetDataType() const
void SetDataTypeValue(DataTypeValueT &&value)
void SetIsArray(bool value)
CodegenGenericDataField & WithDataType(CodegenGenericDataFieldDataType value)
const CodegenGenericDataRelationshipType & GetRelationship() const
bool ReadOnlyHasBeenSet() const
CodegenGenericDataField & WithIsArray(bool value)
bool DataTypeHasBeenSet() const
bool DataTypeValueHasBeenSet() const
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReadOnly(bool value)
CodegenGenericDataFieldDataType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue