AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CodegenGenericDataModel.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyUIBuilder
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataModel() = default;
38 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataModel(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataModel& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Map<Aws::String, CodegenGenericDataField>& GetFields() const { return m_fields; }
48 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
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>>
52 CodegenGenericDataModel& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
53 template<typename FieldsKeyT = Aws::String, typename FieldsValueT = CodegenGenericDataField>
54 CodegenGenericDataModel& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
55 m_fieldsHasBeenSet = true; m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value)); return *this;
56 }
58
60
63 inline bool GetIsJoinTable() const { return m_isJoinTable; }
64 inline bool IsJoinTableHasBeenSet() const { return m_isJoinTableHasBeenSet; }
65 inline void SetIsJoinTable(bool value) { m_isJoinTableHasBeenSet = true; m_isJoinTable = value; }
66 inline CodegenGenericDataModel& WithIsJoinTable(bool value) { SetIsJoinTable(value); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetPrimaryKeys() const { return m_primaryKeys; }
74 inline bool PrimaryKeysHasBeenSet() const { return m_primaryKeysHasBeenSet; }
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>>
78 CodegenGenericDataModel& WithPrimaryKeys(PrimaryKeysT&& value) { SetPrimaryKeys(std::forward<PrimaryKeysT>(value)); return *this;}
79 template<typename PrimaryKeysT = Aws::String>
80 CodegenGenericDataModel& AddPrimaryKeys(PrimaryKeysT&& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys.emplace_back(std::forward<PrimaryKeysT>(value)); return *this; }
82 private:
83
85 bool m_fieldsHasBeenSet = false;
86
87 bool m_isJoinTable{false};
88 bool m_isJoinTableHasBeenSet = false;
89
90 Aws::Vector<Aws::String> m_primaryKeys;
91 bool m_primaryKeysHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace AmplifyUIBuilder
96} // namespace Aws
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataModel(Aws::Utils::Json::JsonView jsonValue)
CodegenGenericDataModel & WithFields(FieldsT &&value)
CodegenGenericDataModel & WithPrimaryKeys(PrimaryKeysT &&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
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetPrimaryKeys() const
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