AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DatasetInputConfig.h
1
6#pragma once
7#include <aws/cleanroomsml/CleanRoomsML_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/cleanroomsml/model/DataSource.h>
10#include <aws/cleanroomsml/model/ColumnSchema.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 CleanRoomsML
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLEANROOMSML_API DatasetInputConfig() = default;
38 AWS_CLEANROOMSML_API DatasetInputConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<ColumnSchema>& GetSchema() const { return m_schema; }
48 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
49 template<typename SchemaT = Aws::Vector<ColumnSchema>>
50 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
51 template<typename SchemaT = Aws::Vector<ColumnSchema>>
52 DatasetInputConfig& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
53 template<typename SchemaT = ColumnSchema>
54 DatasetInputConfig& AddSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema.emplace_back(std::forward<SchemaT>(value)); return *this; }
56
58
62 inline const DataSource& GetDataSource() const { return m_dataSource; }
63 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
64 template<typename DataSourceT = DataSource>
65 void SetDataSource(DataSourceT&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::forward<DataSourceT>(value); }
66 template<typename DataSourceT = DataSource>
67 DatasetInputConfig& WithDataSource(DataSourceT&& value) { SetDataSource(std::forward<DataSourceT>(value)); return *this;}
69 private:
70
72 bool m_schemaHasBeenSet = false;
73
74 DataSource m_dataSource;
75 bool m_dataSourceHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CleanRoomsML
80} // namespace Aws
DatasetInputConfig & WithDataSource(DataSourceT &&value)
AWS_CLEANROOMSML_API DatasetInputConfig()=default
DatasetInputConfig & AddSchema(SchemaT &&value)
AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ColumnSchema > & GetSchema() const
AWS_CLEANROOMSML_API DatasetInputConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_CLEANROOMSML_API DatasetInputConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
DatasetInputConfig & WithSchema(SchemaT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue