AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetToKey(const Aws::String& value) { m_toKeyHasBeenSet = true; m_toKey = value; }
49 inline void SetToKey(Aws::String&& value) { m_toKeyHasBeenSet = true; m_toKey = std::move(value); }
50 inline void SetToKey(const char* value) { m_toKeyHasBeenSet = true; m_toKey.assign(value); }
51 inline Mapping& WithToKey(const Aws::String& value) { SetToKey(value); return *this;}
52 inline Mapping& WithToKey(Aws::String&& value) { SetToKey(std::move(value)); return *this;}
53 inline Mapping& WithToKey(const char* value) { SetToKey(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetFromPath() const{ return m_fromPath; }
61 inline bool FromPathHasBeenSet() const { return m_fromPathHasBeenSet; }
62 inline void SetFromPath(const Aws::Vector<Aws::String>& value) { m_fromPathHasBeenSet = true; m_fromPath = value; }
63 inline void SetFromPath(Aws::Vector<Aws::String>&& value) { m_fromPathHasBeenSet = true; m_fromPath = std::move(value); }
64 inline Mapping& WithFromPath(const Aws::Vector<Aws::String>& value) { SetFromPath(value); return *this;}
65 inline Mapping& WithFromPath(Aws::Vector<Aws::String>&& value) { SetFromPath(std::move(value)); return *this;}
66 inline Mapping& AddFromPath(const Aws::String& value) { m_fromPathHasBeenSet = true; m_fromPath.push_back(value); return *this; }
67 inline Mapping& AddFromPath(Aws::String&& value) { m_fromPathHasBeenSet = true; m_fromPath.push_back(std::move(value)); return *this; }
68 inline Mapping& AddFromPath(const char* value) { m_fromPathHasBeenSet = true; m_fromPath.push_back(value); return *this; }
70
72
75 inline const Aws::String& GetFromType() const{ return m_fromType; }
76 inline bool FromTypeHasBeenSet() const { return m_fromTypeHasBeenSet; }
77 inline void SetFromType(const Aws::String& value) { m_fromTypeHasBeenSet = true; m_fromType = value; }
78 inline void SetFromType(Aws::String&& value) { m_fromTypeHasBeenSet = true; m_fromType = std::move(value); }
79 inline void SetFromType(const char* value) { m_fromTypeHasBeenSet = true; m_fromType.assign(value); }
80 inline Mapping& WithFromType(const Aws::String& value) { SetFromType(value); return *this;}
81 inline Mapping& WithFromType(Aws::String&& value) { SetFromType(std::move(value)); return *this;}
82 inline Mapping& WithFromType(const char* value) { SetFromType(value); return *this;}
84
86
89 inline const Aws::String& GetToType() const{ return m_toType; }
90 inline bool ToTypeHasBeenSet() const { return m_toTypeHasBeenSet; }
91 inline void SetToType(const Aws::String& value) { m_toTypeHasBeenSet = true; m_toType = value; }
92 inline void SetToType(Aws::String&& value) { m_toTypeHasBeenSet = true; m_toType = std::move(value); }
93 inline void SetToType(const char* value) { m_toTypeHasBeenSet = true; m_toType.assign(value); }
94 inline Mapping& WithToType(const Aws::String& value) { SetToType(value); return *this;}
95 inline Mapping& WithToType(Aws::String&& value) { SetToType(std::move(value)); return *this;}
96 inline Mapping& WithToType(const char* value) { SetToType(value); return *this;}
98
100
103 inline bool GetDropped() const{ return m_dropped; }
104 inline bool DroppedHasBeenSet() const { return m_droppedHasBeenSet; }
105 inline void SetDropped(bool value) { m_droppedHasBeenSet = true; m_dropped = value; }
106 inline Mapping& WithDropped(bool value) { SetDropped(value); return *this;}
108
110
124 inline const Aws::Vector<Mapping>& GetChildren() const{ return m_children; }
125 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
126 inline void SetChildren(const Aws::Vector<Mapping>& value) { m_childrenHasBeenSet = true; m_children = value; }
127 inline void SetChildren(Aws::Vector<Mapping>&& value) { m_childrenHasBeenSet = true; m_children = std::move(value); }
128 inline Mapping& WithChildren(const Aws::Vector<Mapping>& value) { SetChildren(value); return *this;}
129 inline Mapping& WithChildren(Aws::Vector<Mapping>&& value) { SetChildren(std::move(value)); return *this;}
130 inline Mapping& AddChildren(const Mapping& value) { m_childrenHasBeenSet = true; m_children.push_back(value); return *this; }
131 inline Mapping& AddChildren(Mapping&& value) { m_childrenHasBeenSet = true; m_children.push_back(std::move(value)); return *this; }
133 private:
134
135 Aws::String m_toKey;
136 bool m_toKeyHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_fromPath;
139 bool m_fromPathHasBeenSet = false;
140
141 Aws::String m_fromType;
142 bool m_fromTypeHasBeenSet = false;
143
144 Aws::String m_toType;
145 bool m_toTypeHasBeenSet = false;
146
147 bool m_dropped;
148 bool m_droppedHasBeenSet = false;
149
150 Aws::Vector<Mapping> m_children;
151 bool m_childrenHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Glue
156} // namespace Aws
Mapping & WithToKey(const Aws::String &value)
Definition Mapping.h:51
void SetDropped(bool value)
Definition Mapping.h:105
Mapping & WithDropped(bool value)
Definition Mapping.h:106
void SetFromPath(Aws::Vector< Aws::String > &&value)
Definition Mapping.h:63
Mapping & WithToKey(const char *value)
Definition Mapping.h:53
bool ToTypeHasBeenSet() const
Definition Mapping.h:90
bool ChildrenHasBeenSet() const
Definition Mapping.h:125
Mapping & WithChildren(Aws::Vector< Mapping > &&value)
Definition Mapping.h:129
Mapping & WithFromPath(Aws::Vector< Aws::String > &&value)
Definition Mapping.h:65
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Mapping & WithToKey(Aws::String &&value)
Definition Mapping.h:52
void SetChildren(const Aws::Vector< Mapping > &value)
Definition Mapping.h:126
Mapping & AddFromPath(const char *value)
Definition Mapping.h:68
Mapping & WithChildren(const Aws::Vector< Mapping > &value)
Definition Mapping.h:128
bool DroppedHasBeenSet() const
Definition Mapping.h:104
const Aws::String & GetToType() const
Definition Mapping.h:89
bool FromPathHasBeenSet() const
Definition Mapping.h:61
Mapping & WithToType(const char *value)
Definition Mapping.h:96
Mapping & AddChildren(Mapping &&value)
Definition Mapping.h:131
AWS_GLUE_API Mapping & operator=(Aws::Utils::Json::JsonView jsonValue)
Mapping & WithToType(const Aws::String &value)
Definition Mapping.h:94
void SetToType(Aws::String &&value)
Definition Mapping.h:92
void SetToType(const char *value)
Definition Mapping.h:93
Mapping & WithFromType(Aws::String &&value)
Definition Mapping.h:81
void SetToType(const Aws::String &value)
Definition Mapping.h:91
Mapping & WithFromType(const Aws::String &value)
Definition Mapping.h:80
void SetToKey(Aws::String &&value)
Definition Mapping.h:49
bool GetDropped() const
Definition Mapping.h:103
Mapping & AddFromPath(const Aws::String &value)
Definition Mapping.h:66
const Aws::Vector< Mapping > & GetChildren() const
Definition Mapping.h:124
Mapping & WithToType(Aws::String &&value)
Definition Mapping.h:95
void SetFromPath(const Aws::Vector< Aws::String > &value)
Definition Mapping.h:62
const Aws::String & GetFromType() const
Definition Mapping.h:75
Mapping & AddFromPath(Aws::String &&value)
Definition Mapping.h:67
void SetFromType(const char *value)
Definition Mapping.h:79
void SetFromType(const Aws::String &value)
Definition Mapping.h:77
void SetFromType(Aws::String &&value)
Definition Mapping.h:78
AWS_GLUE_API Mapping(Aws::Utils::Json::JsonView jsonValue)
void SetToKey(const char *value)
Definition Mapping.h:50
Mapping & WithFromType(const char *value)
Definition Mapping.h:82
void SetToKey(const Aws::String &value)
Definition Mapping.h:48
Mapping & AddChildren(const Mapping &value)
Definition Mapping.h:130
Mapping & WithFromPath(const Aws::Vector< Aws::String > &value)
Definition Mapping.h:64
bool ToKeyHasBeenSet() const
Definition Mapping.h:47
void SetChildren(Aws::Vector< Mapping > &&value)
Definition Mapping.h:127
const Aws::Vector< Aws::String > & GetFromPath() const
Definition Mapping.h:60
const Aws::String & GetToKey() const
Definition Mapping.h:46
bool FromTypeHasBeenSet() const
Definition Mapping.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue