AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SchemaDefinition.h
1
6#pragma once
7#include <aws/finspace-data/FinSpaceData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/finspace-data/model/ColumnDefinition.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace FinSpaceData
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_FINSPACEDATA_API SchemaDefinition();
37 AWS_FINSPACEDATA_API SchemaDefinition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FINSPACEDATA_API SchemaDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<ColumnDefinition>& GetColumns() const{ return m_columns; }
47 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
48 inline void SetColumns(const Aws::Vector<ColumnDefinition>& value) { m_columnsHasBeenSet = true; m_columns = value; }
49 inline void SetColumns(Aws::Vector<ColumnDefinition>&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); }
50 inline SchemaDefinition& WithColumns(const Aws::Vector<ColumnDefinition>& value) { SetColumns(value); return *this;}
51 inline SchemaDefinition& WithColumns(Aws::Vector<ColumnDefinition>&& value) { SetColumns(std::move(value)); return *this;}
52 inline SchemaDefinition& AddColumns(const ColumnDefinition& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; }
53 inline SchemaDefinition& AddColumns(ColumnDefinition&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetPrimaryKeyColumns() const{ return m_primaryKeyColumns; }
61 inline bool PrimaryKeyColumnsHasBeenSet() const { return m_primaryKeyColumnsHasBeenSet; }
62 inline void SetPrimaryKeyColumns(const Aws::Vector<Aws::String>& value) { m_primaryKeyColumnsHasBeenSet = true; m_primaryKeyColumns = value; }
63 inline void SetPrimaryKeyColumns(Aws::Vector<Aws::String>&& value) { m_primaryKeyColumnsHasBeenSet = true; m_primaryKeyColumns = std::move(value); }
65 inline SchemaDefinition& WithPrimaryKeyColumns(Aws::Vector<Aws::String>&& value) { SetPrimaryKeyColumns(std::move(value)); return *this;}
66 inline SchemaDefinition& AddPrimaryKeyColumns(const Aws::String& value) { m_primaryKeyColumnsHasBeenSet = true; m_primaryKeyColumns.push_back(value); return *this; }
67 inline SchemaDefinition& AddPrimaryKeyColumns(Aws::String&& value) { m_primaryKeyColumnsHasBeenSet = true; m_primaryKeyColumns.push_back(std::move(value)); return *this; }
68 inline SchemaDefinition& AddPrimaryKeyColumns(const char* value) { m_primaryKeyColumnsHasBeenSet = true; m_primaryKeyColumns.push_back(value); return *this; }
70 private:
71
73 bool m_columnsHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_primaryKeyColumns;
76 bool m_primaryKeyColumnsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace FinSpaceData
81} // namespace Aws
SchemaDefinition & AddPrimaryKeyColumns(const Aws::String &value)
void SetPrimaryKeyColumns(Aws::Vector< Aws::String > &&value)
SchemaDefinition & AddPrimaryKeyColumns(Aws::String &&value)
AWS_FINSPACEDATA_API SchemaDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
SchemaDefinition & WithColumns(const Aws::Vector< ColumnDefinition > &value)
SchemaDefinition & AddColumns(ColumnDefinition &&value)
SchemaDefinition & AddPrimaryKeyColumns(const char *value)
void SetColumns(const Aws::Vector< ColumnDefinition > &value)
SchemaDefinition & WithPrimaryKeyColumns(Aws::Vector< Aws::String > &&value)
AWS_FINSPACEDATA_API SchemaDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ColumnDefinition > & GetColumns() const
SchemaDefinition & WithColumns(Aws::Vector< ColumnDefinition > &&value)
void SetColumns(Aws::Vector< ColumnDefinition > &&value)
void SetPrimaryKeyColumns(const Aws::Vector< Aws::String > &value)
SchemaDefinition & AddColumns(const ColumnDefinition &value)
SchemaDefinition & WithPrimaryKeyColumns(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetPrimaryKeyColumns() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue