AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Mapping.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
28class Mapping {
29 public:
30 AWS_GLUE_API Mapping() = default;
31 AWS_GLUE_API Mapping(Aws::Utils::Json::JsonView jsonValue);
34
36
40 inline const Aws::String& GetToKey() const { return m_toKey; }
41 inline bool ToKeyHasBeenSet() const { return m_toKeyHasBeenSet; }
42 template <typename ToKeyT = Aws::String>
43 void SetToKey(ToKeyT&& value) {
44 m_toKeyHasBeenSet = true;
45 m_toKey = std::forward<ToKeyT>(value);
46 }
47 template <typename ToKeyT = Aws::String>
48 Mapping& WithToKey(ToKeyT&& value) {
49 SetToKey(std::forward<ToKeyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetFromPath() const { return m_fromPath; }
59 inline bool FromPathHasBeenSet() const { return m_fromPathHasBeenSet; }
60 template <typename FromPathT = Aws::Vector<Aws::String>>
61 void SetFromPath(FromPathT&& value) {
62 m_fromPathHasBeenSet = true;
63 m_fromPath = std::forward<FromPathT>(value);
64 }
65 template <typename FromPathT = Aws::Vector<Aws::String>>
66 Mapping& WithFromPath(FromPathT&& value) {
67 SetFromPath(std::forward<FromPathT>(value));
68 return *this;
69 }
70 template <typename FromPathT = Aws::String>
71 Mapping& AddFromPath(FromPathT&& value) {
72 m_fromPathHasBeenSet = true;
73 m_fromPath.emplace_back(std::forward<FromPathT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetFromType() const { return m_fromType; }
83 inline bool FromTypeHasBeenSet() const { return m_fromTypeHasBeenSet; }
84 template <typename FromTypeT = Aws::String>
85 void SetFromType(FromTypeT&& value) {
86 m_fromTypeHasBeenSet = true;
87 m_fromType = std::forward<FromTypeT>(value);
88 }
89 template <typename FromTypeT = Aws::String>
90 Mapping& WithFromType(FromTypeT&& value) {
91 SetFromType(std::forward<FromTypeT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetToType() const { return m_toType; }
101 inline bool ToTypeHasBeenSet() const { return m_toTypeHasBeenSet; }
102 template <typename ToTypeT = Aws::String>
103 void SetToType(ToTypeT&& value) {
104 m_toTypeHasBeenSet = true;
105 m_toType = std::forward<ToTypeT>(value);
106 }
107 template <typename ToTypeT = Aws::String>
108 Mapping& WithToType(ToTypeT&& value) {
109 SetToType(std::forward<ToTypeT>(value));
110 return *this;
111 }
113
115
118 inline bool GetDropped() const { return m_dropped; }
119 inline bool DroppedHasBeenSet() const { return m_droppedHasBeenSet; }
120 inline void SetDropped(bool value) {
121 m_droppedHasBeenSet = true;
122 m_dropped = value;
123 }
124 inline Mapping& WithDropped(bool value) {
125 SetDropped(value);
126 return *this;
127 }
129
131
145 inline const Aws::Vector<Mapping>& GetChildren() const { return m_children; }
146 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
147 template <typename ChildrenT = Aws::Vector<Mapping>>
148 void SetChildren(ChildrenT&& value) {
149 m_childrenHasBeenSet = true;
150 m_children = std::forward<ChildrenT>(value);
151 }
152 template <typename ChildrenT = Aws::Vector<Mapping>>
153 Mapping& WithChildren(ChildrenT&& value) {
154 SetChildren(std::forward<ChildrenT>(value));
155 return *this;
156 }
157 template <typename ChildrenT = Mapping>
158 Mapping& AddChildren(ChildrenT&& value) {
159 m_childrenHasBeenSet = true;
160 m_children.emplace_back(std::forward<ChildrenT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_toKey;
166
167 Aws::Vector<Aws::String> m_fromPath;
168
169 Aws::String m_fromType;
170
171 Aws::String m_toType;
172
173 bool m_dropped{false};
174
175 Aws::Vector<Mapping> m_children;
176 bool m_toKeyHasBeenSet = false;
177 bool m_fromPathHasBeenSet = false;
178 bool m_fromTypeHasBeenSet = false;
179 bool m_toTypeHasBeenSet = false;
180 bool m_droppedHasBeenSet = false;
181 bool m_childrenHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace Glue
186} // namespace Aws
void SetDropped(bool value)
Definition Mapping.h:120
Mapping & WithDropped(bool value)
Definition Mapping.h:124
void SetToKey(ToKeyT &&value)
Definition Mapping.h:43
bool ToTypeHasBeenSet() const
Definition Mapping.h:101
void SetFromType(FromTypeT &&value)
Definition Mapping.h:85
bool ChildrenHasBeenSet() const
Definition Mapping.h:146
Mapping & AddChildren(ChildrenT &&value)
Definition Mapping.h:158
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetToType(ToTypeT &&value)
Definition Mapping.h:103
bool DroppedHasBeenSet() const
Definition Mapping.h:119
const Aws::String & GetToType() const
Definition Mapping.h:100
Mapping & AddFromPath(FromPathT &&value)
Definition Mapping.h:71
bool FromPathHasBeenSet() const
Definition Mapping.h:59
AWS_GLUE_API Mapping & operator=(Aws::Utils::Json::JsonView jsonValue)
Mapping & WithFromType(FromTypeT &&value)
Definition Mapping.h:90
Mapping & WithToKey(ToKeyT &&value)
Definition Mapping.h:48
bool GetDropped() const
Definition Mapping.h:118
Mapping & WithChildren(ChildrenT &&value)
Definition Mapping.h:153
const Aws::Vector< Mapping > & GetChildren() const
Definition Mapping.h:145
Mapping & WithFromPath(FromPathT &&value)
Definition Mapping.h:66
const Aws::String & GetFromType() const
Definition Mapping.h:82
AWS_GLUE_API Mapping()=default
Mapping & WithToType(ToTypeT &&value)
Definition Mapping.h:108
AWS_GLUE_API Mapping(Aws::Utils::Json::JsonView jsonValue)
void SetFromPath(FromPathT &&value)
Definition Mapping.h:61
bool ToKeyHasBeenSet() const
Definition Mapping.h:41
const Aws::Vector< Aws::String > & GetFromPath() const
Definition Mapping.h:58
const Aws::String & GetToKey() const
Definition Mapping.h:40
bool FromTypeHasBeenSet() const
Definition Mapping.h:83
void SetChildren(ChildrenT &&value)
Definition Mapping.h:148
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue