AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline DataSourceIntrospectionModel& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline DataSourceIntrospectionModel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline DataSourceIntrospectionModel& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::Vector<DataSourceIntrospectionModelField>& GetFields() const{ return m_fields; }
64 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
65 inline void SetFields(const Aws::Vector<DataSourceIntrospectionModelField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
66 inline void SetFields(Aws::Vector<DataSourceIntrospectionModelField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
69 inline DataSourceIntrospectionModel& AddFields(const DataSourceIntrospectionModelField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
70 inline DataSourceIntrospectionModel& AddFields(DataSourceIntrospectionModelField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
72
74
78 inline const DataSourceIntrospectionModelIndex& GetPrimaryKey() const{ return m_primaryKey; }
79 inline bool PrimaryKeyHasBeenSet() const { return m_primaryKeyHasBeenSet; }
80 inline void SetPrimaryKey(const DataSourceIntrospectionModelIndex& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = value; }
81 inline void SetPrimaryKey(DataSourceIntrospectionModelIndex&& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = std::move(value); }
85
87
90 inline const Aws::Vector<DataSourceIntrospectionModelIndex>& GetIndexes() const{ return m_indexes; }
91 inline bool IndexesHasBeenSet() const { return m_indexesHasBeenSet; }
92 inline void SetIndexes(const Aws::Vector<DataSourceIntrospectionModelIndex>& value) { m_indexesHasBeenSet = true; m_indexes = value; }
93 inline void SetIndexes(Aws::Vector<DataSourceIntrospectionModelIndex>&& value) { m_indexesHasBeenSet = true; m_indexes = std::move(value); }
96 inline DataSourceIntrospectionModel& AddIndexes(const DataSourceIntrospectionModelIndex& value) { m_indexesHasBeenSet = true; m_indexes.push_back(value); return *this; }
97 inline DataSourceIntrospectionModel& AddIndexes(DataSourceIntrospectionModelIndex&& value) { m_indexesHasBeenSet = true; m_indexes.push_back(std::move(value)); return *this; }
99
101
106 inline const Aws::String& GetSdl() const{ return m_sdl; }
107 inline bool SdlHasBeenSet() const { return m_sdlHasBeenSet; }
108 inline void SetSdl(const Aws::String& value) { m_sdlHasBeenSet = true; m_sdl = value; }
109 inline void SetSdl(Aws::String&& value) { m_sdlHasBeenSet = true; m_sdl = std::move(value); }
110 inline void SetSdl(const char* value) { m_sdlHasBeenSet = true; m_sdl.assign(value); }
111 inline DataSourceIntrospectionModel& WithSdl(const Aws::String& value) { SetSdl(value); return *this;}
112 inline DataSourceIntrospectionModel& WithSdl(Aws::String&& value) { SetSdl(std::move(value)); return *this;}
113 inline DataSourceIntrospectionModel& WithSdl(const char* value) { SetSdl(value); return *this;}
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
121 bool m_fieldsHasBeenSet = false;
122
124 bool m_primaryKeyHasBeenSet = false;
125
127 bool m_indexesHasBeenSet = false;
128
129 Aws::String m_sdl;
130 bool m_sdlHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace AppSync
135} // namespace Aws
void SetPrimaryKey(const DataSourceIntrospectionModelIndex &value)
AWS_APPSYNC_API DataSourceIntrospectionModel & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceIntrospectionModel & WithFields(const Aws::Vector< DataSourceIntrospectionModelField > &value)
DataSourceIntrospectionModel & WithSdl(const Aws::String &value)
DataSourceIntrospectionModel & WithPrimaryKey(DataSourceIntrospectionModelIndex &&value)
DataSourceIntrospectionModel & WithName(const Aws::String &value)
void SetFields(Aws::Vector< DataSourceIntrospectionModelField > &&value)
void SetIndexes(const Aws::Vector< DataSourceIntrospectionModelIndex > &value)
const Aws::Vector< DataSourceIntrospectionModelIndex > & GetIndexes() const
DataSourceIntrospectionModel & WithSdl(const char *value)
void SetPrimaryKey(DataSourceIntrospectionModelIndex &&value)
DataSourceIntrospectionModel & WithIndexes(Aws::Vector< DataSourceIntrospectionModelIndex > &&value)
const Aws::Vector< DataSourceIntrospectionModelField > & GetFields() const
DataSourceIntrospectionModel & WithIndexes(const Aws::Vector< DataSourceIntrospectionModelIndex > &value)
DataSourceIntrospectionModel & AddIndexes(const DataSourceIntrospectionModelIndex &value)
void SetIndexes(Aws::Vector< DataSourceIntrospectionModelIndex > &&value)
AWS_APPSYNC_API DataSourceIntrospectionModel(Aws::Utils::Json::JsonView jsonValue)
DataSourceIntrospectionModel & AddFields(DataSourceIntrospectionModelField &&value)
DataSourceIntrospectionModel & WithFields(Aws::Vector< DataSourceIntrospectionModelField > &&value)
DataSourceIntrospectionModel & AddIndexes(DataSourceIntrospectionModelIndex &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const DataSourceIntrospectionModelIndex & GetPrimaryKey() const
DataSourceIntrospectionModel & WithName(Aws::String &&value)
DataSourceIntrospectionModel & AddFields(const DataSourceIntrospectionModelField &value)
DataSourceIntrospectionModel & WithName(const char *value)
DataSourceIntrospectionModel & WithPrimaryKey(const DataSourceIntrospectionModelIndex &value)
void SetFields(const Aws::Vector< DataSourceIntrospectionModelField > &value)
DataSourceIntrospectionModel & WithSdl(Aws::String &&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