AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GlueSchema.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/GlueStudioSchemaColumn.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
30 public:
31 AWS_GLUE_API GlueSchema() = default;
32 AWS_GLUE_API GlueSchema(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::Vector<GlueStudioSchemaColumn>& GetColumns() const { return m_columns; }
41 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
42 template <typename ColumnsT = Aws::Vector<GlueStudioSchemaColumn>>
43 void SetColumns(ColumnsT&& value) {
44 m_columnsHasBeenSet = true;
45 m_columns = std::forward<ColumnsT>(value);
46 }
47 template <typename ColumnsT = Aws::Vector<GlueStudioSchemaColumn>>
48 GlueSchema& WithColumns(ColumnsT&& value) {
49 SetColumns(std::forward<ColumnsT>(value));
50 return *this;
51 }
52 template <typename ColumnsT = GlueStudioSchemaColumn>
53 GlueSchema& AddColumns(ColumnsT&& value) {
54 m_columnsHasBeenSet = true;
55 m_columns.emplace_back(std::forward<ColumnsT>(value));
56 return *this;
57 }
59 private:
61 bool m_columnsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace Glue
66} // namespace Aws
AWS_GLUE_API GlueSchema(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GlueStudioSchemaColumn > & GetColumns() const
Definition GlueSchema.h:40
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:43
GlueSchema & WithColumns(ColumnsT &&value)
Definition GlueSchema.h:48
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue