AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Column.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/AWSMap.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 Column
33 {
34 public:
35 AWS_GLUE_API Column();
36 AWS_GLUE_API Column(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline Column& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline Column& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline Column& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
64 inline Column& WithType(const Aws::String& value) { SetType(value); return *this;}
65 inline Column& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
66 inline Column& WithType(const char* value) { SetType(value); return *this;}
68
70
73 inline const Aws::String& GetComment() const{ return m_comment; }
74 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
75 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
76 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
77 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
78 inline Column& WithComment(const Aws::String& value) { SetComment(value); return *this;}
79 inline Column& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
80 inline Column& WithComment(const char* value) { SetComment(value); return *this;}
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
88 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
89 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
90 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
91 inline Column& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
92 inline Column& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
93 inline Column& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
94 inline Column& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
95 inline Column& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
96 inline Column& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
97 inline Column& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
98 inline Column& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
99 inline Column& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_type;
107 bool m_typeHasBeenSet = false;
108
109 Aws::String m_comment;
110 bool m_commentHasBeenSet = false;
111
113 bool m_parametersHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Glue
118} // namespace Aws
Column & AddParameters(Aws::String &&key, const Aws::String &value)
Definition Column.h:94
const Aws::String & GetType() const
Definition Column.h:59
Column & WithComment(Aws::String &&value)
Definition Column.h:79
Column & WithName(const char *value)
Definition Column.h:52
bool NameHasBeenSet() const
Definition Column.h:46
Column & WithType(const Aws::String &value)
Definition Column.h:64
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition Column.h:89
void SetType(const char *value)
Definition Column.h:63
Column & WithComment(const char *value)
Definition Column.h:80
void SetName(const Aws::String &value)
Definition Column.h:47
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Column & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition Column.h:92
bool CommentHasBeenSet() const
Definition Column.h:74
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition Column.h:90
void SetName(Aws::String &&value)
Definition Column.h:48
bool TypeHasBeenSet() const
Definition Column.h:60
void SetComment(const char *value)
Definition Column.h:77
Column & AddParameters(Aws::String &&key, Aws::String &&value)
Definition Column.h:96
Column & WithComment(const Aws::String &value)
Definition Column.h:78
Column & AddParameters(const Aws::String &key, Aws::String &&value)
Definition Column.h:95
Column & AddParameters(Aws::String &&key, const char *value)
Definition Column.h:98
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition Column.h:87
Column & WithType(Aws::String &&value)
Definition Column.h:65
Column & AddParameters(const char *key, const char *value)
Definition Column.h:99
Column & AddParameters(const Aws::String &key, const Aws::String &value)
Definition Column.h:93
void SetType(const Aws::String &value)
Definition Column.h:61
Column & WithName(const Aws::String &value)
Definition Column.h:50
bool ParametersHasBeenSet() const
Definition Column.h:88
void SetComment(const Aws::String &value)
Definition Column.h:75
const Aws::String & GetComment() const
Definition Column.h:73
Column & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition Column.h:91
Column & WithName(Aws::String &&value)
Definition Column.h:51
Column & WithType(const char *value)
Definition Column.h:66
void SetComment(Aws::String &&value)
Definition Column.h:76
AWS_GLUE_API Column(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
Definition Column.h:49
AWS_GLUE_API Column & operator=(Aws::Utils::Json::JsonView jsonValue)
Column & AddParameters(const char *key, Aws::String &&value)
Definition Column.h:97
void SetType(Aws::String &&value)
Definition Column.h:62
const Aws::String & GetName() const
Definition Column.h:45
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue