AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFields(const Aws::Map<Aws::String, CodegenGenericDataField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
50 inline void SetFields(Aws::Map<Aws::String, CodegenGenericDataField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
53 inline CodegenGenericDataModel& AddFields(const Aws::String& key, const CodegenGenericDataField& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
54 inline CodegenGenericDataModel& AddFields(Aws::String&& key, const CodegenGenericDataField& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), value); return *this; }
55 inline CodegenGenericDataModel& AddFields(const Aws::String& key, CodegenGenericDataField&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
56 inline CodegenGenericDataModel& AddFields(Aws::String&& key, CodegenGenericDataField&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), std::move(value)); return *this; }
57 inline CodegenGenericDataModel& AddFields(const char* key, CodegenGenericDataField&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
58 inline CodegenGenericDataModel& AddFields(const char* key, const CodegenGenericDataField& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
60
62
65 inline bool GetIsJoinTable() const{ return m_isJoinTable; }
66 inline bool IsJoinTableHasBeenSet() const { return m_isJoinTableHasBeenSet; }
67 inline void SetIsJoinTable(bool value) { m_isJoinTableHasBeenSet = true; m_isJoinTable = value; }
68 inline CodegenGenericDataModel& WithIsJoinTable(bool value) { SetIsJoinTable(value); return *this;}
70
72
75 inline const Aws::Vector<Aws::String>& GetPrimaryKeys() const{ return m_primaryKeys; }
76 inline bool PrimaryKeysHasBeenSet() const { return m_primaryKeysHasBeenSet; }
77 inline void SetPrimaryKeys(const Aws::Vector<Aws::String>& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys = value; }
78 inline void SetPrimaryKeys(Aws::Vector<Aws::String>&& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys = std::move(value); }
80 inline CodegenGenericDataModel& WithPrimaryKeys(Aws::Vector<Aws::String>&& value) { SetPrimaryKeys(std::move(value)); return *this;}
81 inline CodegenGenericDataModel& AddPrimaryKeys(const Aws::String& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys.push_back(value); return *this; }
82 inline CodegenGenericDataModel& AddPrimaryKeys(Aws::String&& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys.push_back(std::move(value)); return *this; }
83 inline CodegenGenericDataModel& AddPrimaryKeys(const char* value) { m_primaryKeysHasBeenSet = true; m_primaryKeys.push_back(value); return *this; }
85 private:
86
88 bool m_fieldsHasBeenSet = false;
89
90 bool m_isJoinTable;
91 bool m_isJoinTableHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_primaryKeys;
94 bool m_primaryKeysHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace AmplifyUIBuilder
99} // namespace Aws
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataModel(Aws::Utils::Json::JsonView jsonValue)
void SetFields(const Aws::Map< Aws::String, CodegenGenericDataField > &value)
CodegenGenericDataModel & AddPrimaryKeys(Aws::String &&value)
CodegenGenericDataModel & AddFields(Aws::String &&key, const CodegenGenericDataField &value)
CodegenGenericDataModel & WithFields(const Aws::Map< Aws::String, CodegenGenericDataField > &value)
CodegenGenericDataModel & AddFields(const char *key, const CodegenGenericDataField &value)
CodegenGenericDataModel & WithPrimaryKeys(const Aws::Vector< Aws::String > &value)
void SetFields(Aws::Map< Aws::String, CodegenGenericDataField > &&value)
CodegenGenericDataModel & AddFields(const char *key, CodegenGenericDataField &&value)
const Aws::Map< Aws::String, CodegenGenericDataField > & GetFields() const
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataModel & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
CodegenGenericDataModel & AddFields(const Aws::String &key, const CodegenGenericDataField &value)
CodegenGenericDataModel & AddFields(Aws::String &&key, CodegenGenericDataField &&value)
CodegenGenericDataModel & AddPrimaryKeys(const char *value)
void SetPrimaryKeys(Aws::Vector< Aws::String > &&value)
CodegenGenericDataModel & WithPrimaryKeys(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetPrimaryKeys() const
CodegenGenericDataModel & WithFields(Aws::Map< Aws::String, CodegenGenericDataField > &&value)
CodegenGenericDataModel & AddPrimaryKeys(const Aws::String &value)
void SetPrimaryKeys(const Aws::Vector< Aws::String > &value)
CodegenGenericDataModel & AddFields(const Aws::String &key, CodegenGenericDataField &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue