AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataSourceIntrospectionModel.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/appsync/model/DataSourceIntrospectionModelIndex.h>
11#include <aws/appsync/model/DataSourceIntrospectionModelField.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 AppSync
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPSYNC_API DataSourceIntrospectionModel() = default;
41 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 DataSourceIntrospectionModel& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
65 template<typename FieldsT = Aws::Vector<DataSourceIntrospectionModelField>>
66 DataSourceIntrospectionModel& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
67 template<typename FieldsT = DataSourceIntrospectionModelField>
68 DataSourceIntrospectionModel& AddFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields.emplace_back(std::forward<FieldsT>(value)); return *this; }
70
72
76 inline const DataSourceIntrospectionModelIndex& GetPrimaryKey() const { return m_primaryKey; }
77 inline bool PrimaryKeyHasBeenSet() const { return m_primaryKeyHasBeenSet; }
78 template<typename PrimaryKeyT = DataSourceIntrospectionModelIndex>
79 void SetPrimaryKey(PrimaryKeyT&& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = std::forward<PrimaryKeyT>(value); }
80 template<typename PrimaryKeyT = DataSourceIntrospectionModelIndex>
81 DataSourceIntrospectionModel& WithPrimaryKey(PrimaryKeyT&& value) { SetPrimaryKey(std::forward<PrimaryKeyT>(value)); return *this;}
83
85
88 inline const Aws::Vector<DataSourceIntrospectionModelIndex>& GetIndexes() const { return m_indexes; }
89 inline bool IndexesHasBeenSet() const { return m_indexesHasBeenSet; }
90 template<typename IndexesT = Aws::Vector<DataSourceIntrospectionModelIndex>>
91 void SetIndexes(IndexesT&& value) { m_indexesHasBeenSet = true; m_indexes = std::forward<IndexesT>(value); }
92 template<typename IndexesT = Aws::Vector<DataSourceIntrospectionModelIndex>>
93 DataSourceIntrospectionModel& WithIndexes(IndexesT&& value) { SetIndexes(std::forward<IndexesT>(value)); return *this;}
94 template<typename IndexesT = DataSourceIntrospectionModelIndex>
95 DataSourceIntrospectionModel& AddIndexes(IndexesT&& value) { m_indexesHasBeenSet = true; m_indexes.emplace_back(std::forward<IndexesT>(value)); return *this; }
97
99
104 inline const Aws::String& GetSdl() const { return m_sdl; }
105 inline bool SdlHasBeenSet() const { return m_sdlHasBeenSet; }
106 template<typename SdlT = Aws::String>
107 void SetSdl(SdlT&& value) { m_sdlHasBeenSet = true; m_sdl = std::forward<SdlT>(value); }
108 template<typename SdlT = Aws::String>
109 DataSourceIntrospectionModel& WithSdl(SdlT&& value) { SetSdl(std::forward<SdlT>(value)); return *this;}
111 private:
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
117 bool m_fieldsHasBeenSet = false;
118
120 bool m_primaryKeyHasBeenSet = false;
121
123 bool m_indexesHasBeenSet = false;
124
125 Aws::String m_sdl;
126 bool m_sdlHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace AppSync
131} // 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