AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DataSourceIntrospectionModel.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/DataSourceIntrospectionModelField.h>
9#include <aws/appsync/model/DataSourceIntrospectionModelIndex.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync {
23namespace Model {
24
32 public:
33 AWS_APPSYNC_API DataSourceIntrospectionModel() = default;
36 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<DataSourceIntrospectionModelField>& GetFields() const { return m_fields; }
62 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
63 template <typename FieldsT = Aws::Vector<DataSourceIntrospectionModelField>>
64 void SetFields(FieldsT&& value) {
65 m_fieldsHasBeenSet = true;
66 m_fields = std::forward<FieldsT>(value);
67 }
68 template <typename FieldsT = Aws::Vector<DataSourceIntrospectionModelField>>
70 SetFields(std::forward<FieldsT>(value));
71 return *this;
72 }
73 template <typename FieldsT = DataSourceIntrospectionModelField>
75 m_fieldsHasBeenSet = true;
76 m_fields.emplace_back(std::forward<FieldsT>(value));
77 return *this;
78 }
80
82
86 inline const DataSourceIntrospectionModelIndex& GetPrimaryKey() const { return m_primaryKey; }
87 inline bool PrimaryKeyHasBeenSet() const { return m_primaryKeyHasBeenSet; }
88 template <typename PrimaryKeyT = DataSourceIntrospectionModelIndex>
89 void SetPrimaryKey(PrimaryKeyT&& value) {
90 m_primaryKeyHasBeenSet = true;
91 m_primaryKey = std::forward<PrimaryKeyT>(value);
92 }
93 template <typename PrimaryKeyT = DataSourceIntrospectionModelIndex>
95 SetPrimaryKey(std::forward<PrimaryKeyT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Vector<DataSourceIntrospectionModelIndex>& GetIndexes() const { return m_indexes; }
105 inline bool IndexesHasBeenSet() const { return m_indexesHasBeenSet; }
106 template <typename IndexesT = Aws::Vector<DataSourceIntrospectionModelIndex>>
107 void SetIndexes(IndexesT&& value) {
108 m_indexesHasBeenSet = true;
109 m_indexes = std::forward<IndexesT>(value);
110 }
111 template <typename IndexesT = Aws::Vector<DataSourceIntrospectionModelIndex>>
113 SetIndexes(std::forward<IndexesT>(value));
114 return *this;
115 }
116 template <typename IndexesT = DataSourceIntrospectionModelIndex>
118 m_indexesHasBeenSet = true;
119 m_indexes.emplace_back(std::forward<IndexesT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::String& GetSdl() const { return m_sdl; }
131 inline bool SdlHasBeenSet() const { return m_sdlHasBeenSet; }
132 template <typename SdlT = Aws::String>
133 void SetSdl(SdlT&& value) {
134 m_sdlHasBeenSet = true;
135 m_sdl = std::forward<SdlT>(value);
136 }
137 template <typename SdlT = Aws::String>
139 SetSdl(std::forward<SdlT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_name;
145
147
149
151
152 Aws::String m_sdl;
153 bool m_nameHasBeenSet = false;
154 bool m_fieldsHasBeenSet = false;
155 bool m_primaryKeyHasBeenSet = false;
156 bool m_indexesHasBeenSet = false;
157 bool m_sdlHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace AppSync
162} // namespace Aws
AWS_APPSYNC_API DataSourceIntrospectionModel & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DataSourceIntrospectionModelIndex > & GetIndexes() const
DataSourceIntrospectionModel & WithFields(FieldsT &&value)
const Aws::Vector< DataSourceIntrospectionModelField > & GetFields() const
AWS_APPSYNC_API DataSourceIntrospectionModel()=default
DataSourceIntrospectionModel & WithName(NameT &&value)
DataSourceIntrospectionModel & WithSdl(SdlT &&value)
AWS_APPSYNC_API DataSourceIntrospectionModel(Aws::Utils::Json::JsonView jsonValue)
DataSourceIntrospectionModel & WithIndexes(IndexesT &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceIntrospectionModel & AddIndexes(IndexesT &&value)
DataSourceIntrospectionModel & WithPrimaryKey(PrimaryKeyT &&value)
const DataSourceIntrospectionModelIndex & GetPrimaryKey() const
DataSourceIntrospectionModel & AddFields(FieldsT &&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