AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppSync {
21namespace Model {
22
30 public:
31 AWS_APPSYNC_API DataSourceIntrospectionModelIndex() = default;
34 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
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) {
62 m_fieldsHasBeenSet = true;
63 m_fields = std::forward<FieldsT>(value);
64 }
65 template <typename FieldsT = Aws::Vector<Aws::String>>
67 SetFields(std::forward<FieldsT>(value));
68 return *this;
69 }
70 template <typename FieldsT = Aws::String>
72 m_fieldsHasBeenSet = true;
73 m_fields.emplace_back(std::forward<FieldsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_name;
79
81 bool m_nameHasBeenSet = false;
82 bool m_fieldsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace AppSync
87} // 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