AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataSourceIntrospectionModelIndex.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPSYNC_API DataSourceIntrospectionModelIndex() = default;
39 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 DataSourceIntrospectionModelIndex& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetFields() const { return m_fields; }
59 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
60 template<typename FieldsT = Aws::Vector<Aws::String>>
61 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
62 template<typename FieldsT = Aws::Vector<Aws::String>>
63 DataSourceIntrospectionModelIndex& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
64 template<typename FieldsT = Aws::String>
65 DataSourceIntrospectionModelIndex& AddFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields.emplace_back(std::forward<FieldsT>(value)); return *this; }
67 private:
68
69 Aws::String m_name;
70 bool m_nameHasBeenSet = false;
71
73 bool m_fieldsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace AppSync
78} // namespace Aws
DataSourceIntrospectionModelIndex & AddFields(FieldsT &&value)
DataSourceIntrospectionModelIndex & WithName(NameT &&value)
AWS_APPSYNC_API DataSourceIntrospectionModelIndex(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceIntrospectionModelIndex & WithFields(FieldsT &&value)
AWS_APPSYNC_API DataSourceIntrospectionModelIndex & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue