AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
DataLakeDatasetSchema.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/supplychain/SupplyChain_EXPORTS.h>
10#include <aws/supplychain/model/DataLakeDatasetPrimaryKeyField.h>
11#include <aws/supplychain/model/DataLakeDatasetSchemaField.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SupplyChain {
23namespace Model {
24
33 public:
34 AWS_SUPPLYCHAIN_API DataLakeDatasetSchema() = default;
35 AWS_SUPPLYCHAIN_API DataLakeDatasetSchema(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
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) {
65 m_fieldsHasBeenSet = true;
66 m_fields = std::forward<FieldsT>(value);
67 }
68 template <typename FieldsT = Aws::Vector<DataLakeDatasetSchemaField>>
70 SetFields(std::forward<FieldsT>(value));
71 return *this;
72 }
73 template <typename FieldsT = DataLakeDatasetSchemaField>
74 DataLakeDatasetSchema& AddFields(FieldsT&& value) {
75 m_fieldsHasBeenSet = true;
76 m_fields.emplace_back(std::forward<FieldsT>(value));
77 return *this;
78 }
80
82
93 inline const Aws::Vector<DataLakeDatasetPrimaryKeyField>& GetPrimaryKeys() const { return m_primaryKeys; }
94 inline bool PrimaryKeysHasBeenSet() const { return m_primaryKeysHasBeenSet; }
95 template <typename PrimaryKeysT = Aws::Vector<DataLakeDatasetPrimaryKeyField>>
96 void SetPrimaryKeys(PrimaryKeysT&& value) {
97 m_primaryKeysHasBeenSet = true;
98 m_primaryKeys = std::forward<PrimaryKeysT>(value);
99 }
100 template <typename PrimaryKeysT = Aws::Vector<DataLakeDatasetPrimaryKeyField>>
101 DataLakeDatasetSchema& WithPrimaryKeys(PrimaryKeysT&& value) {
102 SetPrimaryKeys(std::forward<PrimaryKeysT>(value));
103 return *this;
104 }
105 template <typename PrimaryKeysT = DataLakeDatasetPrimaryKeyField>
106 DataLakeDatasetSchema& AddPrimaryKeys(PrimaryKeysT&& value) {
107 m_primaryKeysHasBeenSet = true;
108 m_primaryKeys.emplace_back(std::forward<PrimaryKeysT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_name;
114
116
118 bool m_nameHasBeenSet = false;
119 bool m_fieldsHasBeenSet = false;
120 bool m_primaryKeysHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace SupplyChain
125} // 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