AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 Column& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 template<typename TypeT = Aws::String>
60 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
61 template<typename TypeT = Aws::String>
62 Column& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
64
66
69 inline const Aws::String& GetComment() const { return m_comment; }
70 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
71 template<typename CommentT = Aws::String>
72 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
73 template<typename CommentT = Aws::String>
74 Column& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
82 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
83 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
84 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
85 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
86 Column& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
87 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
88 Column& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
89 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
90 }
92 private:
93
94 Aws::String m_name;
95 bool m_nameHasBeenSet = false;
96
97 Aws::String m_type;
98 bool m_typeHasBeenSet = false;
99
100 Aws::String m_comment;
101 bool m_commentHasBeenSet = false;
102
104 bool m_parametersHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Glue
109} // namespace Aws
const Aws::String & GetType() const
Definition Column.h:57
Column & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Column.h:88
bool NameHasBeenSet() const
Definition Column.h:46
void SetName(NameT &&value)
Definition Column.h:48
Column & WithComment(CommentT &&value)
Definition Column.h:74
Column & WithType(TypeT &&value)
Definition Column.h:62
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
bool CommentHasBeenSet() const
Definition Column.h:70
void SetType(TypeT &&value)
Definition Column.h:60
AWS_GLUE_API Column()=default
bool TypeHasBeenSet() const
Definition Column.h:58
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition Column.h:81
void SetComment(CommentT &&value)
Definition Column.h:72
Column & WithName(NameT &&value)
Definition Column.h:50
Column & WithParameters(ParametersT &&value)
Definition Column.h:86
bool ParametersHasBeenSet() const
Definition Column.h:82
const Aws::String & GetComment() const
Definition Column.h:69
AWS_GLUE_API Column(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Column & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Column.h:45
void SetParameters(ParametersT &&value)
Definition Column.h:84
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