AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GlueSchema.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/model/GlueStudioSchemaColumn.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
34 {
35 public:
36 AWS_GLUE_API GlueSchema() = default;
37 AWS_GLUE_API GlueSchema(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::Vector<GlueStudioSchemaColumn>& GetColumns() const { return m_columns; }
47 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
48 template<typename ColumnsT = Aws::Vector<GlueStudioSchemaColumn>>
49 void SetColumns(ColumnsT&& value) { m_columnsHasBeenSet = true; m_columns = std::forward<ColumnsT>(value); }
50 template<typename ColumnsT = Aws::Vector<GlueStudioSchemaColumn>>
51 GlueSchema& WithColumns(ColumnsT&& value) { SetColumns(std::forward<ColumnsT>(value)); return *this;}
52 template<typename ColumnsT = GlueStudioSchemaColumn>
53 GlueSchema& AddColumns(ColumnsT&& value) { m_columnsHasBeenSet = true; m_columns.emplace_back(std::forward<ColumnsT>(value)); return *this; }
55 private:
56
58 bool m_columnsHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace Glue
63} // namespace Aws
AWS_GLUE_API GlueSchema(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GlueStudioSchemaColumn > & GetColumns() const
Definition GlueSchema.h:46
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
GlueSchema & AddColumns(ColumnsT &&value)
Definition GlueSchema.h:53
AWS_GLUE_API GlueSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API GlueSchema()=default
void SetColumns(ColumnsT &&value)
Definition GlueSchema.h:49
GlueSchema & WithColumns(ColumnsT &&value)
Definition GlueSchema.h:51
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue