AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Mapping.h
1
6#pragma once
7#include <aws/glue/Glue_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 Glue
23{
24namespace Model
25{
26
32 class Mapping
33 {
34 public:
35 AWS_GLUE_API Mapping() = default;
36 AWS_GLUE_API Mapping(Aws::Utils::Json::JsonView jsonValue);
39
40
42
46 inline const Aws::String& GetToKey() const { return m_toKey; }
47 inline bool ToKeyHasBeenSet() const { return m_toKeyHasBeenSet; }
48 template<typename ToKeyT = Aws::String>
49 void SetToKey(ToKeyT&& value) { m_toKeyHasBeenSet = true; m_toKey = std::forward<ToKeyT>(value); }
50 template<typename ToKeyT = Aws::String>
51 Mapping& WithToKey(ToKeyT&& value) { SetToKey(std::forward<ToKeyT>(value)); return *this;}
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) { m_fromPathHasBeenSet = true; m_fromPath = std::forward<FromPathT>(value); }
62 template<typename FromPathT = Aws::Vector<Aws::String>>
63 Mapping& WithFromPath(FromPathT&& value) { SetFromPath(std::forward<FromPathT>(value)); return *this;}
64 template<typename FromPathT = Aws::String>
65 Mapping& AddFromPath(FromPathT&& value) { m_fromPathHasBeenSet = true; m_fromPath.emplace_back(std::forward<FromPathT>(value)); return *this; }
67
69
72 inline const Aws::String& GetFromType() const { return m_fromType; }
73 inline bool FromTypeHasBeenSet() const { return m_fromTypeHasBeenSet; }
74 template<typename FromTypeT = Aws::String>
75 void SetFromType(FromTypeT&& value) { m_fromTypeHasBeenSet = true; m_fromType = std::forward<FromTypeT>(value); }
76 template<typename FromTypeT = Aws::String>
77 Mapping& WithFromType(FromTypeT&& value) { SetFromType(std::forward<FromTypeT>(value)); return *this;}
79
81
84 inline const Aws::String& GetToType() const { return m_toType; }
85 inline bool ToTypeHasBeenSet() const { return m_toTypeHasBeenSet; }
86 template<typename ToTypeT = Aws::String>
87 void SetToType(ToTypeT&& value) { m_toTypeHasBeenSet = true; m_toType = std::forward<ToTypeT>(value); }
88 template<typename ToTypeT = Aws::String>
89 Mapping& WithToType(ToTypeT&& value) { SetToType(std::forward<ToTypeT>(value)); return *this;}
91
93
96 inline bool GetDropped() const { return m_dropped; }
97 inline bool DroppedHasBeenSet() const { return m_droppedHasBeenSet; }
98 inline void SetDropped(bool value) { m_droppedHasBeenSet = true; m_dropped = value; }
99 inline Mapping& WithDropped(bool value) { SetDropped(value); return *this;}
101
103
117 inline const Aws::Vector<Mapping>& GetChildren() const { return m_children; }
118 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
119 template<typename ChildrenT = Aws::Vector<Mapping>>
120 void SetChildren(ChildrenT&& value) { m_childrenHasBeenSet = true; m_children = std::forward<ChildrenT>(value); }
121 template<typename ChildrenT = Aws::Vector<Mapping>>
122 Mapping& WithChildren(ChildrenT&& value) { SetChildren(std::forward<ChildrenT>(value)); return *this;}
123 template<typename ChildrenT = Mapping>
124 Mapping& AddChildren(ChildrenT&& value) { m_childrenHasBeenSet = true; m_children.emplace_back(std::forward<ChildrenT>(value)); return *this; }
126 private:
127
128 Aws::String m_toKey;
129 bool m_toKeyHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_fromPath;
132 bool m_fromPathHasBeenSet = false;
133
134 Aws::String m_fromType;
135 bool m_fromTypeHasBeenSet = false;
136
137 Aws::String m_toType;
138 bool m_toTypeHasBeenSet = false;
139
140 bool m_dropped{false};
141 bool m_droppedHasBeenSet = false;
142
143 Aws::Vector<Mapping> m_children;
144 bool m_childrenHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace Glue
149} // namespace Aws
void SetDropped(bool value)
Definition Mapping.h:98
Mapping & WithDropped(bool value)
Definition Mapping.h:99
void SetToKey(ToKeyT &&value)
Definition Mapping.h:49
bool ToTypeHasBeenSet() const
Definition Mapping.h:85
void SetFromType(FromTypeT &&value)
Definition Mapping.h:75
bool ChildrenHasBeenSet() const
Definition Mapping.h:118
Mapping & AddChildren(ChildrenT &&value)
Definition Mapping.h:124
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetToType(ToTypeT &&value)
Definition Mapping.h:87
bool DroppedHasBeenSet() const
Definition Mapping.h:97
const Aws::String & GetToType() const
Definition Mapping.h:84
Mapping & AddFromPath(FromPathT &&value)
Definition Mapping.h:65
bool FromPathHasBeenSet() const
Definition Mapping.h:59
AWS_GLUE_API Mapping & operator=(Aws::Utils::Json::JsonView jsonValue)
Mapping & WithFromType(FromTypeT &&value)
Definition Mapping.h:77
Mapping & WithToKey(ToKeyT &&value)
Definition Mapping.h:51
bool GetDropped() const
Definition Mapping.h:96
Mapping & WithChildren(ChildrenT &&value)
Definition Mapping.h:122
const Aws::Vector< Mapping > & GetChildren() const
Definition Mapping.h:117
Mapping & WithFromPath(FromPathT &&value)
Definition Mapping.h:63
const Aws::String & GetFromType() const
Definition Mapping.h:72
AWS_GLUE_API Mapping()=default
Mapping & WithToType(ToTypeT &&value)
Definition Mapping.h:89
AWS_GLUE_API Mapping(Aws::Utils::Json::JsonView jsonValue)
void SetFromPath(FromPathT &&value)
Definition Mapping.h:61
bool ToKeyHasBeenSet() const
Definition Mapping.h:47
const Aws::Vector< Aws::String > & GetFromPath() const
Definition Mapping.h:58
const Aws::String & GetToKey() const
Definition Mapping.h:46
bool FromTypeHasBeenSet() const
Definition Mapping.h:73
void SetChildren(ChildrenT &&value)
Definition Mapping.h:120
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue