7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/amplifyuibuilder/model/CodegenGenericDataField.h>
24namespace AmplifyUIBuilder
49 template<
typename FieldsT = Aws::Map<Aws::String, CodegenGenericDataField>>
50 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet =
true; m_fields = std::forward<FieldsT>(value); }
51 template<
typename FieldsT = Aws::Map<Aws::String, CodegenGenericDataField>>
53 template<
typename FieldsKeyT = Aws::String,
typename FieldsValueT = CodegenGenericDataField>
55 m_fieldsHasBeenSet =
true; m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value));
return *
this;
65 inline void SetIsJoinTable(
bool value) { m_isJoinTableHasBeenSet =
true; m_isJoinTable = value; }
75 template<
typename PrimaryKeysT = Aws::Vector<Aws::String>>
76 void SetPrimaryKeys(PrimaryKeysT&& value) { m_primaryKeysHasBeenSet =
true; m_primaryKeys = std::forward<PrimaryKeysT>(value); }
77 template<
typename PrimaryKeysT = Aws::Vector<Aws::String>>
79 template<
typename PrimaryKeysT = Aws::String>
85 bool m_fieldsHasBeenSet =
false;
87 bool m_isJoinTable{
false};
88 bool m_isJoinTableHasBeenSet =
false;
91 bool m_primaryKeysHasBeenSet =
false;
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataModel(Aws::Utils::Json::JsonView jsonValue)
bool PrimaryKeysHasBeenSet() const
CodegenGenericDataModel & WithFields(FieldsT &&value)
bool IsJoinTableHasBeenSet() const
void SetFields(FieldsT &&value)
CodegenGenericDataModel & WithPrimaryKeys(PrimaryKeysT &&value)
void SetIsJoinTable(bool value)
const Aws::Map< Aws::String, CodegenGenericDataField > & GetFields() const
CodegenGenericDataModel & AddPrimaryKeys(PrimaryKeysT &&value)
CodegenGenericDataModel & AddFields(FieldsKeyT &&key, FieldsValueT &&value)
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataModel & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataModel()=default
CodegenGenericDataModel & WithIsJoinTable(bool value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
bool GetIsJoinTable() const
const Aws::Vector< Aws::String > & GetPrimaryKeys() const
bool FieldsHasBeenSet() const
void SetPrimaryKeys(PrimaryKeysT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue