AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DataLakeDatasetSchema.h
1
6#pragma once
7#include <aws/supplychain/SupplyChain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/supplychain/model/DataLakeDatasetSchemaField.h>
11#include <aws/supplychain/model/DataLakeDatasetPrimaryKeyField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SupplyChain
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_SUPPLYCHAIN_API DataLakeDatasetSchema() = default;
40 AWS_SUPPLYCHAIN_API DataLakeDatasetSchema(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 DataLakeDatasetSchema& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
61 inline const Aws::Vector<DataLakeDatasetSchemaField>& GetFields() const { return m_fields; }
62 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
63 template<typename FieldsT = Aws::Vector<DataLakeDatasetSchemaField>>
64 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
65 template<typename FieldsT = Aws::Vector<DataLakeDatasetSchemaField>>
66 DataLakeDatasetSchema& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
67 template<typename FieldsT = DataLakeDatasetSchemaField>
68 DataLakeDatasetSchema& AddFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields.emplace_back(std::forward<FieldsT>(value)); return *this; }
70
72
83 inline const Aws::Vector<DataLakeDatasetPrimaryKeyField>& GetPrimaryKeys() const { return m_primaryKeys; }
84 inline bool PrimaryKeysHasBeenSet() const { return m_primaryKeysHasBeenSet; }
85 template<typename PrimaryKeysT = Aws::Vector<DataLakeDatasetPrimaryKeyField>>
86 void SetPrimaryKeys(PrimaryKeysT&& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys = std::forward<PrimaryKeysT>(value); }
87 template<typename PrimaryKeysT = Aws::Vector<DataLakeDatasetPrimaryKeyField>>
88 DataLakeDatasetSchema& WithPrimaryKeys(PrimaryKeysT&& value) { SetPrimaryKeys(std::forward<PrimaryKeysT>(value)); return *this;}
89 template<typename PrimaryKeysT = DataLakeDatasetPrimaryKeyField>
90 DataLakeDatasetSchema& AddPrimaryKeys(PrimaryKeysT&& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys.emplace_back(std::forward<PrimaryKeysT>(value)); return *this; }
92 private:
93
94 Aws::String m_name;
95 bool m_nameHasBeenSet = false;
96
98 bool m_fieldsHasBeenSet = false;
99
101 bool m_primaryKeysHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SupplyChain
106} // namespace Aws
DataLakeDatasetSchema & AddPrimaryKeys(PrimaryKeysT &&value)
DataLakeDatasetSchema & WithPrimaryKeys(PrimaryKeysT &&value)
DataLakeDatasetSchema & WithFields(FieldsT &&value)
DataLakeDatasetSchema & AddFields(FieldsT &&value)
AWS_SUPPLYCHAIN_API DataLakeDatasetSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPLYCHAIN_API DataLakeDatasetSchema(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DataLakeDatasetSchemaField > & GetFields() const
AWS_SUPPLYCHAIN_API DataLakeDatasetSchema()=default
AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
DataLakeDatasetSchema & WithName(NameT &&value)
const Aws::Vector< DataLakeDatasetPrimaryKeyField > & GetPrimaryKeys() 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